API reference

HTS APIs

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

Schema

shop_request

Request for the shop 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 shop for. (1 to 200)

Items ≥ 1, ≤ 200
sales_channel
string enum
required

Defines the type of device the user is using. This is a non-exhaustive list of enum values, which will be extended in the future.

  • web: User is using a web browser on a desktop or laptop
  • mobile_web: User is using a web browser on a mobile device
  • mobile_app: User is using a mobile app
Values webmobile_webmobile_app · Example mobile_app
rate_options
array of rate_option
required

Set of rate options to enable. Each option has its own inventory of rates. See RateOption schema enum for the list of supported options.

Items ≥ 1
point_of_sale
PointOfSale
required

Description of the point of sale where the booking is made. This is typically the user's location.

Show fields
country
string
required

Country code (ISO 3166-1 alpha-2)

Pattern ^[A-Z]{2}$ · Example US
check_in
string · date
required

The check-in date. Notes:

  • Check-in cannot be in the past.
  • Check-in date can be at most 1 year in the future.
Example 2022-01-01
check_out
string · date
required

The checkout date. Note:

  • Checkout date needs to be at least one day after the check-in date.
  • Checkout date can be at most 1 year after the check-in date.
Example 2022-01-02
occupancy
occupancy
required

Number of guests that want to stay in the lodging

Show fields
adults
integer
required

Number of adult guests

Range ≥ 1, ≤ 24 · Example 2
children
array of integer
required

List of children guest ages

pets
integer

Number of pets accompanying the guests

Range ≥ 0, ≤ 10 · Example 1
currency
string enum
required

Requested currency code for the owed now portion of the rates, in ISO 4217 format.

Values USD · Example USD
sales_environment
string enum

The sales environment for the shop request. Defaults to lodging_only if not provided.

Values lodging_onlylodging_package · Default "lodging_only"
Show fields
Object with no documented fields · The sales environment for the shop request. Defaults to lodging_only if not provided.

Used by

PUT/api/lodging/v1/shopGet all room rates for a lodging
Example
{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodging_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "sales_channel": "mobile_app",
  "sales_environment": {},
  "rate_options": [
    "member"
  ],
  "point_of_sale": {
    "country": "US"
  },
  "check_in": "2022-01-01",
  "check_out": "2022-01-02",
  "occupancy": {
    "adults": 2,
    "children": [
      3,
      5,
      9
    ],
    "pets": 1
  },
  "currency": "USD"
}