Use this endpoint to return detailed product availability, price and charges of the accommodation matching a given search criteria.
By default, only product availability and price is returned. To receive extended information use the extras parameter.
Note: It is mandatory to pass the input parameters: accommodation, booker, checkin, checkout and guest.
A signed integer number that uniquely identifies an accommodation property. The full list can be obtained by calling accommodations/details.
The checkin date. Must be within 500 days in the future and in the format yyyy-mm-dd.
The checkout date. Must be later than {checkin}. Must be between 1 and 90 days after {checkin}. Must be within 500 days in the future and in the format yyyy-mm-dd.
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.
Input parameter to request for additional information about this product.include_bundle_variants must be passed in order to retrieve all value added products.
- Production environmenthttps://demandapi.booking.com/3.1/accommodations/availability
- Sandbox environmenthttps://demandapi-sandbox.booking.com/3.1/accommodations/availability
curl -i -X POST \
https://demandapi.booking.com/3.1/accommodations/availability \
-H 'Authorization: Bearer <YOUR_string_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Affiliate-Id: 0' \
-d '{
"accommodation": 10004,
"booker": {
"country": "nl",
"platform": "desktop"
},
"checkin": "!START_DATE!",
"checkout": "!END_DATE!",
"extras": [
"extra_charges"
],
"guests": {
"number_of_adults": 2,
"number_of_rooms": 1
}
}'- string or null (date-time)
- string or null
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": { "id": 10004, "currency": "EUR", "deep_link_url": "booking://hotel/10004?affiliate_id=!AFFILIATE_ID!&checkin=!START_DATE!&checkout=!END_DATE!", "products": [ … ], "recommendation": { … }, "url": "https://www.booking.com/hotel/nl/toren.html?aid=!AFFILIATE_ID!&checkin=!START_DATE!&checkout=!END_DATE!&no_rooms=1&group_adults=2" } }