Skip to main content

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).

carrierCodestring

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

Example: LH
flightNumberstring

Number of the airline flight to be taken on Leg of the trip excluding the carrier code.

Possible values: non-empty and <= 5 characters

Example: 0799
serviceClassstring

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]

Example: F
isStopOverAllowedboolean

Indicates whether a stopover is allowed on this ticket. Valid values are:

  • false - not allowed

  • true - allowed

destinationstring

Destination Airport Code (IATA Airport Code).

Possible values: >= 3 characters and <= 3 characters

Example: SOF
fareBasisstring

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

Example: VMAY
departureDatedate

Date of passenger’s departure for this leg. Date format = YYYY-MM-DD, ISO 8601 expected. For example, 2014-01-26

Example: 2022-12-20
leg
{
"flight": {
"carrierCode": "LH",
"flightNumber": "0799"
},
"serviceClass": "F",
"isStopOverAllowed": true,
"destination": "SOF",
"fareBasis": "VMAY",
"departureDate": "2022-12-20"
}