Download voucher PDFs

POST /vouchers/pdfs

Requires view_orders permission

Headers

  • Account-ID string(uuid) Required

    Account ID - Can be found on the Dashboard under Settings → API Tokens

application/json

Body Required

  • voucher_ids array[string(uuid)] Required

    At least 1 but not more than 1000 elements.

Responses

  • 200 application/pdf

    PDF download

  • 404

    Voucher not found

  • 422

    Invalid voucher IDs

POST /vouchers/pdfs
curl \
 --request POST 'https://api.gb.enjovia.app/vouchers/pdfs' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "Account-ID: string" \
 --data '{"voucher_ids":["abc12345-e89b-12d3-a456-426614174000","def45678-e89b-12d3-a456-426614174001"]}'
Request example
{
  "voucher_ids": [
    "abc12345-e89b-12d3-a456-426614174000",
    "def45678-e89b-12d3-a456-426614174001"
  ]
}