Skip to main content
The Vouchers API allows you to create and manage stored-value vouchers including gift cards, store credit, loyalty rewards, and compensation credits.

Key concepts

Vouchers

A voucher is a stored-value instrument with a balance that can be redeemed during checkout:
  • Type: The purpose of the voucher (gift card, store credit, loyalty reward, compensation, referral)
  • Balance: Current remaining value in minor units (cents)
  • Currency: The currency of the voucher balance
  • Transferability: Whether the voucher can be used by different customers

Voucher transactions

Every balance change is recorded as a transaction:
  • Redemption: Deducts balance when used during checkout
  • Refund: Adds balance back (e.g., when a booking is cancelled)
  • Adjustment: Manual balance adjustments

Scopes required

Voucher types

Voucher statuses

Validation flow

When validating a voucher:
  1. Lookup: Find the voucher by code
  2. Status check: Verify voucher is active
  3. Expiry check: Ensure voucher hasn’t expired
  4. Balance check: Confirm remaining balance
  5. Currency match: Verify currency matches the order
  6. Ownership check: For non-transferable vouchers, verify customer ownership
  7. Calculate coverage: Return how much of the order the voucher can cover

Partial redemptions

Vouchers support partial redemptions:
  • If the order total is less than the voucher balance, only the order amount is deducted
  • If the order total exceeds the voucher balance, the full voucher balance is applied
  • The remaining balance (if any) can be used on future orders