API reference

HTS APIs

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

Schema

slice

Fields

segments
array of segment
required

Segments within this slice, each with fare details.

Items ≥ 1
Show fields
Array of segment · Segments within this slice, each with fare details.
Items ≥ 1
details
array of fare_detail
required

Fare details for this segment.

Show fields
Array of fare_detail · one of 4 · Fare details for this segment.
Exactly one of the following, selected by type:
generic (generic) generic
type
string
required

value: generic

text
string
required

Description text for this fare detail.

Length ≥ 1
included (included) included
type
string
required

value: included

text
string
required

Description text for this fare detail.

Length ≥ 1
purchasable (purchasable) purchasable
type
string
required

value: purchasable

text
string
required

Description text for this fare detail.

Length ≥ 1
unavailable (unavailable) unavailable
type
string
required

value: unavailable

text
string
required

Description text for this fare detail.

Length ≥ 1
Example
{
  "segments": [
    {
      "details": [
        {
          "type": "string",
          "text": "Standard boarding"
        }
      ]
    }
  ]
}