Use this endpoint to validate an order before checkout and calculate the final price, including a detailed price breakdown, payment schedule, and cancellation policies for accommodation and car rentals. Provide the booker's details and preferred currency to receive personalised pricing.
For accommodations: Include check-in and check-out dates, room allocation, and selected products.
For cars: Include the offer ID and search token. Optionally include selected optional products (such as GPS or child seats) returned by /cars/availability to add extras, and/or an insurance.quote_reference from /cars/availability to attach third-party insurance.
Use this option to preview pricing and policies for car rentals.
Additional information related to the car order. This field is mutually exclusive with accommodation; only one of them can be included in a request.
Input parameter with the checkin and checkout date and all the accommodation products to be ordered. This field is mutually exclusive with car; only one of them can be included in a request.
A three-letter code that uniquely identifies a monetary currency as defined by the ISO 4217 standard. The full list can be obtained by calling common/payments/currencies.
- https://demandapi.booking.com/3.2https://demandapi.booking.com/3.2/orders/preview
- https://demandapi-sandbox.booking.com/3.2https://demandapi-sandbox.booking.com/3.2/orders/preview
- Preview a car order
- Preview an accommodation order
curl -i -X POST \
https://demandapi.booking.com/3.2/orders/preview \
-H 'Authorization: Bearer <YOUR_string_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Affiliate-Id: 0' \
-d '{
"currency": "EUR",
"car": {
"offer": 123456789,
"search_token": "eyJhbGciOiJIUzI1NiJ9.eyJwIjp7ImJvb2tlciI6eyJjb3VudHJ5IjoidXMifX0sImF1ZCI6Ii9ob3RlbHMvc2VhcmNoIiwiZXhwIjoxNzUwMDAwMDAwfQ.XYZ123AbcDefGHIjklMNOpqrsTUVwxYZ456789",
"products": [
{
"id": "001234567890",
"amount": 1
}
],
"insurance": {
"quote_reference": "38ddeef-a7fb-4e24-a1e2-66fc3af23d76#1t0juiba8h6n2"
}
}
}'Successful response.
Uniquely identifies the request. Please provide this identifier when contacting support.
{ "request_id": "string", "data": { "request_id": "01fr9ez700exycb98w90w5r9sh", "data": { … } } }