API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

availability_calendar_request

Request for the availability calendar operation

Fields

request_id
string · uuid
required

Unique value used to identify this request. If provided to us during operational questions, it will help us provide better support.

Example 123e4567-e89b-12d3-a456-426614174000
lodging_ids
array of lodging_id
required

List of lodging IDs to get calendar for. (1 to 25)

Items ≥ 1, ≤ 25
start_date
string · date
required

The start date of the calendar period. Notes:

  • The date is interpreted in the lodging's timezone.
  • Past dates are allowed; past days will be returned as unavailable.
  • Start date can be at most 2 years in the future.
Example 2022-01-01
end_date
string · date
required

The end date of the calendar period. Note:

  • The date is interpreted in the lodging's timezone.
  • End date needs to be after the start date.
  • End date can be at most 1 year after the start date.
Example 2022-05-01

Used by

PUT/api/lodging/v1/calendars/availabilityGet availability calendar for lodgings
Example
{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodging_ids": [
    "123e4567-e89b-12d3-a456-426614174000",
    "987f6543-21ba-43dc-9876-543210987654"
  ],
  "start_date": "2022-01-01",
  "end_date": "2022-05-01"
}