API reference

HTS APIs

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

Schema

offers_eligible

Fields

offers
array of dafar_offer
required

List of DAFAR offers generated for a given itinerary.

Items ≥ 1
Show fields
Array of dafar_offer · List of DAFAR offers generated for a given itinerary.
Items ≥ 1
id
string
required

Unique identifier for an offer.

price
offer_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
total_amount_per_passenger
string
required

The per-passenger 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.

eligible_disruptions
eligible_disruptions
required

The disruption events which allow a customer to exercise their product.

Show fields
flight_cancellation
flight_cancellation

The product becomes exercise eligible in the event of a flight cancellation.

flight_delay
flight_delay

The product becomes exercise eligible in the event of a flight delay.

Show fields
delay_minutes_threshold
integer · int32
required

The number of minutes a flight must be delayed to qualify for disruption exercise eligibility.

missed_connection
missed_connection

The product becomes exercise eligible in the event of a missed connection.

Show fields
minimum_connection_minutes_threshold
integer · int32
required

The minimum number of minutes between connections for which the product will consider a connection missed in the event of a disruption.

rebooking_allowance_per_passenger
string
required

Total monetary allowance per passenger for rebooking a flight in case a disruption occurs.

Range ≥ 0
window_minutes_before_departure
integer · int32
required

The number of minutes before departure of each slice from which a purchased contract would be eligible for exercise in the event of an eligible disruption event.

currency
string
required

Currency of all pricing fields for the offer.

expires_at
string · date-time
required

Date and time at which this offer expires at which point a new offer must be created, as a UTC RFC3339 formatted datetime.

contract_expires_at
string · date-time
required

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

priced
boolean
required

Whether this is a priced offer or not. A priced offer is required to create an order.

payout
payout

If the product is eligible for payout, the payout to be issued upon exercise.

Show fields
amount
string
required

The total amount to be paid out upon exercise.

Range ≥ 0
percentage
integer · int32
required

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

Range ≥ 0, ≤ 100
entry_point
string

The entry point from which the disruption offer was presented to the user.

merchandising_url
string

A URL which links to the HTS offer merchandising micro-site.

Used by

POST/offers/pricePrice Offers
POST/offersCreate Offers
Example
{
  "offers": [
    {
      "id": "string",
      "price": {
        "total_amount": "40.80",
        "total_amount_per_passenger": "20.40",
        "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",
      "contract_expires_at": "2020-12-20T12:15:48Z",
      "priced": true,
      "entry_point": "string"
    }
  ],
  "merchandising_url": "string"
}