Skip to main content

tripLegs

A grouping of four separate trip segments. Each leg contains detailed itinerary information.

    leg1

    object

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

    carrierCode string

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

    Operating Carrier Code; the standard abbreviation code indicating name of the operating carrier like United Airlines, Jet Blue, etc.

    flightNumber string

    Possible values: non-empty and <= 5 characters

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

    serviceClass string

    Possible values: non-empty and <= 1 characters, [F, J, W, Y]

    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

    isStopOverAllowed boolean

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

    • false - not allowed

    • true - allowed

    destination string

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

    Destination Airport Code (IATA Airport Code).

    fareBasis string

    Possible values: non-empty and <= 6 characters

    Contains a Fare Basis Code for Leg that carriers assign to a particular ticket type, such as business class or discounted/nonrefundable.

    departureDate date

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

    leg2

    object

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

    carrierCode string

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

    Operating Carrier Code; the standard abbreviation code indicating name of the operating carrier like United Airlines, Jet Blue, etc.

    flightNumber string

    Possible values: non-empty and <= 5 characters

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

    serviceClass string

    Possible values: non-empty and <= 1 characters, [F, J, W, Y]

    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

    isStopOverAllowed boolean

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

    • false - not allowed

    • true - allowed

    destination string

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

    Destination Airport Code (IATA Airport Code).

    fareBasis string

    Possible values: non-empty and <= 6 characters

    Contains a Fare Basis Code for Leg that carriers assign to a particular ticket type, such as business class or discounted/nonrefundable.

    departureDate date

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

    leg3

    object

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

    carrierCode string

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

    Operating Carrier Code; the standard abbreviation code indicating name of the operating carrier like United Airlines, Jet Blue, etc.

    flightNumber string

    Possible values: non-empty and <= 5 characters

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

    serviceClass string

    Possible values: non-empty and <= 1 characters, [F, J, W, Y]

    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

    isStopOverAllowed boolean

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

    • false - not allowed

    • true - allowed

    destination string

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

    Destination Airport Code (IATA Airport Code).

    fareBasis string

    Possible values: non-empty and <= 6 characters

    Contains a Fare Basis Code for Leg that carriers assign to a particular ticket type, such as business class or discounted/nonrefundable.

    departureDate date

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

    leg4

    object

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

    carrierCode string

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

    Operating Carrier Code; the standard abbreviation code indicating name of the operating carrier like United Airlines, Jet Blue, etc.

    flightNumber string

    Possible values: non-empty and <= 5 characters

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

    serviceClass string

    Possible values: non-empty and <= 1 characters, [F, J, W, Y]

    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

    isStopOverAllowed boolean

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

    • false - not allowed

    • true - allowed

    destination string

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

    Destination Airport Code (IATA Airport Code).

    fareBasis string

    Possible values: non-empty and <= 6 characters

    Contains a Fare Basis Code for Leg that carriers assign to a particular ticket type, such as business class or discounted/nonrefundable.

    departureDate date

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