What is the Hotel-X Quote query and what information can I expect to receive?

It is our pre-book step, where we check if there has been any change in the availability and the price of the option selected in Search.

It returns a summary of the option plus additional information like rate breakdown and cancellation policies. 

The information returned might vary between Sellers. For instance, there might be Sellers returning cancel policies in search and not in quote, in quote and not in search and in both of them.

Some of the fields that can be added to our Quote query are:

  • Status
  • Price
  • Cancel Policy
  • Rooms
  • Surcharges

Below you will find a Quote example:

{"query":"# Example Quote - quote token\nquery ($criteriaQuote: HotelCriteriaQuoteInput!, $settings: HotelSettingsInput) {\n hotelX {\n quote(criteria: $criteriaQuote, settings: $settings) {\n auditData{\n\t\t\t\ttransactions{\n\t\t\t\t\trequest\n\t\t\t\t\tresponse\n\t\t\t\t}\n\t\t\t\ttimeStamp\n\t\t\t}\n\t\t\toptionQuote {\n optionRefId\n status\n price {\n currency\n binding\n net\n gross\n exchange {\n currency\n rate\n }\n markups {\n channel\n currency\n binding\n net\n gross\n exchange {\n currency\n rate\n }\n }\n }\n surcharges {\n chargeType\n price {\n currency\n binding\n net\n gross\n exchange {\n currency\n rate\n }\n markups {\n channel\n currency\n binding\n net\n gross\n exchange {\n currency\n rate\n }\n }\n }\n description\n }\n cancelPolicy {\n refundable\n cancelPenalties {\n hoursBefore\n penaltyType\n currency\n value\n }\n }\n cardTypes\n remarks\n }\n errors {\n code\n type\n description\n }\n warnings {\n code\n type\n description\n }\n }\n }\n}\n","variables":{"criteriaQuote":{"optionRefId":""},"settings":{"client":"","context":"","testMode":true,"auditTransactions":true}}}

Learn more about our Quote query by browsing on our Playgroung in the DOCS tab.