Entity · course_vouchers
Course Voucher Schema
Velden
Course Voucher Schema
Single-use or limited-use voucher granting course access (ADR 0066b Phase 4)
code
Voucher code (uppercased ASCII alnum + dash/underscore).
4–32 tekensPatternread-only
consumerTenantId
PatternDefault: nullnullable
discountMode
Waarden
freefixed_off_centspercent_offDefault: "free"
discountValue
For fixed_off_cents: cents to subtract. For percent_off: 0..100. Ignored for free.
≥ 0Default: 0
maxRedemptions
Total times the code may be redeemed across all users.
≥ 1Default: 1
redemptions
≥ 0Default: 0read-only
redeemedBy
Default: []read-only
validFrom
Default: nullnullable
validUntil
Default: nullnullable
status
Waarden
activedepletedexpiredrevokedDefault: "active"
notes
max. 2000 tekensnullable
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_vouchers— Lijst, gepagineerd + filterbaarGET /api/v1/course_vouchers/<id>— Enkele entityPOST /api/v1/course_vouchers— AanmakenPATCH /api/v1/course_vouchers/<id>— Gedeeltelijke updateDELETE /api/v1/course_vouchers/<id>— Soft-deleteGET /api/v1/course_vouchers/<id>/timeline— Audit + activiteiten