Overview

The Book API allows you to create a hotel reservation for one or more priced rooms, for the number of guests specified in each room, through a single supplier. You can make a booking for up to 9 rooms, with up to 9 guests in each room, in one single call. This limitation can vary per supplier.

Before calling the Book API, you must call the Get Rate Rules API to ensure that you have received appropriately priced rooms from the supplier or to obtain the information that you need to call the Book API.

The Book API allows you to retrieve the booking status and the booking details from the supplier.

For a seamless experience, we have provided two use cases for you to try out, namely a per-booking pricing model use case and a per-room pricing model use case. You must verify the pricing model that was used in the Get Rate Rules API, and then use the appropriate pricing model use case in the Book API. For example, if the Get Rate Rules - Per Booking use case was used in the Get Rate Rules API, you must use the Book - Per Booking use case.

The Book API endpoint is https://usg.secure.cnxloyalty.com/api/hotels/book/{sessionId}.

Book - Per Booking

This is a sample booking scenario where the Get Rate Rules - Per Booking call was made earlier and you now want to go ahead with the booking. Note that there is only one Book API and this scenario is created to specifically give an example of how you can perform a per-booking type of booking.

Book - Per Room

This is a sample booking scenario where the Get Rate Rules - Per Room call was made earlier and you now want to go ahead with the booking. Note that there is only one Book API and this scenario is created to specifically give an example of how you can perform a per-room type of booking.

<< Go to the previous API: Get Rate Rules API     |      Go to the next API: Cancel API >>

For any query or suggestions, feel free to drop an email to support@one-connect.io