API reference

HTS APIs

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

PUT/api/lodging/v1/contentContent

Get lodgings content

https://travel-distribution.staging.htsapis.com/api/lodging/v1/content

Get lodging content information including property details, amenities, policies, and room types. Usage of this endpoint is limited to authorized tenants only, contact Hopper to get access.

Request body application/json · required

Search criteria for retrieving lodging content

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 content for (up to 20)

Items ≥ 1, ≤ 20
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

Responses

200List of lodging content matching the search criteria
response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
lodgings
array of lodging

Lodgings list

Show fields
Array of lodging · Lodgings list
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
content
lodging_content · one of 2
required

Comprehensive content information for a lodging property, including all details needed for guest discovery, evaluation, and booking decisions. This serves as the base schema for all lodging types and contains core information applicable to any accommodation property.

This schema uses discriminator patterns to support different lodging types (hotels, vacation rentals) while maintaining a consistent base structure. The content includes property details, location information, amenities, media assets, and operational information.

Show fields

Comprehensive content information for a lodging property, including all details needed for guest discovery, evaluation, and booking decisions. This serves as the base schema for all lodging types and contains core information applicable to any accommodation property.

This schema uses discriminator patterns to support different lodging types (hotels, vacation rentals) while maintaining a consistent base structure. The content includes property details, location information, amenities, media assets, and operational information.

Exactly one of the following, selected by type:
hotel (hotel_content) hotel_content · one of 2

Content information specific to hotel properties, extending the base lodging content with hotel-industry specific fields and business concepts. Hotels are typically commercial accommodations with daily housekeeping, front desk services, and standardized amenities.

Hotel-Specific Features:

  • Chain and brand affiliation indicating service standards and loyalty programs
  • Accepted payment methods for guest transactions
  • Corporate operational standards and guest service protocols
Exactly one of the following, selected by type:
hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2

Content information specific to vacation rental properties, extending the base lodging content with fields relevant to short-term rental accommodations. Vacation rentals are typically private residences or units rented directly from property owners or managers, offering home-like amenities and more personalized, residential experiences compared to hotels.

Vacation Rental Specific Features:

  • House rules and property-specific policies set by individual owners
  • Host information for direct guest communication and local expertise
  • Unit configuration details for space planning and occupancy decisions
  • Multi-unit property indicators for complex or compound properties
Exactly one of the following, selected by type:
hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2

Content information specific to vacation rental properties, extending the base lodging content with fields relevant to short-term rental accommodations. Vacation rentals are typically private residences or units rented directly from property owners or managers, offering home-like amenities and more personalized, residential experiences compared to hotels.

Vacation Rental Specific Features:

  • House rules and property-specific policies set by individual owners
  • Host information for direct guest communication and local expertise
  • Unit configuration details for space planning and occupancy decisions
  • Multi-unit property indicators for complex or compound properties
Exactly one of the following, selected by type:
hotel (hotel_content) hotel_content · one of 2

Content information specific to hotel properties, extending the base lodging content with hotel-industry specific fields and business concepts. Hotels are typically commercial accommodations with daily housekeeping, front desk services, and standardized amenities.

Hotel-Specific Features:

  • Chain and brand affiliation indicating service standards and loyalty programs
  • Accepted payment methods for guest transactions
  • Corporate operational standards and guest service protocols
Exactly one of the following, selected by type:
hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
400Invalid Request. There will be an error code in the response detailing the issue.
error_code
string enum
required

Error codes for the content operation. This is a non-exhaustive list of enum values, which will be extended in the future.

Values unauthorizedunknown_error
description
string
required

A human-readable description of the error.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "error_code": "unauthorized",
  "description": "string",
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}
499Client closed the connection before the response could be sent (HTTP 499). This occurs when clients timeout or cancel requests while the server is still processing. The client will not receive this response. This means a quote, a booking or any other long running process may have been processed.
error_code
string enum
required

Error returned when a client closes the connection before the response could be sent.

Values client_closed_request
description
string
required

A human-readable description of what happened. For booking requests, this may include the partner reference ID for tracking.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
additional_context
object

Additional context about the error. For booking requests, includes partner_reference_id for tracking in BigQuery.

Example
{
  "error_code": "client_closed_request",
  "description": "string",
  "response_id": "123e4567-e89b-12d3-a456-426614174000",
  "additional_context": {}
}
500Internal server error
error_code
string enum
required

Error returned when an internal server error occurs.

Values internal_server_error
description
string
required

A human-readable description of the error.

response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "error_code": "internal_server_error",
  "description": "string",
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}
Request
curl -X PUT "https://travel-distribution.staging.htsapis.com/api/lodging/v1/content" \
  -H "HTS-API-KEY: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodging_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "locale": "en-US"
}'
Response 200
{
  "response_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodgings": [
    {
      "lodging_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.