Get Trips
Changed onRetrieve flight-level information from an Availability object.
get/trips/{id}
Request
- Base URLhttps://seats.aero/partnerapi
- URLhttps://seats.aero/partnerapi/trips/{id}
- AuthAPI key in header Partner-Authorization
Path parameters
idstring required
The ID of the availability object.
Query parameters
include_filteredboolean
Include expensive dynamically-priced results that may have been filtered out.
min_cabin_pctinteger
Minimum percentage of each itinerary's distance that must be flown in its reported Cabin or a higher cabin. Must be a whole number from 0 to 100. For example, 75 permits up to 25% of the journey in a lower cabin. Omit this parameter or set it to 100 to exclude itineraries with any distance below the reported Cabin.
Response
200
Example response
{
"data": [
{
"ID": "2S8Cm9dHORWWKpoCkxfRkZa0e5l",
"RouteID": "2B9HOBW9EOvJQDTQqxc3UKEhhur",
"AvailabilityID": "2PPrELk9WcfJaNREWEPXypvhXAD",
"AvailabilitySegments": [
{
"ID": "2S8CmA8bXa9KHaxZfUtihUzRTPd",
"RouteID": "2B9HOBW9EOvJQDTQqxc3UKEhhur",
"AvailabilityID": "2PPrELk9WcfJaNREWEPXypvhXAD",
"AvailabilityTripID": "2S8Cm9dHORWWKpoCkxfRkZa0e5l",
"FlightNumber": "CM326",
"Distance": 966,
"FareClass": "I",
"AircraftName": "739",
"AircraftCode": "739",
"OriginAirport": "CUN",
"DestinationAirport": "PTY",
"DepartsAt": "2024-05-01T13:52:00Z",
"ArrivesAt": "2024-05-01T16:31:00Z",
"CreatedAt": "2023-07-05T01:02:57.782804Z",
"UpdatedAt": "2023-07-08T07:12:25.266914Z",
"Source": "lifemiles"
}
],
"TotalDuration": 1133,
"Stops": 1,
"Carriers": "CM, TK",
"RemainingSeats": 9,
"MileageCost": 70000,
"TotalTaxes": 1290,
"AllianceCost": 87944,
"FlightNumbers": "CM326, TK800",
"DepartsAt": "2024-05-01T13:52:00Z",
"Cabin": "business",
"ArrivesAt": "2024-05-02T16:45:00Z",
"CreatedAt": "2023-07-05T01:02:57.782804Z",
"UpdatedAt": "2023-07-08T07:12:25.266914Z",
"Source": "lifemiles",
"MixedCabinPct": 25
}
],
"origin_coordinates": {
"Lat": 21.036500930800003,
"Lon": -86.8770980835
},
"destination_coordinates": {
"Lat": 40.9768981934,
"Lon": 28.814599990799998
},
"booking_links": [
{
"label": "Book via Avianca LifeMiles",
"link": "https://www.lifemiles.com/fly/find",
"primary": true
}
]
}Changes
- info
added the new optional
queryrequest parametermin_cabin_pct - info
added the optional property
//to the response with the status
- info