In this section, we will cover the required methods to perform a hotel booking successfully. This method will return a Token, that needs to be stored in orther to perform the next method on the workflow (doBooking);
The methods are described below and should respect this following order;
This method is used to fetch cancellation policies of the previously selected hotel. It can be used to fetch cancellation policies for both single room and multiple room booking.
Returns the cancellation rule. It is recommended that all rooms be sent at one time.
Important: Make sure these information are shown to the user. These might be different from the information returned in searchAvailability. Trust us, and pay attention to this method, double check all the information.
This method returns other room options for the hotel requested, just in case the one you have just requested is now bookable=false
If no cancellation policy is returned, room is NOT AVAILABLE for reservation you must display other options to the user.
Important: Always make sure that the "Bookable" tag is set to 'true' for all requested rooms. Only with the tag in the 'true' state can the reservation be made.
Eventually, there may be price changes by the supplier during the flow.
This change occurs for different reasons. If you have concerns about this, please contact support@ezlink.global
Please check for the tag NewPriceIsGreaterThanOldPrice tag and if the OldSellPriceTotal price is different from SellPriceTotal. If it is, we recommend displaying a warning to the customer, indicating that the price has changed.
This returns the data of the hotel we have cached (the data is the same for all the suppliers). The METHOD getCancellationPolicy response, will return the vendor's hotel data.
Please make sure you check the hotel data returned in this method to avoid problems. We are not responsible for booking errors that the user did not validate the data. Ensure the hotel and check all the information returned