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_response

Response for the availability calendar operation. Lodgings present in the response have complete calendar coverage for the requested date range. Missing lodgings from the response indicate the lodging itself is unknown.

Fields

lodgings
array of lodging_availability_calendar
required

List of lodging calendars for which availability information is available.

Show fields
Array of lodging_availability_calendar · List of lodging calendars for which availability information is available.
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
calendar_days
array of availability_calendar_day
required

List of calendar days with availability information. Must contain an entry for every day in the requested date range. Days with unknown availability should use the Unknown availability day type.

Show fields
Array of availability_calendar_day · one of 2 · List of calendar days with availability information. Must contain an entry for every day in the requested date range. Days with unknown availability should use the Unknown availability day type.

Availability information for a single day

Exactly one of the following, selected by kind:
known (known_availability_calendar_day) known_availability_calendar_day
date
string · date
required

The date (YYYY-MM-DD format) in the lodging's timezone

Example 2022-01-01
kind
string enum
required

Discriminator for calendar day type: 'known' (availability is known) or 'unknown' (availability is not known for this day)

Values knownunknown · Example known
available
string enum
required

Whether the lodging is available or unavailable on a calendar day. (Formerly exposed as schema key available_enum; use availability_status for consistency with other enums such as property_type, meal_plan.)

Values availableunavailable · Example available
unknown (unknown_availability_calendar_day) unknown_availability_calendar_day
date
string · date
required

The date (YYYY-MM-DD format) in the lodging's timezone

Example 2022-01-01
kind
string enum
required

Discriminator for calendar day type: 'known' (availability is known) or 'unknown' (availability is not known for this day)

Values knownunknown · Example known
response_id
string · uuid
required

Unique identifier for this response

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "lodgings": [
    {
      "lodging_id": "123e4567-e89b-12d3-a456-426614174000",
      "calendar_days": [
        {
          "kind": "known",
          "date": "2022-01-01",
          "available": "available"
        },
        {
          "kind": "known",
          "date": "2022-01-02",
          "available": "available"
        },
        {
          "kind": "known",
          "date": "2022-01-03",
          "available": "unavailable"
        },
        {
          "kind": "unknown",
          "date": "2022-01-04"
        },
        {
          "kind": "known",
          "date": "2022-01-05",
          "available": "available"
        }
      ]
    }
  ],
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}