Get voucher PDF
GET /v1/public/vouchers/{id}/pdf
Generates and downloads a PDF for an issued customer voucher.
Authorization
X-API-Key required
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The issued voucher's MongoDB _id. |
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. |
500 | The voucher PDF could not be generated. |