Bearer token with
marketing:write scopeSingle voucher creation
Voucher code (auto-generated if not provided, always uppercased)
Voucher type:
gift_card, store_credit, loyalty_reward, compensation, referralInitial status:
pending, activeCustomer ID to assign the voucher to
Initial balance in minor units (cents)
3-letter ISO currency code
ISO 8601 datetime when voucher expires
Whether voucher can be used by different customers
Source of the voucher (e.g., “purchase”, “refund”, “reward”)
ID of the source entity (e.g., order ID, booking ID)
Custom metadata
Bulk voucher creation
Setbulk: true to generate multiple vouchers at once.
Set to
true for bulk creationNumber of vouchers to generate (max 1000)
Prefix for generated codes (max 10 characters)
Voucher type for all vouchers
Initial balance for all vouchers
Currency for all vouchers
Expiry date for all vouchers
Transferability for all vouchers
Response
Returns the created voucher(s).Request (Single)
Response (Single)
Request (Bulk)
Response (Bulk)
Errors
| Status | Error | Description |
|---|---|---|
| 409 | Voucher code already exists | A voucher with this code already exists |