Maybe I’m missunderstanding, but GET /learningplan/v1/learningplans/{learning_plan_id}/allGcourses returns the courses for a given learning plan in an array. You could then match learning plan IDs to course IDs
{
"data": {
"items": [
{
"id_course": 0,
"uid": "string",
"code": "string",
"title": "string",
"type": "elearning",
"language": {
"code": "string",
"name": "string",
"browser_code": "string"
},
"create_date": "2025-11-19",
"is_published": true,
"prerequisites_count": 0,
"prerequisites_completion": {
"all_courses": true,
"courses_to_be_completed": 0,
"postpone_access": true,
"time": 0,
"time_unit": "day"
},
"is_required": true,
"category": "string",
"sequence": 0,
"prerequisites_id": [
0
]
}
],
"sort": {
"sort_attr": "string",
"sort_dir": "string"
}
},
"version": "string",
"extra_data": {
"mandatory_count": 0
}
}