API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

GET/contracts/{id}Other

Get Contract

https://fintech.staging.htsapis.com/flights-cfar/v2/contracts/{id}

Get a contract.

Parameters

id
path · string
required

A unique identifier for a contract.

Responses

200The contract
id
string
required

Unique ID for a contract.

status
string enum
required

Current status of the contract.

Values canceledconfirmeddraftedexercisedexpiredvoided
price
contract_price
required

The price breakdown of the product.

Show fields
total_amount
string
required

Total amount to be paid for the product, including taxes.

Range ≥ 0
base_amount
string
required

Amount to be paid for the product, excluding taxes.

Range ≥ 0
taxes
array of tax
Items ≥ 1
Show fields
Array of tax
Items ≥ 1
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

payout
payout
required

The payout to be issued to the user upon exercise.

Show fields
amount
string
required

The total amount to be paid out upon exercise.

percentage
integer · int32
required

The percentage of the booking to be paid out upon exercise.

Range ≥ 0, ≤ 100
price_included
boolean
required

If the product price is included in the product payout amount.

currency
string
required

Currency of all pricing fields within the contract.

expires_at
string · date-time
required

Date and time at which the contract will expire, once purchased, as a UTC RFC3339 formatted datetime.

booking_references
map_string
required

Record 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.

exercises
array of cfar_contract_exercise
required

Exercises completed for this contract.

Show fields
Array of cfar_contract_exercise · Exercises completed for this contract.
id
string
required

Unique identifier for this exercise.

exercised_at
string · date-time
required

Date and time at which the exercise was completed, as a UTC RFC3339 formatted datetime.

payouts
array of cfar_exercise_payout
required

The payouts issued for this exercise.

Items ≥ 1
Show fields
Array of cfar_exercise_payout · one of 2 · The payouts issued for this exercise.
Items ≥ 1

The method by which the payout will be be delivered to the customer.

Exactly one of the following, selected by type:
future_travel_credit (future_travel_credit) future_travel_credit
type
string
required

value: future_travel_credit

amount
string
required

The amount of the payout.

original_form_of_payment (original_form_of_payment) original_form_of_payment
type
string
required

value: original_form_of_payment

payment
refundable_payment · one of 5
required

DEPRECATED: The payment details for this payout.

Show fields

DEPRECATED: The payment details for this payout.

Exactly one of the following, selected by 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
payout
refundable_payment · one of 5
required

The payment details for this payout.

Show fields

The payment details for this payout.

Exactly one of the following, selected by 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_ids
array of string

Identifier for each passenger exercised. Omitted only when identifiers are unavailable.

Items ≥ 1
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
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.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-cfar/v2/contracts/<id>" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 200
{
  "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.