latestOpenAPI 3.1.02026-08-10390815.4 KB

e5f3dccae7ca

Accommodations

Check availability

Use this endpoint to return detailed product availability, price and charges of the accommodation matching a given search criteria. <br/>By default, only product availability and price is returned. To receive extended information use the extras parameter. <br/><br/>Note: It is mandatory to pass the input parameters: accommodation, booker, checkin, checkout and guest.

post/accommodations/availability

Headers

X-Affiliate-Idinteger required

Include here your Affiliate identifier number

Request body

accommodationinteger required

A signed integer number that uniquely identifies an accommodation property. The full list can be obtained by calling accommodations/details.

checkinstring date required

The checkin date. Must be within 500 days in the future and in the format yyyy-mm-dd.

checkoutstring date required

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.

currencystring

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 <a href="/demand/docs/open-api/demand-api/commonpayments/common/payments/currencies" target="_blank">common/payments/currencies</a>.

extrasstring[]

Input parameter to request for additional information about this product.include_bundle_variants must be passed in order to retrieve all value added products.

productsstring[]

Example request

{
  "currency": "EUR"
}

Response

Successful response.

request_idstring

Uniquely identifies the request. Please provide this identifier when contacting support.

Example response

{
  "data": {
    "currency": "EUR"
  }
}