Get voucher PDF
GET /v1/public/vouchers/{id}/pdf
Generates and downloads a PDF for a customer voucher.
Authorization
X-API-Key required with the vouchers:read scope
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The customer voucher's returned id or externalId. |
Request example
curl -X GET "https://api.remyrewards.co.uk/v1/public/vouchers/66c735e253f2836fbe941234/pdf" \
-H "Accept: application/pdf" \
-H "X-API-Key: YOUR_API_KEY"Responses
| Status | Description |
|---|---|
200 | Voucher PDF. |
401 | The API key is missing or invalid. |
404 | The requested integration resource was not found. |
429 | A rate or concurrency limit was exceeded. |
500 | The voucher PDF could not be generated. |