SimpleAirTripOption Data Type

A simple trip option that explains an available flight. Created by nick on 7/28/16.

Properties
name data type description
baseFare number The fare without tax.
totalFare number The fare, including tax.
tax number The total tax amount.
currency string The currency that the fare is given in.
legs array of SimpleAirLegOption A leg of each trip is a set of flights that happen consecutively with a defined origin and destination city.
requestUrl string A custom URL to display for the user to select an option. Typically points to a booking system.

Example

{
  "baseFare" : 12345.0,
  "totalFare" : 12345.0,
  "tax" : 12345.0,
  "currency" : "...",
  "legs" : [ {
    "flights" : [ {
      "airline" : { },
      "operatingAirline" : { },
      "departureTerminal" : "...",
      "arrivalTerminal" : "...",
      "departureDate" : "...",
      "arrivalDate" : "...",
      "flightNumber" : "...",
      "availableSeats" : 12345,
      "classOfService" : { },
      "departureAirport" : { },
      "arrivalAirport" : { },
      "mileage" : 12345,
      "refundable" : true,
      "aircraft" : { },
      "percentageOnTime" : 12345,
      "numberOfStops" : 12345,
      "governmentRate" : true
    }, {
      "airline" : { },
      "operatingAirline" : { },
      "departureTerminal" : "...",
      "arrivalTerminal" : "...",
      "departureDate" : "...",
      "arrivalDate" : "...",
      "flightNumber" : "...",
      "availableSeats" : 12345,
      "classOfService" : { },
      "departureAirport" : { },
      "arrivalAirport" : { },
      "mileage" : 12345,
      "refundable" : true,
      "aircraft" : { },
      "percentageOnTime" : 12345,
      "numberOfStops" : 12345,
      "governmentRate" : true
    } ],
    "number" : 12345,
    "layoverMinutes" : 12345,
    "basicFare" : true
  }, {
    "flights" : [ {
      "airline" : { },
      "operatingAirline" : { },
      "departureTerminal" : "...",
      "arrivalTerminal" : "...",
      "departureDate" : "...",
      "arrivalDate" : "...",
      "flightNumber" : "...",
      "availableSeats" : 12345,
      "classOfService" : { },
      "departureAirport" : { },
      "arrivalAirport" : { },
      "mileage" : 12345,
      "refundable" : true,
      "aircraft" : { },
      "percentageOnTime" : 12345,
      "numberOfStops" : 12345,
      "governmentRate" : true
    }, {
      "airline" : { },
      "operatingAirline" : { },
      "departureTerminal" : "...",
      "arrivalTerminal" : "...",
      "departureDate" : "...",
      "arrivalDate" : "...",
      "flightNumber" : "...",
      "availableSeats" : 12345,
      "classOfService" : { },
      "departureAirport" : { },
      "arrivalAirport" : { },
      "mileage" : 12345,
      "refundable" : true,
      "aircraft" : { },
      "percentageOnTime" : 12345,
      "numberOfStops" : 12345,
      "governmentRate" : true
    } ],
    "number" : 12345,
    "layoverMinutes" : 12345,
    "basicFare" : true
  } ],
  "requestUrl" : "..."
}