HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
slice
A single journey (e.g., outbound or inbound) which may consist of multiple segments.
Fields
idUnique slice identifier within this order
sli_0origin_airport_codeIATA code of the origin airport
YULdestination_airport_codeIATA code of the destination airport
JFKdurationTotal journey duration in ISO 8601 duration format
PT5H30MsegmentsShow fields
idUnique segment identifier within this quote/order
seg_0origin_airport_codeIATA code of the origin airport
YULdestination_airport_codeIATA code of the destination airport
JFKdeparture_date_timeDeparture date and time in ISO 8601 format
2026-06-01T10:00:00Zarrival_date_timeArrival date and time in ISO 8601 format
2026-06-01T12:00:00Zflight_numberThe flight number
1234marketing_carrier_codeIATA code of the marketing carrier
ACoperating_carrier_codeIATA code of the operating carrier
UAcabin_classeconomypremium_economybusinessfirst · Example economystopsNumber of stops on this segment (0 = non-stop)
0fare_basis_codeThe fare basis code for this segment
YOWCAbooking_class_codeThe booking class (RBD) for this segment
Yfare_brand_nameThe branded fare name for this segment
Economy FlexdurationFlight duration in ISO 8601 duration format
PT2H30Mequipment_codeIATA aircraft type code
320statusSegment booking status. Only present in order responses (not in shopping or offerPrice).
confirmed: Segment is confirmed.cancelled: Segment cancelled.pending: Awaiting confirmation.
confirmedcancelledpending · Example confirmed{
"id": "sli_0",
"origin_airport_code": "YUL",
"destination_airport_code": "JFK",
"duration": "PT5H30M",
"segments": [
{
"id": "seg_0",
"origin_airport_code": "YUL",
"destination_airport_code": "JFK",
"departure_date_time": "2026-06-01T10:00:00Z",
"arrival_date_time": "2026-06-01T12:00:00Z",
"flight_number": "1234",
"marketing_carrier_code": "AC",
"operating_carrier_code": "UA",
"cabin_class": "economy",
"stops": 0,
"fare_basis_code": "YOWCA",
"booking_class_code": "Y",
"fare_brand_name": "Economy Flex",
"duration": "PT2H30M",
"equipment_code": "320",
"status": "confirmed"
}
]
}