API reference

HTS APIs

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

Schema

order_change_slices

Specifies which slices to remove and what replacement criteria to search for

Fields

remove
array of slice_to_remove
required

Slices to remove from the original order

Show fields
Array of slice_to_remove · Slices to remove from the original order
slice_id
string
required

ID of the slice to replace from the original order

Example sli_0
add
array of query_slice
required

Replacement slice search criteria

Show fields
Array of query_slice · Replacement slice search criteria
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
Example
{
  "remove": [
    {
      "slice_id": "sli_0"
    }
  ],
  "add": [
    {
      "origin": "YUL",
      "destination": "JFK",
      "departure_date": "2026-06-01",
      "origin_type": "airport",
      "destination_type": "airport"
    }
  ]
}