API reference

HTS APIs

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

Schema

order_reshop_request

Unified reshop request. Send order_id only for Phase 1 (eligibility). Add slices for Phase 2 (exchange shop).

Fields

order_id
string
required

The order to evaluate for cancel or exchange

Example ord_abc123
slices
order_change_slices

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

Show 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

Used by

PUT/orderReshopGet cancel and exchange eligibility, or shop for exchange offers
Example
{
  "order_id": "ord_abc123",
  "slices": {
    "remove": [
      {
        "slice_id": "sli_0"
      }
    ],
    "add": [
      {
        "origin": "YUL",
        "destination": "JFK",
        "departure_date": "2026-06-01",
        "origin_type": "airport",
        "destination_type": "airport"
      }
    ]
  }
}