API reference

HTS APIs

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

POST/offersOther

Create Offers

https://fintech.staging.htsapis.com/flights-dafar/v2/offers

Create offers for a customer's itinerary.

Request body application/json · required

session_id
string
required

Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.

currency
string
required

Currency of all pricing fields within the request.

itinerary
ancillary_itinerary
required

Itinerary for which to create offers.

Show fields
slices
array of itinerary_slice
required

List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed

Items ≥ 1
Show fields
Array of itinerary_slice · List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed
Items ≥ 1
segments
array of itinerary_slice_segment
required

A list of segments which make up the slice.

Items ≥ 1
Show fields
Array of itinerary_slice_segment · A list of segments which make up the slice.
Items ≥ 1
origin_airport
string
required

IATA airport code of origin.

Pattern [A-Z]{3}
destination_airport
string
required

IATA airport code of destination.

Pattern [A-Z]{3}
departure_date_time
string
required

Local date and time of departure, in ISO 8601 format.

arrival_date_time
string
required

Local date and time of arrival, in ISO 8601 format.

cabin
string enum
required

Cabin of the segment.

Values economypremium_economybusinessfirst
marketing_carrier_code
string
required

IATA airline code of the marketing carrier for this segment.

Pattern [A-Z0-9]{2}
marketing_flight_number
string
required

Flight number for the marketing carrier.

Pattern [0-9]{1,4}
reservation_booking_designator
string

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

Pattern ^[A-Z][A-Z0-9]?$
operating_carrier_code
string

IATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.

Pattern [A-Z0-9]{2}
operating_flight_number
string

Flight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.

Pattern [0-9]{1,4}
fare_brand
string
required

Name of the brand for the fare of the slice.

Length ≥ 1
alternative_fares
array of fare

A list of alternative fares which were also available to the user in the same cabin.

Items ≥ 1
Show fields
Array of fare · A list of alternative fares which were also available to the user in the same cabin.
Items ≥ 1
amount
string
required

Price of the fare.

brand
string
required

Name of the brand for this fare.

Length ≥ 1
fare_rules
fare_rules

The 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
cancel
policies

The cancel policy for the slice.

Show fields
before_departure
policy · one of 2

Policy that applies before the flight departure time.

Show fields

Policy that applies before the flight departure time.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
after_departure
policy · one of 2

Policy that applies after the flight departure time.

Show fields

Policy that applies after the flight departure time.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
anytime
policy · one of 2

Policy that applies regardless of timing relative to departure.

Show fields

Policy that applies regardless of timing relative to departure.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
change
policies

The change policy for the slice.

Show fields
before_departure
policy · one of 2

Policy that applies before the flight departure time.

Show fields

Policy that applies before the flight departure time.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
after_departure
policy · one of 2

Policy that applies after the flight departure time.

Show fields

Policy that applies after the flight departure time.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
anytime
policy · one of 2

Policy that applies regardless of timing relative to departure.

Show fields

Policy that applies regardless of timing relative to departure.

Exactly one of the following, selected by type:
non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
void_policy
void_policy · one of 4

The 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

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

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

value: allowed

allowed_for (allowed_for) allowed_for
type
string
required

value: allowed_for

duration
string
required

The duration after booking during which the booking can be voided, as an ISO 8601 duration.

allowed_until (allowed_until) allowed_until
type
string
required

value: allowed_until

expires_at
string · date-time
required

The point in time until which the booking can be voided, as a UTC RFC3339 formatted datetime.

not_allowed (not_allowed) not_allowed
type
string
required

value: not_allowed

ancillaries
array of ancillary
required

Ancillaries attached to the itinerary which will be covered by the product and their prices. In the case of a split itinerary the payout amount of these ancillaries will be evenly distributed amongst the passengers.

Show fields
Array of ancillary · Ancillaries attached to the itinerary which will be covered by the product and their prices. In the case of a split itinerary the payout amount of these ancillaries will be evenly distributed amongst the passengers.
amount
string
required

Total price of the ancillary.

code
string
required

