Voucher Download
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
The language.
ℹ️
The possible values:
ar
—Arabic.bg
–Bulgarian.cs
–Czech.de
–German.el
–Greek.en
–English.es
–Spanish.fr
–French.he
–Hebrew.hu
–Hungarian.it
–Italian.ja
–Japanese.kk
–Kazakh.ko
–Korean.nl
–Dutch.pl
–Polish.pt
–Portuguese.pt_PT
–Portuguese (Portugal).ro
–Romanian.ru
–Russian.sq
–Albanian.sr
–Serbian.th
–Thai.tr
–Turkish.uk
–Ukrainian.vi
–Vietnamese.zh_CN
–Simplified Chinese.
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.