HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}OtherGet Contract
Get a contract.
Parameters
idA unique identifier for a contract.
Responses
200The contract
idUnique ID for a contract.
statusCurrent status of the contract.
canceledconfirmeddraftedexercisedexpiredvoidedpriceThe 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.
payoutThe payout to be issued to the user upon exercise.
Show fields
amountThe total amount to be paid out upon exercise.
percentageThe percentage of the booking to be paid out upon exercise.
price_includedIf the product price is included in the product payout amount.
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.
exercisesExercises completed for this contract.
Show fields
idUnique identifier for this exercise.
exercised_atDate and time at which the exercise was completed, as a UTC RFC3339 formatted datetime.
payoutsThe payouts issued for this exercise.
Show fields
The method by which the payout will be be delivered to the customer.
type:future_travel_credit (future_travel_credit) future_travel_credit
typevalue: future_travel_credit
amountThe amount of the payout.
original_form_of_payment (original_form_of_payment) original_form_of_payment
typevalue: original_form_of_payment
paymentDEPRECATED: The payment details for this payout.
Show fields
DEPRECATED: The payment details for this payout.
type:alternate_payment_method (alternate_payment_method) alternate_payment_method
loyalty_program (loyalty_program) loyalty_program
not_provided (not_provided2) not_provided2
payment_card (payment_card) payment_card
reseller_controlled (reseller_controlled) reseller_controlled
payoutThe payment details for this payout.
Show fields
The payment details for this payout.
type:alternate_payment_method (alternate_payment_method) alternate_payment_method
loyalty_program (loyalty_program) loyalty_program
not_provided (not_provided2) not_provided2
payment_card (payment_card) payment_card
reseller_controlled (reseller_controlled) reseller_controlled
passenger_idsIdentifier for each passenger exercised. Omitted only when identifiers are unavailable.
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-cfar/v2/contracts/<id>" \
-H "X-Api-Key: $HTS_API_KEY"{
"id": "1ec9eed3-4486-6460-9d6c-2fb8469d35db",
"status": "Confirmed",
"price": {
"total_amount": "40.80",
"base_amount": "30.20",
"taxes": [
{
"code": "VAT",
"amount": "20.00"
}
]
},
"payout": {
"amount": "400.00",
"percentage": 80,
"price_included": false
},
"currency": "CAD",
"expires_at": "2020-12-20T12:15:48Z",
"booking_references": {},
"exercises": [
{
"id": "string",
"exercised_at": "2026-12-10T15:00:00Z",
"payouts": [
{
"type": "string",
"amount": "string"
}
],
"passenger_ids": [
"string"
]
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