Code of the ancillary in the PNR/Order, e.g. the SSR code XBAG for an extra checked baggage. The mapping table of code => ancillary type, and whether the ancillary is covered or not, is configured on the HTS side. It's important to use the same value as in the PNR/Order since it's used by HTS for various flow, e.g. validating and updating a CFAR or DAFAR payout amount.

Length ≥ 1
passengers
array of itinerary_passenger
required

List of passengers on the itinerary.

Items ≥ 1
Show fields
Array of itinerary_passenger · List of passengers on the itinerary.
Items ≥ 1
type
string enum
required

Type 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

Values adultchildseated_infantlap_infant
ancillaries
array of ancillary
required

Ancillaries attached to the passenger and their prices.

Show fields
Array of ancillary · Ancillaries attached to the passenger and their prices.
amount
string
required

Total price of the ancillary.

code
string
required

Code of the ancillary in the PNR/Order, e.g. the SSR code XBAG for an extra checked baggage. The mapping table of code => ancillary type, and whether the ancillary is covered or not, is configured on the HTS side. It's important to use the same value as in the PNR/Order since it's used by HTS for various flow, e.g. validating and updating a CFAR or DAFAR payout amount.

Length ≥ 1
fare_amount
string
required

Total price of the fare for this passenger

Range ≥ 0
fare_amount_modifications
array of fare_amount_modification

Modifications to the fare amount, which change how much a customer is charged. Add each fare modification to the fare amount to get the total fare amount the customer will be charged.

Items ≥ 1
Show fields
Array of fare_amount_modification · Modifications to the fare amount, which change how much a customer is charged. Add each fare modification to the fare amount to get the total fare amount the customer will be charged.
Items ≥ 1
amount
string
required

Amount of the modification.

reason
string
required

Reason for the modification being applied to the fare amount.

Length ≥ 1
channel
channel · one of 5
required

Partner's channel that is interacting with the API.

Show fields

Partner's channel that is interacting with the API.

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

value: agent_reseller

agency_id
string
required

The ID of the agency.

Length ≥ 1
agent
agent
required

The agent operating the session. Expected from every agent portal integration.

Show fields
id
string
required

The ID of the agent.

Length ≥ 1
account_created_at
string · date-time
required

When the agent's account was created in the partner's system, in UTC.

verification_status
string enum
required

The partner's verification status for this agent. An opaque partner assertion: this API does not define what a partner must do to assert verified. Partners that run no verification programme send not_supported.

Values verifiedunverifiednot_supported
api (api) api
type
string
required

value: api

client
string
required

The client name of the API.

Length ≥ 1
direct (direct) direct
type
string
required

value: direct

online_booking_tool (online_booking_tool) online_booking_tool
type
string
required

value: online_booking_tool

travel_management_company
string
required

The name of the travel management company.

Length ≥ 1
business
string
required

The name of the business.

Length ≥ 1
white_label (white_label) white_label
type
string
required

value: white_label

brand
string
required

The brand name of the white label partner.

Length ≥ 1
point_of_sale
string
required

Two character country code where the offer(s) are being sold, in ISO 3166-1 format.

Pattern [A-Z]{2}
merchandising_context
merchandising_context · one of 2
required

Context for which generated offers will be merchandised on the partner's site.

Show fields

Context for which generated offers will be merchandised on the partner's site.

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

value: post_booking

booked_at
string · date-time
required

Date and time at which the booking was made, 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. 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.

pre_booking (pre_booking) pre_booking
type
string
required

value: pre_booking

priced
boolean

Type of offer requested; priced or not. A priced offer can be used to create an order, but has lower rate limits and adds a bit of latency. This should be aligned with the booking flow of the partner: if the offer is made on itineraries that are repriced later in the flow then it’s best to keep it as false here and then call the Price Offers endpoint later in the flow. But if the itinerary is already after the price quote step on the partner side and it might be the final prices we get then setting this option to true returns offers that are priced and can therefore be used as is in the Create Order endpoint, without having to call the Price Offers endpoint. It’s an optimization to facilitate the integration on the partner side. Default: false.

billing_jurisdiction
billing_jurisdiction

