API reference

HTS APIs

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

Schema

shopping_request

Fields

slices
array of query_slice
required
Items ≥ 1, ≤ 2
Show fields
Array of query_slice
Items ≥ 1, ≤ 2
origin
string
required

IATA airport or city code of the origin

Length ≥ 3, ≤ 3 · Example YUL
destination
string
required

IATA airport or city code of the destination

Length ≥ 3, ≤ 3 · Example JFK
departure_date
string · date
required

Departure date in YYYY-MM-DD format

Example 2026-06-01
origin_type
string enum

Whether a location code refers to an airport or a city. Defaults to airport.

Values airportcity · Default "airport" · Example airport
destination_type
string enum

Whether a location code refers to an airport or a city. Defaults to airport.

Values airportcity · Default "airport" · Example airport
passengers
array of passenger_count
required
Items ≥ 1
Show fields
Array of passenger_count
Items ≥ 1
type
string enum
required
Values adultchildlap_infantseated_infant · Example adult
count
integer
required
Range ≥ 1, ≤ 9 · Example 1

Used by

PUT/shoppingSearch for flights
Example
{
  "slices": [
    {
      "origin": "YUL",
      "destination": "JFK",
      "departure_date": "2026-06-01",
      "origin_type": "airport",
      "destination_type": "airport"
    }
  ],
  "passengers": [
    {
      "type": "adult",
      "count": 1
    }
  ]
}