Course Charge Schema
Velden
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
external: settled between the tenants outside Codemeta, no platform fee (ADR 1168). wholesale: aggregated into customer wholesale invoice. direct_stripe: paid in real-time via Stripe Connect.
wholesaledirect_stripeexternaloccurredAt
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
Geen velden komen overeen met het filter.
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/course_charges— Lijst, gepagineerd + filterbaarGET /api/v1/course_charges/<id>— Enkele entityPOST /api/v1/course_charges— AanmakenPATCH /api/v1/course_charges/<id>— Gedeeltelijke updateDELETE /api/v1/course_charges/<id>— Soft-deleteGET /api/v1/course_charges/<id>/timeline— Audit + activiteiten