API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · course_charges

Course Charge Schema

Schema-ID
course_charge
Collection
course_charges
Permissions
  • Lezencourse_charge_view
  • Aanmakencourse_charge_view
  • Wijzigencourse_charge_refund
  • Verwijderencourse_charge_refund
Relaties

Velden

Course Charge Schema

course_charges4 permissions

Billing record for one cross-tenant enrollment in a paid shared course

enrollmentIduuidvereist
read-only
courseIduuidvereist→ course
read-only
shareIduuidvereist
read-only
consumerTenantIduuidvereist

Customer-tenant the learner belongs to (the bill recipient).

read-only
consumerUserIduuidvereist

User in the customer-tenant who triggered the enrollment.

read-only
grossAmountCentsintegervereist

Gross charge in EUR cents (or `currency` cents) — what the customer owes.

≥ 0read-only
netAmountCentsintegeroptioneel

Net of VAT.

≥ 0read-only
taxAmountCentsintegeroptioneel

VAT amount.

≥ 0read-only
taxRatePercentnumberoptioneel
0 – 100Default: 19
currencystringvereist
Default: "EUR"
mspNetAmountCentsintegervereist

What the MSP keeps after Codemeta platform fee.

≥ 0read-only
codemetaPlatformFeeCentsintegervereist

Codemeta platform fee deducted from the charge.

≥ 0read-only
codemetaPlatformFeePercentnumberoptioneel

Percentage of gross taken as platform fee at charge creation time.

0 – 100Default: 10read-only
statusstringvereist
pendinginvoicedpaidrefundedfailed
Default: "pending"
billingModestringvereist

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_stripeexternal
read-only
occurredAtdatetimevereist

When the charge became applicable (= enrollment creation time).

read-only
invoicedAtdatetimeoptioneel
nullable
invoiceIduuidoptioneel

Wholesale invoice the charge has been bundled into.

nullable
paidAtdatetimeoptioneel
nullable
refundedAtdatetimeoptioneel
nullable
refundReasonstringoptioneel
max. 500 tekensnullable
stripePaymentIntentIdstringoptioneel
read-onlynullable
stripeChargeIdstringoptioneel
nullable
stripeRefundIdstringoptioneel
nullable
stripeAccountIdstringoptioneel

MSP Stripe Connect account that received the destination charge.

nullable
notesstringoptioneel
max. 2000 tekensnullable

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 + filterbaar
  • GET /api/v1/course_charges/<id> — Enkele entity
  • POST /api/v1/course_charges — Aanmaken
  • PATCH /api/v1/course_charges/<id> — Gedeeltelijke update
  • DELETE /api/v1/course_charges/<id> — Soft-delete
  • GET /api/v1/course_charges/<id>/timeline — Audit + activiteiten

Zoeken