2. Validate an offer (Prebook)
The Valuation query (also known as Prebook) is used to verify that a selected hotel rate is still available before proceeding with the booking.
This step ensures that the rate has not changed and allows the system to generate a Prebook ID, which temporarily locks the price and availability for a short period. During this process, the API checks for any updates to the rate, including price fluctuations, availability changes, or modifications to cancellation policies. If successful, the response will include a Prebook ID, which must be used in the final booking request to confirm the reservation.
Request body
query Liteapi {
liteapi {
quote(
criteria: {
optionRefId: "GE5ESNKNKZKVEQ2OJJLEMRSRKIZE4R2OINDEOVCT"
}
settings: { client: "Sample customer", context: "1", timeout: 20000 }
) {
optionQuote {
optionRefId
status
paymentType
cardTypes
remarks
price {
currency
binding
net
gross
minimumSellingPrice
}
cancelPolicy {
refundable
}
}
}
}
}
Sample response
The response body will contain the LiteAPI Prebook ID under the optionRefId
string.
{
"data": {
"hotelX": {
"quote": {
"optionQuote": {
"optionRefId": "hU8ccug2o",
"status": "OK",
"paymentType": "MERCHANT",
"cardTypes": null,
"remarks": "<br/><br/><ul><li>Free breakfast</li><li>Free self parking</li></ul><p><b>Check-in/Check-out</b><ul><li>Check-in starts at 1 PM</li><li>Check-out ends at 11 AM </li></ul></p><p><b>Know Before You Go</b> <br /><ul> <li>This property's policy is to refuse certain bookings for the purpose of group events or parties, including pre-wedding stag/bachelor and hen/bachelorette parties. </li><li>Up to 2 children 4 years old and younger stay free when occupying the parent or guardian's room, using existing bedding. </li><li>Only registered guests are allowed in the guestrooms. </li> <li>Alcohol is not served or permitted at this property. </li> </ul></p><p><b>Fees</b> <br /><p>The following fees and deposits are charged by the property at time of service, check-in, or check-out. </p> <ul> <li>Fee for in-room wireless Internet: GBP 0 per stay (rates may vary)</li> <li>Late check-in fee: GBP 50 for check-in between 7:30 PM and 10:30 PM</li> <li>Late check-out fee: GBP 30 (subject to availability)</li> </ul> <p>The above list may not be comprehensive. Fees and deposits may not include tax and are subject to change. </p></p><p><b>Mandatory Fees and Taxes</b> <br /><p>You'll be asked to pay the following charges at the property:</p> <ul><li>Deposit: GBP 50.00 per stay</li></ul> <p>We have included all charges provided to us by the property. However, charges can vary, for example, based on length of stay or the room you book. </p></p>",
"price": {
"currency": "USD",
"binding": false,
"net": 55.97,
"gross": null,
"minimumSellingPrice": null
},
"cancelPolicy": {
"refundable": true
}
}
}
}
}
}
Updated 4 days ago