HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
dafar_contract
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
type:original_form_of_payment (original_form_of_payment) original_form_of_payment
typevalue: original_form_of_payment
payoutThe payment details for this payout.
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
origin_airportIATA airport code of origin.
[A-Z]{3}destination_airportIATA airport code of destination.
[A-Z]{3}departure_date_timeLocal date and time of departure, in ISO 8601 format.
arrival_date_timeLocal date and time of arrival, in ISO 8601 format.
cabinCabin of the segment.
economypremium_economybusinessfirstmarketing_carrier_codeIATA airline code of the marketing carrier for this segment.
[A-Z0-9]{2}marketing_flight_numberFlight number for the marketing carrier.
[0-9]{1,4}reservation_booking_designatorReservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. Y, B, M, Q, N, J, F, E1). Pass the code exactly as it appears on the ticket/PNR.
^[A-Z][A-Z0-9]?$operating_carrier_codeIATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.
[A-Z0-9]{2}operating_flight_numberFlight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.
[0-9]{1,4}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
segmentsA list of segments which make up the slice.
Show fields
fare_brandName of the brand for the fare of the slice.
alternative_faresA list of alternative fares which were also available to the user in the same cabin.
Show fields
fare_rulesThe fare rules for the slice detailing cancel and change policies with associated penalties and refund methods. Fare rules which are not sent are assumed to be unknown.
Show fields
void_policyThe void policy for the slice, describing whether and how long a booking can be voided after purchase. If not specified, the void policy is unknown.
Show fields
passengersList of passengers on the itinerary.
Show fields
typeType of passenger:
* adult - 12+ years of age
* child - 2-11 years of age
* seated_infant - < 2 years of age, in their own seat
* lap_infant - < 2 years of age, not in their own seat
adultchildseated_infantlap_infantfare_amountTotal price of the fare for this passenger
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
idBase64-encoded string of "=; treat the id as an opaque string.
origin_airportIATA airport code of origin.
[A-Z]{3}destination_airportIATA airport code of destination.
[A-Z]{3}departure_date_timeLocal date and time of departure, in ISO 8601 format.
arrival_date_timeLocal date and time of arrival, in ISO 8601 format.
cabinCabin of the segment.
economypremium_economybusinessfirstmarketing_carrier_codeIATA airline code of the marketing carrier for this segment.
[A-Z0-9]{2}marketing_flight_numberFlight number for the marketing carrier.
[0-9]{1,4}rebook_eligibilityWhether a rebook can start from this segment, with the search criteria when it can.
Show fields
Whether a rebook can start from this segment, with the search criteria when it can.
type:eligible (eligible) eligible
ineligible (ineligible) ineligible
reservation_booking_designatorReservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. Y, B, M, Q, N, J, F, E1). Pass the code exactly as it appears on the ticket/PNR.
^[A-Z][A-Z0-9]?$operating_carrier_codeIATA airline code of the operating carrier for this segment. Assumed to be the same as marketing_carrier_code if not set.
[A-Z0-9]{2}operating_flight_numberFlight number for the operating carrier. Assumed to be the same as marketing_flight_number if not set.
[0-9]{1,4}disruptionThe disruption on this segment. Absent when the segment has not been disrupted.
Show fields
The disruption on this segment. Absent when the segment has not been disrupted.
type:canceled (canceled) canceled
delayed (delayed) delayed
missed_connection (missed_connection1) missed_connection1
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
typevalue: eligible
exercise_optionsThe ways the slice can be exercised.
ineligible (ineligible1) ineligible1
typevalue: ineligible
Used by
{
"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": [
{
"id": "MDow",
"origin_airport": "YUL",
"destination_airport": "SFO",
"departure_date_time": "2026-11-15T08:00",
"arrival_date_time": "2026-11-15T11:15",
"cabin": "Economy",
"reservation_booking_designator": "Y",
"marketing_carrier_code": "AC",
"marketing_flight_number": "759",
"operating_carrier_code": "AC",
"operating_flight_number": "759",
"rebook_eligibility": {
"type": "eligible"
},
"disruption": {
"type": "canceled"
}
}
],
"fare_brand": "Standard",
"exercise_eligibility": {
"type": "string",
"exercise_options": [
"payout"
]
}
}
]
},
"exercises": [
{
"type": "string",
"id": "string",
"contract_id": "string",
"payouts": [
{
"type": "string"
}
]
}
]
}