Entity · course_vouchers
Course Voucher Schema
Felder
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 ZeichenPatternread-only
consumerTenantId
PatternDefault: nullnullable
discountMode
Werte
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
Werte
activedepletedexpiredrevokedDefault: "active"
notes
max 2000 Zeichennullable
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/course_vouchers— Liste, paginiert + filterbarGET /api/v1/course_vouchers/<id>— Einzelne EntityPOST /api/v1/course_vouchers— AnlegenPATCH /api/v1/course_vouchers/<id>— Teil-UpdateDELETE /api/v1/course_vouchers/<id>— Soft-DeleteGET /api/v1/course_vouchers/<id>/timeline— Audit + Aktivitäten