menu

Hotel GenerateVoucher Details

GenerateVoucher method is used to voucher hold bookings. All Hold Bookings should be vouchered before the before Last Cancellation Date. Failure to do so may leady to cancellation of the booking.

Instead of 'Vouchered' or 'Confirmed' you might get 'Pending' as BookingStatus for some bookings. This is because some of the suppliers do not provide confirmation of the booking immediately. In this case you need to call HotelBookingDetail method after few minutes (5-10) to get the updated status.

Service URL (REST) to be used:

https://HotelBE.tektravels.com/hotelservice.svc/rest/GenerateVoucher

GenerateVoucher Request
Level Element Format Comments Mandatory/ Optional
1 EndUserIp String IP Address of the end user Mandatory
2 TokenId String Token ID Mandatory
(Token Id to be echoed back from Authenticate response)
3 BookingId Integer Unique booking id of the successful booking Mandatory
(will always be greater than 0)
GenerateVoucher Response
Level Element Format Comments Mandatory/ Optional
1 VoucherStatus Boolean Voucher Status Mandatory true - Booking is vouchered Else false - Booking is not Vouchered
2 Status Enumeration Booking status Mandatory Possible values can be 0 – BookFailed, 1 - Confirmed, 3 – VerifyPrice, 6 – Cancelled
3 HotelBookingStatus String Booking status description Mandatory Possible values can be – BookFailed, Confirmed, VerifyPrice, Cancelled
4 BookingId Integer Unique booking id of the successful booking Mandatory
5 BookingRefNo String Booking Reference Number Mandatory
6 ConfirmationNo String Unique confirmation number of the successful booking Mandatory
7 InvoiceNumber String Invoice Number Mandatory
8 ResponseStatus Enumeration Response status Mandatory NotSet = 0, Successfull = 1, Failed = 2, InValidRequest = 3, InValidSession = 4, InValidCredentials = 5
9 TraceId String Trace Id Mandatory
10 Error Mandatory
10.1 ErrorCode Integer Code corresponding to the Error Mandatory
10.2 ErrorMessage String Contains error message Mandatory