API reference

HTS APIs

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

GET/contracts/{id}/itineraries/{itinerary_id}Other

Get Fare Details

https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/{id}/itineraries/{itinerary_id}

Get detailed fare information for an itinerary from the contract's flight shop.

Parameters

id
path · string
required

A unique identifier for a contract.

itinerary_id
path · string
required

A unique identifier for an itinerary.

Responses

200The fare details
slices
array of slice
required

Slices containing segment-level fare details.

Items ≥ 1
Show fields
Array of slice · Slices containing segment-level fare details.
Items ≥ 1
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
included (included) included
purchasable (purchasable) purchasable
unavailable (unavailable) unavailable
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
404The requested resource could not be found
No body.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/<id>/itineraries/<itinerary_id>" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 200
{
  "slices": [
    {
      "segments": [
        {
          "details": [
            {
              "type": "generic"
            }
          ]
        }
      ]
    }
  ]
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.