Quote is an operation used to assess and valuate the rate before the actual booking. It returns the same information as the Search response for a hotel rate with up-to-date price, along with additional information regarding the rate: rate breakdown and cancellation policies.
There are different parameters that can be set up in the request (The below ones are mandatory)
- optionRefId: Identifier of the option chosen in Search. Mandatory
- language: Language to be used in the request
In the Query Variables, you must modify the optionRefId with the option id value returned in the search response and send the query.
How to request
Here you can find 2 examples of how to valuate an availability option, one for 1 room and the other one for multi-room.
Please, bear in mind
Please, bear in mind that there are some mandatory data you should include at this step:
- Cancellation policies: Within the cancelPolicy structure response there is a refundable field. If this field is filled in with false, it means that the room has 100% cancellation cost, so the room is non-refundable.