API reference

HTS APIs

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

Schema

unit_configuration

Configuration information for a lodging unit

Fields

beds
integer
required

Total number of beds in the house

Example 3
bedrooms
integer
required

Number of bedrooms in the house

Example 2
bathrooms
number
required

Number of bathrooms in the house

Example 2.5
room_configurations
array of room_configuration
required

List of rooms configurations in the unit

Show fields
Array of room_configuration · List of rooms configurations in the unit
name
string
required

Room name

Example Master Bedroom
bed_configurations
array of bed_configuration
required

List of bed configurations in the room

Show fields
Array of bed_configuration · List of bed configurations in the room
quantity
integer
required

Number of beds of this type

Range ≥ 1 · Example 2
bed_type
string enum
required

Type of bed available in a room

Values doublefutonkingmurphyqueensofatatamitwinsinglefullrun_of_the_housedormwaterbunkcribrollawaytrundleunspecified · Example king
description
localizable_string

A LocalizableString object contains the text value and its associated locale. The value field is a required string with the actual text. The locale field is an optional string representing the language and region of the value. The locale is omitted when Hopper can't guarantee the language of the value.

Show fields
value
string
required

The actual text value, which can vary based on the locale.

Example Oceanside Hotel is a remarkable oasis boasting eye-catching design, luxurious amenities, and cozy stylishly furnished rooms. Each accommodation has white linens, plush beds, luxury Lady Primrose bath products, and a well-appointed decor. Guests can enjoy free WiFi, beach amenities, outdoor activities, and watersports. As the Miami sun warms your skin, retreat to our relaxing pool area with lounges or grab a bite at The Tavern, our full-service restaurant and bar, open for breakfast, lunch, and dinner. Whether you are visiting for business or pleasure, the Oceanside Hotel is an intimate boutique experience in Miami Beach.
locale
string

Locale code representing the language and regional variation of text content. This follows the IETF RFC 5646 standard for language tags, which provides a standardized way to identify languages.

Common examples:

  • "en-US" for U.S. English
  • "fr-FR" for French in France
  • "es-ES" for Spanish in Spain
  • "zh-CN" for Chinese in China
  • "ja-JP" for Japanese in Japan
Pattern ^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$ · Example en-US
max_occupancy
integer

Maximum occupancy of the unit

Example 6
max_adults
integer

Maximum number of adults allowed in the unit

Example 4
max_children
integer

Maximum number of children allowed in the unit

Example 2
size_sq_ft
integer

Square footage of the unit

Example 350
Example
{
  "beds": 3,
  "bedrooms": 2,
  "bathrooms": 2.5,
  "room_configurations": [
    {
      "name": "Master Bedroom",
      "description": {
        "value": "Oceanside Hotel is a remarkable oasis boasting eye-catching design, luxurious amenities, and cozy stylishly furnished rooms. Each accommodation has white linens, plush beds, luxury Lady Primrose bath products, and a well-appointed decor. Guests can enjoy free WiFi, beach amenities, outdoor activities, and watersports. As the Miami sun warms your skin, retreat to our relaxing pool area with lounges or grab a bite at The Tavern, our full-service restaurant and bar, open for breakfast, lunch, and dinner. Whether you are visiting for business or pleasure, the Oceanside Hotel is an intimate boutique experience in Miami Beach.\n",
        "locale": "en-US"
      },
      "bed_configurations": [
        {
          "quantity": 2,
          "bed_type": "king"
        }
      ]
    }
  ],
  "max_occupancy": 6,
  "max_adults": 4,
  "max_children": 2,
  "size_sq_ft": 350
}