Course Charge Schema
Fields
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
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/course_charges— List, paginated + filterableGET /api/v1/course_charges/<id>— Single entityPOST /api/v1/course_charges— CreatePATCH /api/v1/course_charges/<id>— Partial updateDELETE /api/v1/course_charges/<id>— Soft deleteGET /api/v1/course_charges/<id>/timeline— Audit + activities