latestOpenAPI 3.1.02026-08-10390815.4 KB

e5f3dccae7ca

Orders

Preview an order

This endpoint returns the total final price with final charges, as well as the price breakdown and payment/cancellation policies for each product passed in the input.

post/orders/preview

Headers

X-Affiliate-Idinteger required

Include here your Affiliate identifier number

Request body

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>.

Example request

{
  "currency": "EUR"
}

Response

Successful response.

request_idstring

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

Example response

{
  "data": {
    "accommodation": {
      "currency": {
        "accommodation": "EUR",
        "booker": "EUR"
      },
      "products": [
        {
          "occupancy_mismatch": {
            "allocated": {
              "number_of_adults": 1,
              "children": null
            },
            "unallocated": {
              "number_of_adults": 1,
              "children": null
            }
          }
        }
      ]
    }
  }
}