leg
Contains detailed itinerary information for one of the trip legs
flight object
Operating Carrier Code and the Number of the airline flight to be taken on Leg of the trip (excluding the carrier code).
Operating Carrier Code; the standard abbreviation code indicating name of the operating carrier like United Airlines, Jet Blue, etc.
Possible values: >= 2 characters
and <= 2 characters
LH
Number of the airline flight to be taken on Leg of the trip excluding the carrier code.
Possible values: non-empty
and <= 5 characters
0799
Indicates service class (first class, business class, etc.). Example values (not limited to):
-
F - first class
-
J - business class
-
W - premium economy class
-
Y - economy class
Possible values: non-empty
and <= 1 characters
, [F
, J
, W
, Y
]
F
Indicates whether a stopover is allowed on this ticket. Valid values are:
-
false - not allowed
-
true - allowed
Destination Airport Code (IATA Airport Code).
Possible values: >= 3 characters
and <= 3 characters
SOF
Contains a Fare Basis Code for Leg that carriers assign to a particular ticket type, such as business class or discounted/nonrefundable.
Possible values: non-empty
and <= 6 characters
VMAY
Date of passenger’s departure for this leg. Date format = YYYY-MM-DD, ISO 8601 expected. For example, 2014-01-26
2022-12-20
{
"flight": {
"carrierCode": "LH",
"flightNumber": "0799"
},
"serviceClass": "F",
"isStopOverAllowed": true,
"destination": "SOF",
"fareBasis": "VMAY",
"departureDate": "2022-12-20"
}