Skip to main content
The Developer API uses standard HTTP status codes. Error responses are JSON objects with a single detail field describing what went wrong.
For 422 validation errors (request body or query parameter shape mismatch), detail is an array describing each invalid field – this is FastAPI’s HTTPValidationError shape:

Status codes

Endpoint-specific 400 messages

The redemption endpoint returns 400 with one of these detail strings:
  • "Voucher is pending and not redeemable" – voucher status is pending.
  • "Voucher is not redeemable" – status is redeemed, expired, voided, or refunded.
  • "Cannot redeem an expired voucher"expiry_date is in the past.
  • "Redemption amount exceeds available balance"amount > balance.