Course Charge Schema
Felder
Course Charge Schema
Billing record for one cross-tenant enrollment in a paid shared course
enrollmentId
courseId
consumerTenantId
Customer-tenant the learner belongs to (the bill recipient).
consumerUserId
User in the customer-tenant who triggered the enrollment.
grossAmountCents
Gross charge in EUR cents (or `currency` cents) — what the customer owes.
netAmountCents
Net of VAT.
taxAmountCents
VAT amount.
taxRatePercent
currency
mspNetAmountCents
What the MSP keeps after Codemeta platform fee.
codemetaPlatformFeeCents
Codemeta platform fee deducted from the charge.
codemetaPlatformFeePercent
Percentage of gross taken as platform fee at charge creation time.
status
pendinginvoicedpaidrefundedfailedbillingMode
wholesale: aggregated into customer wholesale invoice. direct_stripe: paid in real-time via Stripe Connect.
wholesaledirect_stripeoccurredAt
When the charge became applicable (= enrollment creation time).
invoicedAt
invoiceId
Wholesale invoice the charge has been bundled into.
paidAt
refundedAt
refundReason
stripePaymentIntentId
stripeChargeId
stripeRefundId
stripeAccountId
MSP Stripe Connect account that received the destination charge.
notes
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/course_charges— Liste, paginiert + filterbarGET /api/v1/course_charges/<id>— Einzelne EntityPOST /api/v1/course_charges— AnlegenPATCH /api/v1/course_charges/<id>— Teil-UpdateDELETE /api/v1/course_charges/<id>— Soft-DeleteGET /api/v1/course_charges/<id>/timeline— Audit + Aktivitäten