v1

latestOpenAPI 3.1.02026-07-2470277.8 KB

Get Trips

Retrieve flight-level information from an Availability object.

get/trips/{id}

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.

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"
    }
  ],
  "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
    }
  ]
}