HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/orderReshopPre-cancelGet cancel and exchange eligibility, or shop for exchange offers
Unified post-booking reshop endpoint with two phases based on request body:
Phase 1 — Eligibility (send
order_idonly): Returns cancel eligibility (penalty, refund amount, refund method) and exchange eligibility (type, penalty) for the full order.Phase 2 — Shop (send
order_id+slices): Returns available replacement flight offers with pricing differentials. Each offer includes atokenused to confirm the exchange viaorderChange.
Parameters
Request-IdOptional client-supplied UUID to correlate this request across your systems and ours.
When provided, the same value is echoed back in the Request-Id response header and
used in logs and traces. When omitted, the server generates one automatically.
Must be a valid UUID; invalid values are rejected with 400 Bad Request.
Request body application/json · required
order_idThe order to evaluate for cancel or exchange
ord_abc123slicesSpecifies which slices to remove and what replacement criteria to search for
Show fields
removeSlices to remove from the original order
Show fields
slice_idID of the slice to replace from the original order
sli_0addReplacement slice search criteria
Show fields
originIATA airport or city code of the origin
YULdestinationIATA airport or city code of the destination
JFKdeparture_dateDeparture date in YYYY-MM-DD format
2026-06-01origin_typeWhether a location code refers to an airport or a city. Defaults to airport.
airportcity · Default "airport" · Example airportdestination_typeWhether a location code refers to an airport or a city. Defaults to airport.
airportcity · Default "airport" · Example airportResponses
200OK
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
type:eligibility (order_reshop_eligibility) order_reshop_eligibility
typeDiscriminator — always 'eligibility' for Phase 1 responses
eligibilitycancelShow fields
eligibleWhether the order is eligible for cancellation
truetypevoid: Same-day cancellation within the void window; full refund, no penalty.refund: Post-void cancellation; penalty deducted from refund.
voidrefund · Example refundrefund_tooriginal_form_of_payment: Refund returned to the card used at booking.voucher: Refund issued as future travel credit.
original_form_of_paymentvoucher · Example original_form_of_paymentpenaltyPrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00refundPrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00exchangeShow fields
eligibleWhether the order is eligible for exchange
truetypefree: No change fee (airline FTC policy or fare rules).fee: Change fee applies. Thepenaltyfield contains the fee amount when the provider reports it upfront; otherwise it is omitted and the exact fee appears on each offer during exchange shopping.
freefee · Example feepenaltyExchange penalty amount, if known at eligibility time. Some providers only determine the penalty during exchange shopping; in that case this field is omitted and the fee appears on each exchange offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00offers (order_reshop_offers) order_reshop_offers
typeDiscriminator — always 'offers' for Phase 2 responses
offersoffersAvailable exchange options. Empty when no alternatives exist.
Show fields
tokenOpaque token identifying this offer. Pass to orderChange to confirm.
eyJhbGciOiJIUzI1NiJ9...slicesThe replacement flight slices for this offer.
Show fields
idUnique slice identifier within this order
sli_0origin_airport_codeIATA code of the origin airport
YULdestination_airport_codeIATA code of the destination airport
JFKdurationTotal journey duration in ISO 8601 duration format
PT5H30MsegmentsShow fields
change_totalPrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00penaltyPrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00new_totalPrice information for an offer.
Show fields
currencyISO 4217 currency code
^[A-Z]{3}$ · Example USDbase_amountThe base fare amount before taxes as a decimal string.
120.00total_amountThe total amount as a decimal string (base_amount + taxes_and_fees).
150.00taxes_and_fees_amountThe total amount of taxes and fees as a decimal string.
30.00taxes_and_feesItemized taxes and fees breakdown.
Show fields
codeCharge code identifier (e.g., IATA tax/fee codes)
YQamountCharge amount as a decimal string
15.00400Bad Request
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}404Not Found
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}422Unprocessable Entity
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}500Internal Server Error
Request-IdUUID that uniquely identifies this request. If a valid Request-Id was sent in the
request header, this echoes that value; otherwise a server-generated UUID is returned.
Include this value when contacting support to help correlate logs and traces.
errorShow fields
codeA machine-readable snake_case string for programmatic handling.
parameter_missingmessageA human-readable description for the developer.
The 'passengers' parameter is required to create a booking.paramThe specific request parameter that caused the error.
passengersExample
{
"error": {
"code": "parameter_missing",
"message": "The 'passengers' parameter is required to create a booking.",
"param": "passengers"
}
}curl -X PUT "https://travel-distribution.staging.htsapis.com/api/flights/v1/orderReshop" \
-H "HTS-API-KEY: $HTS_API_KEY" \
-H "Request-Id: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"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"
}
]
}
}'{
"type": "eligibility",
"cancel": {
"eligible": true,
"type": "refund",
"refund_to": "original_form_of_payment",
"penalty": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{
"code": "YQ",
"amount": "15.00"
}
]
},
"refund": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{
"code": "YQ",
"amount": "15.00"
}
]
}
},
"exchange": {
"eligible": true,
"type": "fee",
"penalty": {
"currency": "USD",
"base_amount": "120.00",
"total_amount": "150.00",
"taxes_and_fees_amount": "30.00",
"taxes_and_fees": [
{
"code": "YQ",
"amount": "15.00"
}
]
}
}
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
