Docs
DevelopersReferenceBookings

API: List Flights

GET
/v1/itineraries/{id}/flights

The itinerary's flights.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid

Header Parameters

Travelyfe-Itinerary-Shape?"clean"

Send clean on every request that reads or writes an itinerary. It is the shape this reference documents.

Value in

  • "clean"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/itineraries/497f6eca-6276-4993-bfeb-53cbbbba6f08/flights"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "flightAirline": {        "code": "string",        "name": "string"      },      "flightNumber": "string",      "departureAirport": {        "name": "string",        "address": "string",        "coordinate": {          "latitude": -90,          "longitude": -180        },        "placeId": "string",        "countryCode": "string",        "timeZone": "string",        "code": "string"      },      "arrivalAirport": {        "name": "string",        "address": "string",        "coordinate": {          "latitude": -90,          "longitude": -180        },        "placeId": "string",        "countryCode": "string",        "timeZone": "string",        "code": "string"      },      "departureDate": "2019-08-24T14:15:22Z",      "arrivalDate": "2019-08-24T14:15:22Z",      "cabinClass": "economy",      "seatNumber": "string",      "gateNumber": "string",      "departureTerminal": "string",      "arrivalTerminal": "string",      "phoneNumber": "string"    }  ]}