HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/offers/{id}QuoteGet Offer
Get an offer.
Parameters
idA unique identifier for an offer.
Responses
200The offer
idUnique identifier for an offer.
priceThe price breakdown of the product.
Show fields
total_amountTotal amount to be paid for the product, including taxes.
total_amount_per_passengerThe per-passenger amount to be paid for the product, including taxes.
base_amountAmount to be paid for the product, excluding taxes.
taxesShow fields
codeCode representing this tax.
amountTotal amount of the tax.
eligible_disruptionsThe disruption events which allow a customer to exercise their product.
Show fields
flight_cancellationThe product becomes exercise eligible in the event of a flight cancellation.
flight_delayThe product becomes exercise eligible in the event of a flight delay.
Show fields
delay_minutes_thresholdThe number of minutes a flight must be delayed to qualify for disruption exercise eligibility.
missed_connectionThe product becomes exercise eligible in the event of a missed connection.
Show fields
minimum_connection_minutes_thresholdThe minimum number of minutes between connections for which the product will consider a connection missed in the event of a disruption.
rebooking_allowance_per_passengerTotal monetary allowance per passenger for rebooking a flight in case a disruption occurs.
window_minutes_before_departureThe number of minutes before departure of each slice from which a purchased contract would be eligible for exercise in the event of an eligible disruption event.
currencyCurrency of all pricing fields for the offer.
expires_atDate and time at which this offer expires at which point a new offer must be created, as a UTC RFC3339 formatted datetime.
contract_expires_atDate and time at which the contract will expire once purchased, as a UTC RFC3339 formatted datetime.
pricedWhether this is a priced offer or not. A priced offer is required to create an order.
payoutIf the product is eligible for payout, the payout to be issued upon exercise.
Show fields
amountThe total amount to be paid out upon exercise.
percentageThe percentage of the booking to be paid out upon exercise.
entry_pointThe entry point from which the disruption offer was presented to the user.
400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
403The authenticated client does not have permission to call this endpoint
404The requested resource could not be found
499The client cancelled the request
500The server encountered an internal error
curl -X GET "https://fintech.staging.htsapis.com/flights-dafar/v2/offers/<id>" \
-H "X-Api-Key: $HTS_API_KEY"{
"id": "string",
"price": {
"total_amount": "40.80",
"total_amount_per_passenger": "20.40",
"base_amount": "30.20",
"taxes": [
{
"code": "VAT",
"amount": "20.00"
}
]
},
"eligible_disruptions": {
"flight_cancellation": {},
"flight_delay": {
"delay_minutes_threshold": 120
},
"missed_connection": {
"minimum_connection_minutes_threshold": 120
}
},
"payout": {
"amount": "400.00",
"percentage": 100
},
"rebooking_allowance_per_passenger": "1000.00",
"window_minutes_before_departure": 1440,
"currency": "CAD",
"expires_at": "2020-12-20T12:15:48Z",
"contract_expires_at": "2020-12-20T12:15:48Z",
"priced": true,
"entry_point": "string"
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
