HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
search_contracts_response
Fields
contractsShow fields
idUnique identifier for a contract.
statusCurrent status of the contract.
canceledconfirmeddraftedexercise_eligibleexpiredexercisedvoidedpriceThe price breakdown of the product.
Show fields
total_amountTotal 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 a disruption.
currencyCurrency of all pricing fields within the contract.
expires_atDate and time at which the contract will expire, once purchased, as a UTC RFC3339 formatted datetime.
booking_referencesRecord locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align.
exercisesDetails of how this contract was exercised (payout and/or rebook). Always present as a list. Populated when exercised, empty otherwise.
Show fields
type:payout (payout1) payout1
typevalue: payout
idUnique identifier for this exercise.
contract_idThe contract that was exercised.
payoutsThe payouts issued to the customer.
Show fields
rebook (rebook) rebook
typevalue: rebook
idUnique identifier for this exercise.
contract_idThe contract that was exercised.
rebooked_segmentsThe new flight segments the customer was rebooked on.
Show fields
itineraryThe new itinerary details.
Show fields
currencyslicesList of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed
Show fields
passengersList of passengers on the itinerary.
Show fields
booking_referencesuser_idUser ID in the partner system.
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.
itineraryThe trip as purchased, with each slice's exercise eligibility and each segment's rebook eligibility and disruption. It doesn't change after a rebook; the rebooked flights are in that rebook's exercise. Populated on Get Contract and the contract webhooks; absent on Create Contract.
Show fields
slicesThe slices of the trip as purchased, in purchase order.
Show fields
segmentsThe ordered list of segments that make up this slice.
Show fields
fare_brandName of the brand for the fare of the slice.
exercise_eligibilityWhether this slice can be exercised, and how.
Show fields
Whether this slice can be exercised, and how.
type:eligible (eligible1) eligible1
ineligible (ineligible1) ineligible1
Used by
{
"contracts": [
{
"id": "string",
"user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0",
"status": "Confirmed",
"price": {
"total_amount": "40.80",
"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",
"booking_references": {},
"itinerary": {
"slices": [
{
"segments": [
{}
],
"fare_brand": "Standard",
"exercise_eligibility": {
"type": "eligible"
}
}
]
},
"exercises": [
{
"type": "string",
"id": "string",
"contract_id": "string",
"payouts": []
}
]
}
]
}