Billing jurisdiction of the user buying the product(s). Recommended for accurate tax calculations at the price offer step, especially if HTS is merchant of record, to avoid corrections at the create order step since it would be after the user has clicked 'book'. This information is usually not known at this step of the flow, but if the offers are created deep in the funnel it might be available, and if setting priced=true to be able to use the offers in the create order endpoint, then it’s important to use this information here to have accurate pricing. Otherwise it’s optional and the price taxes are approximated based on point_of_sale.

Show fields
country
string

Country of the customer billing address. 2 uppercase letter ISO country code.

Pattern [A-Z]{2}
state_province
string

State or province of the customer billing address.

Length ≥ 1
city
string

City of the customer billing address.

Length ≥ 1
postal_code
string

Postal code of the customer billing address.

Length ≥ 1
user_id
string

User ID in the partner system. This is used for fraud prevention to knock out offers for users flagged as fraudulent.

entry_point
string

Entry point from which the disruption offer is being presented to the user. If not provided, defaults to in_funnel for pre-booking and my_trips for post-booking contexts.

Responses

201Offers generated for a given itinerary. There will be at least one type of offer returned. If no offers are available, a 204 No Content will be returned.
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.

204No offers available for the itinerary
No body.
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.
422Semantic errors were encountered while handling the request
Array of create_offers_error · one of 3
Items ≥ 1
Exactly one of the following, selected by code:
invalid_input (invalid_input) invalid_input
message
string
required

A human-readable message describing the error

code
string
required
invalid_itinerary (invalid_itinerary) invalid_itinerary
message
string
required

A human-readable message describing the error

code
string
required
invalid_session (invalid_session) invalid_session
message
string
required

A human-readable message describing the error

code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/flights-dafar/v2/offers" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "session_id": "c17aff84-7581-461e-8505-002d15ac368a",
  "currency": "CAD",
  "itinerary": {
    "slices": [
      {
        "segments": [
          {
            "origin_airport": "BOS",
            "destination_airport": "LGA",
            "departure_date_time": "2022-04-02T18:34:30",
            "arrival_date_time": "2022-04-02T19:12:30",
            "cabin": "economy",
            "reservation_booking_designator": "Y",
            "marketing_carrier_code": "B6",
            "marketing_flight_number": "776",
            "operating_carrier_code": "B6",
            "operating_flight_number": "776"
          }
        ],
        "fare_brand": "Flex",
        "alternative_fares": [
          {
            "amount": "401.10",
            "brand": "flex"
          }
        ],
        "fare_rules": {
          "cancel": {
            "before_departure": {
              "type": "non_refundable"
            },
            "after_departure": {
              "type": "non_refundable"
            },
            "anytime": {
              "type": "non_refundable"
            }
          },
          "change": {
            "before_departure": {
              "type": "non_refundable"
            },
            "after_departure": {
              "type": "non_refundable"
            },
            "anytime": {
              "type": "non_refundable"
            }
          }
        },
        "void_policy": {
          "type": "string"
        }
      }
    ],
    "ancillaries": [
      {
        "amount": "20.55",
        "code": "string"
      }
    ],
    "passengers": [
      {
        "type": "adult",
        "ancillaries": [
          {
            "amount": "20.55",
            "code": "string"
          }
        ],
        "fare_amount": "140.56",
        "fare_amount_modifications": [
          {
            "amount": "10.00",
            "reason": "points conversion"
          }
        ]
      }
    ]
  },
  "channel": {
    "type": "string",
    "agency_id": "858695eb-db27-406a-b9dd-a76af17b7d1c",
    "agent": {
      "id": "a420c244-06c0-40cf-b004-a1f390f069cc",
      "account_created_at": "2026-08-14T09:31:00Z",
      "verification_status": "verified"
    }
  },
  "point_of_sale": "string",
  "merchandising_context": {
    "type": "string",
    "booked_at": "2026-12-10T15:00:00Z",
    "booking_references": {}
  },
  "priced": true,
  "billing_jurisdiction": {
    "country": "US",
    "state_province": "string",
    "city": "string",
    "postal_code": "string"
  },
  "user_id": "string",
  "entry_point": "string"
}'
Response 201
{
  "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"
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.