HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
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
lodgingsList of lodging calendars for which availability information is available.
Show fields
lodging_idUnique identifier for the lodging
123e4567-e89b-12d3-a456-426614174000calendar_daysList 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
Availability information for a single day
kind:known (known_availability_calendar_day) known_availability_calendar_day
dateThe date (YYYY-MM-DD format) in the lodging's timezone
2022-01-01kindDiscriminator for calendar day type: 'known' (availability is known) or 'unknown' (availability is not known for this day)
knownunknown · Example knownavailableWhether 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.)
availableunavailable · Example availableunknown (unknown_availability_calendar_day) unknown_availability_calendar_day
dateThe date (YYYY-MM-DD format) in the lodging's timezone
2022-01-01kindDiscriminator for calendar day type: 'known' (availability is known) or 'unknown' (availability is not known for this day)
knownunknown · Example knownresponse_idUnique identifier for this response
123e4567-e89b-12d3-a456-426614174000Used by
{
"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"
}