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 car order
- Preview accommodation order
- Preview input for accommodation
- Preview input for car
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",
"accommodation": {
"id": 6745031,
"booker": {
"country": "nl",
"platform": "mobile",
"travel_purpose": "leisure",
"user_groups": [
"authenticated"
]
},
"checkin": "!START_DATE!",
"checkout": "!END_DATE!",
"products": [
{
"id": "674503106_275710478_0_2_0",
"allocation": {
"number_of_adults": 1,
"children": [
8
]
}
},
{
"id": "674503113_275710486_0_1_0",
"allocation": {
"number_of_adults": 1,
"children": []
}
}
]
}
}'- Date-Time
- Literal 'now'
- Not applicable (Null)
- Preview output for accommodation
- Preview output for car
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": { "accommodation": { … }, "order_token": "..." } }