API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · enrollments

Enrollment Schema

Schema-ID
enrollment
Collection
enrollments
Permissions
  • Lezenenrollment_view
  • Aanmakenenrollment_create
  • Wijzigenenrollment_edit
  • Verwijderenenrollment_delete
Relaties

Velden

Enrollment Schema

enrollments4 permissions

Schema for validating student enrollment entities in the Academy/LMS module

courseIdstringvereist

ID of the course the student is enrolled in

min. 1 tekens
userIdstringvereist

ID of the enrolled student

min. 1 tekensread-only
statusstringvereist

Current enrollment status. pending_payment is set for Stripe-direct charges before the PaymentIntent succeeds (ADR 0066b Phase 3). pending_approval/rejected gate self-enrollment behind team-lead approval (WP-D).

activecompleteddroppedsuspendedpending_paymentpending_approvalrejected
enrolledAtdatetimevereist

Date and time when the student enrolled

completedAtdatetimeoptioneel

Date and time when the course was completed

nullable
feedbackRatingnumberoptioneel

Completion feedback: 1–5 star satisfaction rating (WP-B).

1 – 5nullable
feedbackCommentstringoptioneel

Completion feedback: free-text comment (WP-B).

max. 2000 tekensnullable
feedbackNpsnumberoptioneel

Completion feedback: optional 0–10 recommendation score (NPS, WP-B).

0 – 10nullable
feedbackAtdatetimeoptioneel

When completion feedback was submitted (WP-B).

nullable
submittedByUserIdstringoptioneel

User who self-enrolled and triggered the approval request (WP-D).

nullable
reviewedByUserIdstringoptioneel

Team lead / approver who approved or rejected the enrollment (WP-D).

nullable
rejectionReasonstringoptioneel

Reason given when an enrollment was rejected (WP-D).

max. 1000 tekensnullable
progressnumbervereist

Course completion progress as percentage

0 – 100
lastAccessedAtdatetimeoptioneel

Last time the student accessed the course

nullable
certificateIssuedbooleanoptioneel

Whether a certificate has been issued for completion

nullable
certificateIssuedAtdatetimeoptioneel

Date and time when the certificate was issued

nullable
certificateRevokedAtdatetimeoptioneel

When the certificate of this enrollment was revoked. Blocks a new issue.

read-onlynullable
gradebookEntryIdstringoptioneel

ID of the associated gradebook entry

nullable
currentLessonIdstringoptioneel

ID of the last lesson/section the student visited

nullable
currentUnitIdstringoptioneel

ID of the last learning unit the student visited

nullable
consumerTenantIdstringoptioneel

Tenant the learner belongs to, when different from the course owner. Null for MSP-internal enrollments.

read-onlynullable
courseTenantIdstringoptioneel

Platform courses only: tenant holding the course content. The enrollment itself lives in the learner tenant.

read-onlynullable
shareIdstringoptioneel

course_shares row that authorised this cross-tenant enrollment.

nullable
pricingSnapshotobjectoptioneel

Frozen pricing at enrollment time (set on cross-tenant enrollments).

nullable
modestringoptioneel
freefixed_per_seat
amountCentsintegeroptioneel
≥ 0
currencystringoptioneel
taxRatePercentnumberoptioneel
0 – 100
enrolledCourseVersionintegeroptioneel

Course.contentVersion at the moment of enrollment. The frontend compares with the current course version and warns the learner if the course was updated mid-flight.

≥ 1nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/enrollments — Lijst, gepagineerd + filterbaar
  • GET /api/v1/enrollments/<id> — Enkele entity
  • POST /api/v1/enrollments — Aanmaken
  • PATCH /api/v1/enrollments/<id> — Gedeeltelijke update
  • DELETE /api/v1/enrollments/<id> — Soft-delete
  • GET /api/v1/enrollments/<id>/timeline — Audit + activiteiten

Zoeken