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_idstring
required
The order to evaluate for cancel or exchange
Example
ord_abc123slicesorder_change_slices
Specifies which slices to remove and what replacement criteria to search for
Show fields
removearray 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_idstring
required
ID of the slice to replace from the original order
Example
sli_0addarray of query_slice
required
Replacement slice search criteria
Show fields
Array of query_slice · Replacement slice search criteria
originstring
required
IATA airport or city code of the origin
Length ≥ 3, ≤ 3 · Example
YULdestinationstring
required
IATA airport or city code of the destination
Length ≥ 3, ≤ 3 · Example
JFKdeparture_datestring · date
required
Departure date in YYYY-MM-DD format
Example
2026-06-01origin_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportdestination_typestring enum
Whether a location code refers to an airport or a city. Defaults to airport.
Values
airportcity · Default "airport" · Example airportUsed by
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"
}
]
}
}