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
segmentsarray 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
detailsarray 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
typestring
required
value: generic
textstring
required
Description text for this fare detail.
Length ≥ 1
included (included) included
typestring
required
value: included
textstring
required
Description text for this fare detail.
Length ≥ 1
purchasable (purchasable) purchasable
typestring
required
value: purchasable
textstring
required
Description text for this fare detail.
Length ≥ 1
unavailable (unavailable) unavailable
typestring
required
value: unavailable
textstring
required
Description text for this fare detail.
Length ≥ 1
Example
{
"segments": [
{
"details": [
{
"type": "string",
"text": "Standard boarding"
}
]
}
]
}