> For the complete documentation index, see [llms.txt](https://docs.stellic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stellic.com/stellic-partner-api/section-enrollment/get-a-section-enrollment.md).

# Get a section enrollment

Use this endpoint to read a section enrollment by the `{id}` you assigned when you created it, for example to confirm what's stored before an update or to reconcile a record with your SIS.

## GET /planner/enrollment/section/{id}

>

```json
{"openapi":"3.0.0","info":{"title":"Stellic for Developers","version":"1.0"},"tags":[{"name":"Section Enrollment"}],"servers":[{"url":"https://{institution}.stellic.com/partnerapi/v1","variables":{"institution":{"default":"{institution}","description":"Your institution's Stellic subdomain: the part before `.stellic.com` in the URL you use to sign in. It becomes the host in every request, as in `https://{institution}.stellic.com/partnerapi/v1/...`. Replace the `{institution}` placeholder with your subdomain before sending."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal Access Token issued by your Stellic integration partner. Send it as `Authorization: Bearer <token>` on every request. One token per institution; do not share across environments."}},"schemas":{"PlanCourseCourseSectionResponse":{"allOf":[{"$ref":"#/components/schemas/PlanCourseResponseFields"},{"type":"object","properties":{"is_enrollment_component":{"description":"Present when a value is stored.","type":"boolean"},"sis_update_timestamp":{"description":"Stored SIS update timestamp of the section enrollment, as `YYYY-MM-DD HH:MM:SS`. Omitted when none is stored.","type":"string"},"section":{"description":"The catalog section.","type":"object","properties":{"id":{"description":"Stellic's internal ID for the catalog section.","type":"integer"},"name":{"description":"Section name.","type":"string"},"campus":{"description":"The catalog section's campus.","type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"screen_name":{"type":"string"}}}}}}}]},"PlanCourseResponseFields":{"type":"object","properties":{"code":{"description":"Course code.","type":"string"},"units":{"description":"Units the student received.","type":"number","nullable":true},"grade":{"description":"Final grade letter.","type":"string","nullable":true},"mid_semester_grade":{"description":"Mid-semester grade letter.","type":"string","nullable":true},"grade_option":{"type":"string","nullable":true},"is_transfer":{"type":"boolean"},"transfer_university":{"type":"string","nullable":true},"registration_status":{"type":"string","nullable":true},"repeat_code":{"type":"string","nullable":true},"attributes":{"description":"Attribute names on the enrollment.","type":"array","items":{"type":"string"}},"tags":{"description":"Names of the enrollment's tags.","type":"array","items":{"type":"string"}},"enrollment_level":{"type":"string","nullable":true},"course_topic":{"description":"Name of the registered topic, or null.","type":"string","nullable":true},"is_residency":{"type":"boolean"},"is_exam":{"type":"boolean"},"cross_course_link_destination_ids":{"description":"Internal IDs you can ignore.","type":"array","items":{"type":"integer"}},"cross_course_link_source_ids":{"description":"Internal IDs you can ignore.","type":"array","items":{"type":"integer"}},"version_id":{"description":"Stellic ID of the linked catalog course version. Present only when the course enrollment is linked to one.","type":"integer"}}}}},"paths":{"/planner/enrollment/section/{id}":{"get":{"tags":["Section Enrollment"],"parameters":[{"name":"id","in":"path","required":true,"description":"The `{id}` you assigned when you created the section enrollment. Matches only enrolled sections on the student's default plan; removed, planned, or other-plan enrollments are treated as not found. May contain `/`, for example `A/1`. Avoid a final slash-separated segment matching a timestamp form such as `2024-08-15T10:00:00`; those paths are reserved for DELETE and return 405 for GET.","schema":{"type":"string"}}],"responses":{"200":{"description":"Enrollment found. `state` is a single object in the same shape the create and update calls return, the course enrollment's fields with the catalog `section` nested, plus `is_enrollment_component` and `sis_update_timestamp` when stored. There is no `errors` key on success. Archived students' enrollments are returned too.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"state":{"$ref":"#/components/schemas/PlanCourseCourseSectionResponse"}}}}}},"400":{"description":"No enrolled section with this `{id}` on the student's default plan. The lookup runs once, with no retries.\n\nCommon causes:\n- Not found (removed, only planned, on another plan, or never created) - returns `section enrollment with this id doesn't exist.` with `status: failure` and an empty `state`","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"identifiers":{"type":"object","properties":{"section_enrollment_id":{"type":"string"}}},"errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}}}},"state":{"type":"object"}}}}}},"401":{"description":"Missing or invalid Bearer token."},"403":{"description":"Your IP address isn't on the allowlist for this endpoint. Contact Stellic to add it; the response includes the `client_ip` Stellic saw.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"client_ip":{"type":"string"}}}}}},"405":{"description":"The path's final slash-separated segment matches a timestamp form, such as `2024-08-15T10:00:00`. These paths accept DELETE, not GET; avoid this suffix when assigning enrollment IDs."}}}}}}
```

#### Notes

* **"Not found" is a 400.** `section enrollment with this id doesn't exist.` means no enrolled section has this `{id}`: it was removed, is only planned, or never existed.
* **Archived students' enrollments are returned too.** Check archive state with [`GET /student/{student_username}/state/`](/stellic-partner-api/student/read-a-student-s-current-archive-state.md) if it matters to your sync.
* **Check attributes after an update.** A successful section enrollment PUT or PATCH does not save supplied or inherited attribute changes, so this GET can still return the previous `attributes`. For changes, use [`PUT /planner/enrollment/course/{username}/{term_id}`](/stellic-partner-api/course-enrollments/replace-a-student-s-course-enrollments-for-a-term.md). Send the full set of course enrollments for the term and include the existing sections you want to retain for each course; omitted courses or sections can be removed. Check each course's entry in the response's `errors` list even if the PUT returns HTTP 200, then use this GET to verify `attributes`. When attribute inheritance is enabled, the course enrollment PUT merges catalog section attributes for non-transfer enrollments and base catalog course attributes for transfer credit into the submitted `attributes`. It does not inherit version-specific course attributes for transfer credit; include those you want to retain in `attributes`. To remove an inherited attribute, remove it from its catalog source, omit it from the enrollment payload, and resubmit the full term.

#### Related APIs

* [`POST /planner/enrollment/section/{id}`](/stellic-partner-api/section-enrollment/enroll-a-student-in-a-section.md) to create a section enrollment.
* [`PATCH /planner/enrollment/section/{id}`](/stellic-partner-api/section-enrollment/update-an-existing-section-enrollment-partial.md) to update it.
* [`DELETE /planner/enrollment/section/{id}`](/stellic-partner-api/section-enrollment/remove-a-section-enrollment.md) to remove it.
