Course Charge Schema
Campos
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
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/course_charges— Lista, paginada y filtrableGET /api/v1/course_charges/<id>— Una entidadPOST /api/v1/course_charges— CrearPATCH /api/v1/course_charges/<id>— Actualización parcialDELETE /api/v1/course_charges/<id>— Eliminación lógicaGET /api/v1/course_charges/<id>/timeline— Auditoría y actividades