API reference

HTS APIs

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

Schema

contract_drafted_webhook_data

The webhook payload.

Fields

contract
cfar_contract
required

The drafted contract.

Show fields
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
payout
refundable_payment · one of 5
required

The payment details for this payout.

Show fields
passenger_ids
array of string

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

Items ≥ 1
Example
{
  "contract": {
    "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"
        ]
      }
    ]
  }
}