v1

latestOpenAPI 3.0.22026-07-13122949.2 KB
Termino endpoints

Capacities & planning (push)

Planning update of available capacities, booking restrictions (stop sale, closed arrival, closed departure, minimal length of stay), rateplans and prices.

Granular updates are supported - you can include only availability, only rates, or both in the update. Similarly, rates update may include either prices or restrictions or both. Unchanged data should be omitted in the request.

post/planning-update

Request body

accessTokenstring required

Access token to your API.

Example request

{
  "update": [
    {
      "availability": [
        {
          "availableRooms": 5
        }
      ],
      "rates": [
        {
          "planning": [
            {
              "perRoomPrice": {
                "amount": "100.00",
                "currency": "CZK"
              },
              "perPersonPriceMatrix": [
                {
                  "personsCount": 2,
                  "price": {
                    "amount": "100.00",
                    "currency": "CZK"
                  }
                }
              ],
              "perOccupancyPriceMatrix": [
                {
                  "adultsCount": 2,
                  "childrenCount": 1,
                  "price": {
                    "amount": "100.00",
                    "currency": "CZK"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Response

Successful response

successboolean required

Always true.

Example response

{
  "success": true
}