API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
POST
/contracts/{id}/flight_price_quotesOtherCreate Flight Price Quote
https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/{id}/flight_price_quotes
Create a price quote for a selected rebook itinerary from the contract's flight shop.
Parameters
idpath · string
required
A unique identifier for a contract.
Request body application/json · required
itinerary_idstring
required
The ID of the itinerary to price. Each shopped itinerary is a single priced option, so the itinerary id fully identifies the fare.
Responses
201The created price quote
idstring
required
Unique identifier for this price quote.
expires_atstring · date-time
required
Date and time at which this price quote expires, as a UTC RFC3339 formatted datetime.
400Syntactic errors were encountered while handling the request
Array of error
messagestring
required
codestring
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.
422Semantic errors were encountered while handling the request
Array of dafar_flight_price_quote_error · one of 2
Items ≥ 1
Exactly one of the following, selected by
code:fare_no_longer_available (fare_no_longer_available) fare_no_longer_available
messagestring
required
A human-readable message describing the error
codestring
required
shop_expired (shop_expired) shop_expired
messagestring
required
A human-readable message describing the error
codestring
required
Example
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/<id>/flight_price_quotes" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itinerary_id": "itin_1"
}'Response 201
{
"id": "pq_abc123",
"expires_at": "2024-06-15T15:00:00Z"
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
