Enrollment Schema
Champs
Enrollment Schema
Schema for validating student enrollment entities in the Academy/LMS module
courseId
ID of the course the student is enrolled in
userId
ID of the enrolled student
status
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_approvalrejectedenrolledAt
Date and time when the student enrolled
completedAt
Date and time when the course was completed
feedbackRating
Completion feedback: 1–5 star satisfaction rating (WP-B).
feedbackComment
Completion feedback: free-text comment (WP-B).
feedbackNps
Completion feedback: optional 0–10 recommendation score (NPS, WP-B).
feedbackAt
When completion feedback was submitted (WP-B).
submittedByUserId
User who self-enrolled and triggered the approval request (WP-D).
reviewedByUserId
Team lead / approver who approved or rejected the enrollment (WP-D).
rejectionReason
Reason given when an enrollment was rejected (WP-D).
progress
Course completion progress as percentage
lastAccessedAt
Last time the student accessed the course
certificateIssued
Whether a certificate has been issued for completion
certificateIssuedAt
Date and time when the certificate was issued
certificateRevokedAt
When the certificate of this enrollment was revoked. Blocks a new issue.
gradebookEntryId
ID of the associated gradebook entry
currentLessonId
ID of the last lesson/section the student visited
currentUnitId
ID of the last learning unit the student visited
consumerTenantId
Tenant the learner belongs to, when different from the course owner. Null for MSP-internal enrollments.
courseTenantId
Platform courses only: tenant holding the course content. The enrollment itself lives in the learner tenant.
pricingSnapshot
Frozen pricing at enrollment time (set on cross-tenant enrollments).
enrolledCourseVersion
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.
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/enrollments— Liste, paginée et filtrableGET /api/v1/enrollments/<id>— Une entitéPOST /api/v1/enrollments— CréerPATCH /api/v1/enrollments/<id>— Mise à jour partielleDELETE /api/v1/enrollments/<id>— Suppression logiqueGET /api/v1/enrollments/<id>/timeline— Audit et activités