Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve a single voucher by ID
marketing:read
curl -X GET "https://api.voyantcloud.com/v1/vouchers/voucher_abc123" \ -H "Authorization: Bearer $API_KEY"
{ "data": { "id": "voucher_abc123", "workspaceId": "ws_xyz", "code": "GC1A2B3C4D", "type": "gift_card", "status": "active", "customerId": null, "initialBalanceMinor": 10000, "currentBalanceMinor": 7500, "currency": "EUR", "expiresAt": "2025-12-31T23:59:59Z", "isTransferable": true, "sourceType": "purchase", "sourceId": "order_123", "lastUsedAt": "2024-07-15T10:30:00Z", "metadata": null, "createdAt": "2024-01-15T09:00:00Z", "updatedAt": "2024-07-15T10:30:00Z" } }