API reference

HTS APIs

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

Schema

reshop_offer

A replacement flight offer with pricing differentials

Fields

token
string
required

Opaque token identifying this offer. Pass to orderChange to confirm.

Example eyJhbGciOiJIUzI1NiJ9...
slices
array of slice
required

The replacement flight slices for this offer.

Show fields
Array of slice · The replacement flight slices for this offer.
id
string
required

Unique slice identifier within this order

Example sli_0
origin_airport_code
string
required

IATA code of the origin airport

Length ≥ 3, ≤ 3 · Example YUL
destination_airport_code
string
required

IATA code of the destination airport

Length ≥ 3, ≤ 3 · Example JFK
duration
string

Total journey duration in ISO 8601 duration format

Example PT5H30M
segments
array of segment
Show fields
Array of segment
id
string
required

Unique segment identifier within this quote/order

Example seg_0
origin_airport_code
string
required

IATA code of the origin airport

Length ≥ 3, ≤ 3 · Example YUL
destination_airport_code
string
required

IATA code of the destination airport

Length ≥ 3, ≤ 3 · Example JFK
departure_date_time
string · date-time
required

Departure date and time in ISO 8601 format

Example 2026-06-01T10:00:00Z
arrival_date_time
string · date-time
required

Arrival date and time in ISO 8601 format

Example 2026-06-01T12:00:00Z
flight_number
string
required

The flight number

Example 1234
marketing_carrier_code
string
required

IATA code of the marketing carrier

Length ≥ 2, ≤ 2 · Example AC
operating_carrier_code
string

IATA code of the operating carrier

Length ≥ 2, ≤ 2 · Example UA
cabin_class
string enum
Values economypremium_economybusinessfirst · Example economy
stops
integer

Number of stops on this segment (0 = non-stop)

Range ≥ 0 · Example 0
fare_basis_code
string

The fare basis code for this segment

Example YOWCA
booking_class_code
string

The booking class (RBD) for this segment

Example Y
fare_brand_name
string

The branded fare name for this segment

Example Economy Flex
duration
string

Flight duration in ISO 8601 duration format

Example PT2H30M
equipment_code
string

IATA aircraft type code

Example 320
status
string enum

Segment booking status. Only present in order responses (not in shopping or offerPrice).

  • confirmed: Segment is confirmed.
  • cancelled: Segment cancelled.
  • pending: Awaiting confirmation.
Values confirmedcancelledpending · Example confirmed
change_total
price
required

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
penalty
price
required

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
new_total
price
required

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
Example
{
  "token": "eyJhbGciOiJIUzI1NiJ9...",
  "slices": [
    {
      "id": "sli_0",
      "origin_airport_code": "YUL",
      "destination_airport_code": "JFK",
      "duration": "PT5H30M",
      "segments": [
        {
          "id": "seg_0",
          "origin_airport_code": "YUL",
          "destination_airport_code": "JFK",
          "departure_date_time": "2026-06-01T10:00:00Z",
          "arrival_date_time": "2026-06-01T12:00:00Z",
          "flight_number": "1234",
          "marketing_carrier_code": "AC",
          "operating_carrier_code": "UA",
          "cabin_class": "economy",
          "stops": 0,
          "fare_basis_code": "YOWCA",
          "booking_class_code": "Y",
          "fare_brand_name": "Economy Flex",
          "duration": "PT2H30M",
          "equipment_code": "320",
          "status": "confirmed"
        }
      ]
    }
  ],
  "change_total": {
    "currency": "USD",
    "base_amount": "120.00",
    "total_amount": "150.00",
    "taxes_and_fees_amount": "30.00",
    "taxes_and_fees": [
      {
        "code": "YQ",
        "amount": "15.00"
      }
    ]
  },
  "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"
      }
    ]
  },
  "new_total": {
    "currency": "USD",
    "base_amount": "120.00",
    "total_amount": "150.00",
    "taxes_and_fees_amount": "30.00",
    "taxes_and_fees": [
      {
        "code": "YQ",
        "amount": "15.00"
      }
    ]
  }
}