API reference

HTS APIs

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

Schema

shopfeed_request

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

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

Used by

PUT/api/lodging/v1/shopFeedGet all room rates for given lodgings on a specific feed
Example
{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodging_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "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"
}