GET /flightDetails

GET /flight-Details

The FlightDetails endpoint provides the details of the flight related toi the connection. 

HOW TO USE?

Use case flow can be followed by the consumer by requesting the GET method supplied as HATEOAS link in the response body of AvailableOffers.

HEADERS TO USE FOR REQUESTS

Parameter

Value

Authorization 

Bearer {{token}}

Content-Type 

application/json

Accept 

application/hal+json;charset=utf8

Accept-Language 

{{language}}-{{country}}

AFKL-TRAVEL-Host 

KL or AF

AFKL-TRAVEL-Country 

Country (overrides Accept-Language country)

GET

GET https://api.airfranceklm.com/opendata/offers/v1/flight-details/{id}

Query Parameters

N/A

RESPONSE PARAMETERS

Level Name Type Multiplicity  Description
1 connection Object  1 The connection applied to Availble Offer.
2 segments
Array of Objects 0-6

A chronologically ordered list of segments that describe the Connection.

 

3

origin

Object 0-1 The date and time where the validity of the time to think product will end.
4 code String 1 IATA location code of the airport.
4 city Object 0-1 The city the airport is located in.
5 code String 1 IATA location code of the city.
3 destination Number 1 The origin airport of the connection.
4 code String 1 IATA location code of the airport.
4 city Object 0-1 The city the airport is located in.
5 code String 1 IATA location code of the city.
3 commercialCabin Object 1

CommercialCabin applicable for the fare for the segment

ECONOMY or PREMIUM or BUSINESS or FIRST

HTTP STATUS CODE

HTTP status

Type

200 OK

500

INTERNAL_SERVER_ERROR

SAMPLE RESPONSE

{
  "connection": {
    "segments": [
      {
        "destination": {
          "city": {
            "code": "PAR"
          },
          "code": "ORY"
        },
        "origin": {
          "city": {
            "code": "NCE"
          },
          "code": "NCE"
        },
        "commercialCabin": "ECONOMY"
      },
      {
        "destination": {
          "city": {
            "code": "NYC"
          },
          "code": "JFK"
        },
        "origin": {
          "city": {
            "code": "PAR"
          },
          "code": "CDG"
        },
        "commercialCabin": "ECONOMY"
      }
    ]
  }
}

Docs Navigation