Email & Vouchers

Manage email & vouchers

Get Voucher

get

Get a valid voucher / ticket in PDF format.

Some third party reservation systems are unable to provide the voucher codes in a string format, instead you can obtain the PDF file using this API. This endpoint can also be used in case the voucher is not released directly upon booking confirmation.

Please note that by sending the correct Media Type header you can define whether to receive a download URL (application/json) or an encoded PDF file directly (application/pdf).

Authorizations
Path parameters
order_referencestring · min: 8Required

A unique identifier got in response of booking API.

Example: ORDRREF123456
Query parameters
booking_referencestring · min: 8Optional

A unique identifier got in response of booking API.

Example: BOOKING_REFERENCE_123
force_releasebooleanOptional

Force release of the voucher if the booking is still pending.

Example: true
Responses
200

A PDF file

get
GET /v3.8/distributor/orders/{order_reference}/voucher HTTP/1.1
Host: staging-distributor-api.prioticket.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "url": "https://report.prioticket.com/order/voucher/MTU5HzAwODQBMzA5NzI4"
}

Was this helpful?