API reference

HTS APIs

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

Schema

available_service

An ancillary service available for purchase

Fields

id
string
required

Opaque service identifier

Example svc_bag_checked
type
string enum
required

Service type discriminator

Values baggage · Example baggage
price
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
passenger_ids
array of string
required

Which passengers this service is available for

maximum_quantity
integer
required

Maximum units purchasable

Example 3
tiers
array of pricing_tier

Per-unit pricing tiers when the price varies by quantity. When present, the top-level price reflects the first tier.

Show fields
Array of pricing_tier · Per-unit pricing tiers when the price varies by quantity. When present, the top-level price reflects the first tier.
tier
integer
required

The ordinal tier number (1 = first unit, 2 = second unit, etc.)

Range ≥ 1 · Example 1
price
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
segment_ids
array of string

Which segments this service applies to. When absent, the service applies to the entire journey.

metadata
baggage_metadata

Metadata for a baggage service

Show fields
type
string enum
required

Service type discriminator

Values baggage
baggage_type
string enum
required

Type of baggage

Values checkedcarry_on · Example checked
maximum_weight_kg
number

Maximum weight in kilograms

Example 23
Example
{
  "id": "svc_bag_checked",
  "type": "baggage",
  "price": {
    "currency": "USD",
    "base_amount": "120.00",
    "total_amount": "150.00",
    "taxes_and_fees_amount": "30.00",
    "taxes_and_fees": [
      {
        "code": "YQ",
        "amount": "15.00"
      }
    ]
  },
  "tiers": [
    {
      "tier": 1,
      "price": {
        "currency": "USD",
        "base_amount": "120.00",
        "total_amount": "150.00",
        "taxes_and_fees_amount": "30.00",
        "taxes_and_fees": [
          {
            "code": "YQ",
            "amount": "15.00"
          }
        ]
      }
    }
  ],
  "segment_ids": [
    "seg_0",
    "seg_1"
  ],
  "passenger_ids": [
    "pas_0"
  ],
  "maximum_quantity": 3,
  "metadata": {
    "type": "baggage",
    "baggage_type": "checked",
    "maximum_weight_kg": 23
  }
}