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_eligibility

Phase 1 response: cancel and exchange eligibility for the order

Fields

type
string enum
required

Discriminator — always 'eligibility' for Phase 1 responses

Values eligibility
cancel
cancel_eligibility
required
Show fields
eligible
boolean
required

Whether the order is eligible for cancellation

Example true
type
string enum
  • void: Same-day cancellation within the void window; full refund, no penalty.
  • refund: Post-void cancellation; penalty deducted from refund.
Values voidrefund · Example refund
refund_to
string enum
  • original_form_of_payment: Refund returned to the card used at booking.
  • voucher: Refund issued as future travel credit.
Values original_form_of_paymentvoucher · Example original_form_of_payment
penalty
price

Price information for an offer.

Show fields
currency
string
required

ISO 4217 currency code

Length ≥ 3, ≤ 3 · Pattern ^[A-Z]{3}$ · Example USD
base_amount
string
required

The base fare amount before taxes as a decimal string.

Example 120.00
total_amount
string
required

The total amount as a decimal string (base_amount + taxes_and_fees).

Example 150.00
taxes_and_fees_amount
string
required

The total amount of taxes and fees as a decimal string.

Example 30.00
taxes_and_fees
array of charge
required

Itemized taxes and fees breakdown.

Show fields
Array of charge · Itemized taxes and fees breakdown.
code
string
required

Charge code identifier (e.g., IATA tax/fee codes)

Example YQ
amount
string
required

Charge amount as a decimal string

Example 15.00
refund
price

Price information for an offer.

Show fields
currency
string
required

ISO 4217 currency code

Length ≥ 3, ≤ 3 · Pattern ^[A-Z]{3}$ · Example USD
base_amount
string
required

The base fare amount before taxes as a decimal string.

Example 120.00
total_amount
string
required

The total amount as a decimal string (base_amount + taxes_and_fees).

Example 150.00
taxes_and_fees_amount
string
required

The total amount of taxes and fees as a decimal string.

Example 30.00
taxes_and_fees
array of charge
required

Itemized taxes and fees breakdown.

Show fields
Array of charge · Itemized taxes and fees breakdown.
code
string
required

Charge code identifier (e.g., IATA tax/fee codes)

Example YQ
amount
string
required

Charge amount as a decimal string

Example 15.00
exchange
exchange_eligibility
required
Show fields
eligible
boolean
required

Whether the order is eligible for exchange

Example true
type
string enum
  • free: No change fee (airline FTC policy or fare rules).
  • fee: Change fee applies. The penalty field 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.
Values freefee · Example fee
penalty
object

Exchange 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
currency
string
required

ISO 4217 currency code

Length ≥ 3, ≤ 3 · Pattern ^[A-Z]{3}$ · Example USD
base_amount
string
required

The base fare amount before taxes as a decimal string.

Example 120.00
total_amount
string
required

The total amount as a decimal string (base_amount + taxes_and_fees).

Example 150.00
taxes_and_fees_amount
string
required

The total amount of taxes and fees as a decimal string.

Example 30.00
taxes_and_fees
array of charge
required

Itemized taxes and fees breakdown.

Show fields
Array of charge · Itemized taxes and fees breakdown.
code
string
required

Charge code identifier (e.g., IATA tax/fee codes)

Example YQ
amount
string
required

Charge amount as a decimal string

Example 15.00

Used by

PUT/orderReshopGet cancel and exchange eligibility, or shop for exchange offers
Example
{
  "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"
        }
      ]
    }
  }
}