HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/offers/priceQuotePrice Offers
Price offers for a customer's itinerary.
Request body application/json · required
offer_idsIds of the offer(s) to create new priced offers for.
currencyCurrency of all pricing fields within the request.
itineraryItinerary for which to create offers.
Show fields
slicesList of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed
Show fields
segmentsA list of segments which make up the slice.
Show fields
origin_airportIATA airport code of origin.
[A-Z]{3}destination_airportIATA airport code of destination.
[A-Z]{3}departure_date_timeLocal date and time of departure, in ISO 8601 format.
arrival_date_timeLocal date and time of arrival, in ISO 8601 format.
cabinCabin of the segment.
economypremium_economybusinessfirstmarketing_carrier_codeIATA airline code of the marketing carrier for this segment.
[A-Z0-9]{2}marketing_flight_numberFlight number for the marketing carrier.
[0-9]{1,4}reservation_booking_designatorReservation 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.
^[A-Z][A-Z0-9]?$operating_carrier_codeIATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.
[A-Z0-9]{2}operating_flight_numberFlight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.
[0-9]{1,4}fare_brandName of the brand for the fare of the slice.
alternative_faresA list of alternative fares which were also available to the user in the same cabin.
Show fields
amountPrice of the fare.
brandName of the brand for this fare.
fare_rulesThe 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
cancelThe cancel policy for the slice.
Show fields
before_departurePolicy that applies before the flight departure time.
Show fields
Policy that applies before the flight departure time.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
after_departurePolicy that applies after the flight departure time.
Show fields
Policy that applies after the flight departure time.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
anytimePolicy that applies regardless of timing relative to departure.
Show fields
Policy that applies regardless of timing relative to departure.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
changeThe change policy for the slice.
Show fields
before_departurePolicy that applies before the flight departure time.
Show fields
Policy that applies before the flight departure time.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
after_departurePolicy that applies after the flight departure time.
Show fields
Policy that applies after the flight departure time.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
anytimePolicy that applies regardless of timing relative to departure.
Show fields
Policy that applies regardless of timing relative to departure.
type:non_refundable (non_refundable) non_refundable
refundable (refundable) refundable
void_policyThe 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.
type:allowed (allowed) allowed
typevalue: allowed
allowed_for (allowed_for) allowed_for
typevalue: allowed_for
durationThe duration after booking during which the booking can be voided, as an ISO 8601 duration.
allowed_until (allowed_until) allowed_until
typevalue: allowed_until
expires_atThe point in time until which the booking can be voided, as a UTC RFC3339 formatted datetime.
not_allowed (not_allowed) not_allowed
typevalue: not_allowed
ancillariesAncillaries 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
amountTotal price of the ancillary.
codeCode 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.
passengersList of passengers on the itinerary.
Show fields
typeType 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
adultchildseated_infantlap_infantancillariesAncillaries attached to the passenger and their prices.
Show fields
amountTotal price of the ancillary.
codeCode 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.
fare_amountTotal price of the fare for this passenger
fare_amount_modificationsModifications 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.
Show fields
amountAmount of the modification.
reasonReason for the modification being applied to the fare amount.
billing_jurisdictionBilling 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'.
Show fields
countryCountry of the customer billing address. 2 uppercase letter ISO country code.
[A-Z]{2}state_provinceState or province of the customer billing address.
cityCity of the customer billing address.
postal_codePostal code of the customer billing address.
user_idThe ID of a user as defined by the partner
Responses
201Offers priced 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.
offersList of DAFAR offers generated for a given itinerary.
Show fields
idUnique identifier for an offer.
priceThe price breakdown of the product.
Show fields
total_amountTotal amount to be paid for the product, including taxes.
total_amount_per_passengerThe per-passenger 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.
eligible_disruptionsThe disruption events which allow a customer to exercise their product.
Show fields
flight_cancellationThe product becomes exercise eligible in the event of a flight cancellation.
flight_delayThe product becomes exercise eligible in the event of a flight delay.
Show fields
delay_minutes_thresholdThe number of minutes a flight must be delayed to qualify for disruption exercise eligibility.
missed_connectionThe product becomes exercise eligible in the event of a missed connection.
Show fields
minimum_connection_minutes_thresholdThe minimum number of minutes between connections for which the product will consider a connection missed in the event of a disruption.
rebooking_allowance_per_passengerTotal monetary allowance per passenger for rebooking a flight in case a disruption occurs.
window_minutes_before_departureThe 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.
currencyCurrency of all pricing fields for the offer.
expires_atDate and time at which this offer expires at which point a new offer must be created, as a UTC RFC3339 formatted datetime.
contract_expires_atDate and time at which the contract will expire once purchased, as a UTC RFC3339 formatted datetime.
pricedWhether this is a priced offer or not. A priced offer is required to create an order.
payoutIf the product is eligible for payout, the payout to be issued upon exercise.
Show fields
amountThe total amount to be paid out upon exercise.
percentageThe percentage of the booking to be paid out upon exercise.
entry_pointThe entry point from which the disruption offer was presented to the user.
merchandising_urlA URL which links to the HTS offer merchandising micro-site.
204No offers available for the itinerary
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
422Semantic errors were encountered while handling the request
code:offer_not_found (offer_not_found) offer_not_found
messageA human-readable message describing the error
codesession_not_found (session_not_found) session_not_found
messageA human-readable message describing the error
codeExample
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
500The server encountered an internal error
curl -X POST "https://fintech.staging.htsapis.com/flights-dafar/v2/offers/price" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"offer_ids": [
"string"
],
"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"
}
]
}
]
},
"billing_jurisdiction": {
"country": "US",
"state_province": "string",
"city": "string",
"postal_code": "string"
},
"user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0"
}'{
"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.
