API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
segment
Fields
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
{
"details": [
{
"type": "string",
"text": "Standard boarding"
}
]
}