Skip to main content

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

NameLocationTypeRequiredDescription
idpathstringYesThe 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

StatusDescription
200Voucher PDF.
401The API key is missing or invalid.
404The requested integration resource was not found.
500The voucher PDF could not be generated.