GET /booking/voucher

viator.com

Summary: /booking/voucher
Operation ID: bookingVoucher
Auth: unknown
Description

Get voucher details - Use this service to retrieve the voucher details of a booked item. - The data returned is HTML-formatted and can be wrapped in a header and/or footer. **Sample query parameters** - leadLastName=Simpson test&itemId=580669678 **or** - voucherKey=1005851866:4af44c13ecf3f1a7d3f9ef2fc00c2257e08fa42ae20f877f3039ff9b52aba24e:580669678&fullHTML=true&mobileVoucher=true

Parameters (7)

Accept-Language (string, header, required)

Specifies the language into which the natural-language fields in the response from this service will be translated (see [Accept-Language header](#section/Appendices/Accept-Language-header) for available langage codes)

embeddedResources (boolean, query, optional)

ignore (Viator only)

fullHTML (boolean, query, optional)

**specifier**: - set to `true` if you wish to retrieve the full HTML-formatted voucher - set to `false` if you want the div fragment (optional)

itemId (integer, query, optional)

Booking-reference number generated by Viator - **Note**: For more information, see: [Booking references](#section/Key-concepts/Booking-references)

leadLastName (string, query, optional)

**surname** of *this* lead traveler

mobileVoucher (boolean, query, optional)

**specifier**: - if set to `true`, the service returns the mobile (cut down) HTML-formatted voucher - if `false` the full voucher HTML is returned (ignoring `fullHTML`) - default: `true` - this field should only be enabled for products that have a `voucherOption` of `'VOUCHER_E'` - do not enable `mobileVouchers` for paper vouchers (`voucherOption` of `'VOUCHER_PAPER_ONLY'`) as no barcode is returned - the voucher information is available in the response from [/product](#operation/product), [/booking/book](#operation/bookingBook), [/booking/pastbooking](#operation/bookingPastbooking), [/booking/mybookings](#operation/bookingMybookings) (it is also displayed under the 'Redemption Info' heading in this service)

voucherKey (string, query, optional)

**identifier** for the voucher - **note**: use <u>either</u> `voucherKey` <u>or</u> the three separate parameters - if `voucherKey` is provided as well as the other parameters, then `voucherKey` overrides the other paramaters - `voucherKey` is obtained from [/booking/mybookings](#operation/bookingMybookings) or in the response from [/booking/book](#operation/bookingBook) when you make a booking

No probe data for this endpoint yet.