Retrieve voucher

#affiliate

https://api.worldota.net/api/b2b/v3/hotel/order/document/voucher/download/

The call gets the order voucher file. The file is provided in PDF format.

Request example

curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/hotel/order/document/voucher/download/?data={%22partner_order_id%22%3A%22asd123%22%2C%22language%22%3A%22en%22}'

Parameters

Errors

The error field has the value specified in the headers below.

failed_to_generate_document

The voucher is in generating. Try to request later.

order_not_found

The order with the partner_order_id field value isn’t found.

pending

The voucher is in processing. Try to request later.

voucher_is_not_downloadable

The order is in processing. Try to request when the order will be completed and its cost will be paid.