Entity · course_vouchers
Course Voucher Schema
Fields
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 charactersPatternread-only
consumerTenantId
PatternDefault: nullnullable
discountMode
Values
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
Values
activedepletedexpiredrevokedDefault: "active"
notes
max 2000 charactersnullable
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_vouchers— List, paginated + filterableGET /api/v1/course_vouchers/<id>— Single entityPOST /api/v1/course_vouchers— CreatePATCH /api/v1/course_vouchers/<id>— Partial updateDELETE /api/v1/course_vouchers/<id>— Soft deleteGET /api/v1/course_vouchers/<id>/timeline— Audit + activities