Enrollment Schema
Felder
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
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.
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.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/enrollments— Liste, paginiert + filterbarGET /api/v1/enrollments/<id>— Einzelne EntityPOST /api/v1/enrollments— AnlegenPATCH /api/v1/enrollments/<id>— Teil-UpdateDELETE /api/v1/enrollments/<id>— Soft-DeleteGET /api/v1/enrollments/<id>/timeline— Audit + Aktivitäten