This is a public endpoint for booking engines to look up voucher details by code.
Bearer token with marketing:read scope
The voucher code to look up
Response
Returns whether the voucher is valid and its details.
Whether the voucher is valid for use
Human-readable error message if invalid
Error codes
| Error | Description |
|---|
voucher_not_found | No voucher with this code exists |
voucher_inactive | Voucher is not active |
voucher_expired | Voucher has expired |
voucher_depleted | Voucher has no remaining balance |
curl -X GET "https://api.voyantcloud.com/v1/vouchers/lookup?code=GC1A2B3C4D" \
-H "Authorization: Bearer $API_KEY"
{
"valid": true,
"voucher": {
"id": "voucher_abc123",
"code": "GC1A2B3C4D",
"type": "gift_card",
"status": "active",
"current_balance_minor": 7500,
"initial_balance_minor": 10000,
"currency": "EUR",
"expires_at": "2025-12-31T23:59:59Z",
"is_transferable": true
}
}
{
"valid": false,
"error": "voucher_depleted",
"message": "Voucher has no remaining balance",
"voucher": {
"code": "GC1A2B3C4D",
"status": "depleted",
"current_balance_minor": 0,
"currency": "EUR"
}
}