In this section, we will cover the required methods to perform a hotel booking successfully.

The methods are described below and should respect this following order;

  • searchAvailability
  • getCancellationPolicies
  • doBooking

Make a room reservation.

doBooking

You must request all rooms together.

Set timeouts to at least 120 seconds in this method.

Double check the status returned by each room! The only status guaranteed is Confirmed;

The token sent in the booking request must be the same returned in the getCancellationPolicies. Sometimes the token sent in the getCancellationPolicy can be different from the token returned in the search, and the booking request must be made with the last token sent in the getCancellationPolicy.

To link other services to an existing booking, for example, a reservation in Miami and another in Orlando, just use the BookingId tag in the second booking. This way all the services can be in the same existing reservation.

In "RoomServices" populate with the Service.ID that returns in searchAvailabilityResponse