Book
Book method is called to either hold a booking or to book and voucher a booking based on the selected rooms and guest information. We strongly recommend checking the updated prices and cancellation policies for the selected rooms through BlockRoom method before proceeding with the hotel booking to reduce the probability of booking failure.
To hold a booking, the ‘IsVouchered’ node should be set as false. However, all hold bookings should be vouchered by calling ‘GenerateVoucher’ method before last cancellation date to avoid cancellation of confirmed booking.
To book and voucher in one go, the ‘IsVouchered’ node should be set as true. In this case, there is no need to call ‘GenerateVoucher’ method separately. Price verification is done before creating a booking and Confirmation No. / Booking Reference No. is returned in case of a successful booking. In case of Price change or Cancellation Policy change, you will get new price and/or new cancellation policy in the HotelBook response with IsPriceChanged node and/or IsCancellationPolicyChanged node set as ‘true’. The price comparison is to be made at the client’s end, and Book request needs to be sent again with the updated price and/ or updated cancellation policy. 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://staging.travelxmlapi.com/V3/hotelservice/Hotelrest/book: