HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
order_reshop_eligibility
Phase 1 response: cancel and exchange eligibility for the order
Fields
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.00Used by
{
"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"
}
]
}
}
}