HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
create_synthetic_fares_request
Fields
session_idAn ID associating the user's shopping session.
currencyCurrency of all pricing fields within the request.
itinerariesItineraries for which to create synthetic fare offers.
Show fields
idA unique identifier for an itinerary.
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
after_departurePolicy that applies after the flight departure time.
Show fields
anytimePolicy that applies regardless of timing relative to departure.
Show fields
changeThe change policy for the slice.
Show fields
before_departurePolicy that applies before the flight departure time.
Show fields
after_departurePolicy that applies after the flight departure time.
Show fields
anytimePolicy that applies regardless of timing relative to departure.
Show fields
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
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_infantfare_amountTotal price of the fare for this passenger
countThe count of passengers for the given type. If not provided, the count will be defaulted to 1.
1fare_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.
channelPartner's channel that is interacting with the API.
Show fields
Partner's channel that is interacting with the API.
type:agent_reseller (agent_reseller) agent_reseller
typevalue: agent_reseller
agency_idThe ID of the agency.
agentThe agent operating the session. Expected from every agent portal integration.
Show fields
idThe ID of the agent.
account_created_atWhen the agent's account was created in the partner's system, in UTC.
verification_status 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.
verifiedunverifiednot_supportedapi (api) api
typevalue: api
clientThe client name of the API.
direct (direct) direct
typevalue: direct
online_booking_tool (online_booking_tool) online_booking_tool
typevalue: online_booking_tool
travel_management_companyThe name of the travel management company.
businessThe name of the business.
white_label (white_label) white_label
typevalue: white_label
brandThe brand name of the white label partner.
point_of_saleTwo character country code where the offer(s) are being sold, in ISO 3166-1 format.
[A-Z]{2}tripThe type of trip the customer is shopping for. This field should only be sent when synthetic fares are being created for partial itineraries which are merchandised slice by slice in the partner's booking flow. Itineraries are assumed by default to be complete, so there is no need to pass the trip type when creating a synthetic fare for the full itinerary.
Show fields
The type of trip the customer is shopping for. This field should only be sent when synthetic fares are being created for partial itineraries which are merchandised slice by slice in the partner's booking flow. Itineraries are assumed by default to be complete, so there is no need to pass the trip type when creating a synthetic fare for the full itinerary.
type:multi_city (multi_city) multi_city
typevalue: multi_city
slicesThe individual slices of the multi-city trip
Show fields
originIATA airport code of origin.
[A-Z]{3}destinationIATA airport code of destination.
[A-Z]{3}departure_dateLocal date of departure from origin.
previous_slice_offer_idUsed when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the first slice, this field should be empty. If the customer has chosen a synthetic fare for the prior slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the next slice. The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.
one_way (one_way) one_way
typevalue: one_way
originIATA airport code of origin.
[A-Z]{3}destinationIATA airport code of destination.
[A-Z]{3}departure_dateLocal date of departure from origin.
round_trip (round_trip) round_trip
typevalue: round_trip
originIATA airport code of origin.
[A-Z]{3}destinationIATA airport code of destination.
[A-Z]{3}departure_dateLocal date of departure from origin.
return_dateLocal date of return from destination.
previous_slice_offer_idUsed when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the outgoing slice, this field should be empty. If the customer has chosen a synthetic fare for the outgoing slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the return slice. The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.
billing_jurisdictionBilling information of the user buying the product(s). Recommended for accurate tax calculations, especially if HTS is merchant of record. Optional - taxes are approximated based on point_of_sale if not provided.
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
Used by
{
"session_id": "c17aff84-7581-461e-8505-002d15ac368a",
"currency": "CAD",
"trip": {
"type": "string",
"slices": [
{
"origin": "BOS",
"destination": "LGA",
"departure_date": "2024-04-22"
}
],
"previous_slice_offer_id": "string"
},
"itineraries": [
{
"id": "1724b1b7-3a61-47a2-aa2f-69a607cf429a",
"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": {},
"change": {}
},
"void_policy": {
"type": "string"
}
}
],
"passengers": [
{
"type": "adult",
"fare_amount": "140.56",
"count": 1,
"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",
"billing_jurisdiction": {
"country": "US",
"state_province": "string",
"city": "string",
"postal_code": "string"
},
"user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0"
}