v3

latestSwagger 2.0raw.githubusercontent.com2022-07-0713893.7 KB
flight-choice-prediction

Predict the choice of flight offers.

post/shopping/flight-offers/prediction

Request body

Example request

{
  "meta": {
    "count": 2
  },
  "data": [
    {
      "type": "flight-offer",
      "id": "1",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-01-16",
      "numberOfBookableSeats": 7,
      "itineraries": [
        {
          "duration": "PT15H55M",
          "segments": [
            {
              "departure": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-08-01T21:50:00"
              },
              "arrival": {
                "iataCode": "LHR",
                "terminal": "5",
                "at": "2020-08-02T13:10:00"
              },
              "carrierCode": "BA",
              "number": "248",
              "aircraft": {
                "code": "788"
              },
              "operating": {
                "carrierCode": "BA"
              },
              "duration": "PT11H20M",
              "id": "1",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "LHR",
                "terminal": "5",
                "at": "2020-08-02T15:15:00"
              },
              "arrival": {
                "iataCode": "MAD",
                "terminal": "4S",
                "at": "2020-08-02T18:45:00"
              },
              "carrierCode": "BA",
              "number": "462",
              "aircraft": {
                "code": "321"
              },
              "operating": {
                "carrierCode": "BA"
              },
              "duration": "PT2H30M",
              "id": "2",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        },
        {
          "duration": "PT13H35M",
          "segments": [
            {
              "departure": {
                "iataCode": "MAD",
                "terminal": "4S",
                "at": "2020-08-05T23:55:00"
              },
              "arrival": {
                "iataCode": "GRU",
                "terminal": "3",
                "at": "2020-08-06T05:40:00"
              },
              "carrierCode": "IB",
              "number": "6827",
              "aircraft": {
                "code": "346"
              },
              "operating": {
                "carrierCode": "IB"
              },
              "duration": "PT10H45M",
              "id": "5",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "GRU",
                "terminal": "2",
                "at": "2020-08-06T07:30:00"
              },
              "arrival": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-08-06T08:30:00"
              },
              "carrierCode": "LA",
              "number": "4508",
              "aircraft": {
                "code": "320"
              },
              "duration": "PT1H",
              "id": "6",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "USD",
        "total": "3842.10",
        "base": "3661.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ],
        "grandTotal": "3842.10"
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": false
      },
      "validatingAirlineCodes": [
        "BA"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "USD",
            "total": "2178.55",
            "base": "2088.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "1",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "R",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "2",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "5",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V",
              "includedCheckedBags": {
                "quantity": 1
              }
            },
            {
              "segmentId": "6",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V",
              "includedCheckedBags": {
                "quantity": 1
              }
            }
          ]
        },
        {
          "travelerId": "2",
          "fareOption": "STANDARD",
          "travelerType": "CHILD",
          "price": {
            "currency": "USD",
            "total": "1663.55",
            "base": "1573.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "1",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "R"
            },
            {
              "segmentId": "2",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "J"
            },
            {
              "segmentId": "5",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V"
            },
            {
              "segmentId": "6",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V"
            }
          ]
        }
      ]
    },
    {
      "type": "flight-offer",
      "id": "2",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-01-16",
      "numberOfBookableSeats": 7,
      "itineraries": [
        {
          "duration": "PT15H55M",
          "segments": [
            {
              "departure": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-08-01T21:50:00"
              },
              "arrival": {
                "iataCode": "LHR",
                "terminal": "5",
                "at": "2020-08-02T13:10:00"
              },
              "carrierCode": "BA",
              "number": "248",
              "aircraft": {
                "code": "788"
              },
              "operating": {
                "carrierCode": "BA"
              },
              "duration": "PT11H20M",
              "id": "1",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "LHR",
                "terminal": "5",
                "at": "2020-08-02T15:15:00"
              },
              "arrival": {
                "iataCode": "MAD",
                "terminal": "4S",
                "at": "2020-08-02T18:45:00"
              },
              "carrierCode": "BA",
              "number": "462",
              "aircraft": {
                "code": "321"
              },
              "operating": {
                "carrierCode": "BA"
              },
              "duration": "PT2H30M",
              "id": "2",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        },
        {
          "duration": "PT19H5M",
          "segments": [
            {
              "departure": {
                "iataCode": "MAD",
                "terminal": "4S",
                "at": "2020-08-05T23:55:00"
              },
              "arrival": {
                "iataCode": "GRU",
                "terminal": "3",
                "at": "2020-08-06T05:40:00"
              },
              "carrierCode": "IB",
              "number": "6827",
              "aircraft": {
                "code": "346"
              },
              "operating": {
                "carrierCode": "IB"
              },
              "duration": "PT10H45M",
              "id": "3",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "GRU",
                "terminal": "2",
                "at": "2020-08-06T13:00:00"
              },
              "arrival": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-08-06T14:00:00"
              },
              "carrierCode": "LA",
              "number": "4537",
              "aircraft": {
                "code": "321"
              },
              "duration": "PT1H",
              "id": "4",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "USD",
        "total": "3842.10",
        "base": "3661.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ],
        "grandTotal": "3842.10"
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": false
      },
      "validatingAirlineCodes": [
        "BA"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "USD",
            "total": "2178.55",
            "base": "2088.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "1",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "R",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "2",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "3",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V",
              "includedCheckedBags": {
                "quantity": 1
              }
            },
            {
              "segmentId": "4",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V",
              "includedCheckedBags": {
                "quantity": 1
              }
            }
          ]
        },
        {
          "travelerId": "2",
          "fareOption": "STANDARD",
          "travelerType": "CHILD",
          "price": {
            "currency": "USD",
            "total": "1663.55",
            "base": "1573.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "1",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "R"
            },
            {
              "segmentId": "2",
              "cabin": "BUSINESS",
              "fareBasis": "RNNZ60S3",
              "brandedFare": "BUSINESS",
              "class": "J"
            },
            {
              "segmentId": "3",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V"
            },
            {
              "segmentId": "4",
              "cabin": "ECONOMY",
              "fareBasis": "VDH0NNM3",
              "brandedFare": "BAGSEAT",
              "class": "V"
            }
          ]
        }
      ]
    }
  ],
  "dictionaries": {
    "locations": {
      "MAD": {
        "cityCode": "MAD",
        "countryCode": "ES"
      },
      "GIG": {
        "cityCode": "RIO",
        "countryCode": "BR"
      },
      "LHR": {
        "cityCode": "LON",
        "countryCode": "GB"
      },
      "GRU": {
        "cityCode": "SAO",
        "countryCode": "BR"
      }
    },
    "aircraft": {
      "320": "AIRBUS INDUSTRIE A320-100/200",
      "321": "AIRBUS INDUSTRIE A321",
      "346": "AIRBUS INDUSTRIE A340-600",
      "788": "BOEING 787-8"
    },
    "currencies": {
      "USD": "US DOLLAR"
    },
    "carriers": {
      "LA": "LATAM AIRLINES GROUP",
      "IB": "IBERIA",
      "BA": "BRITISH AIRWAYS"
    }
  }
}

Response

Flight Offers Search Reply with prediction

Example response

{
  "meta": {
    "count": 3
  },
  "data": [
    {
      "type": "flight-offer",
      "id": "1",
      "choiceProbability": "0.42",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-03-01",
      "numberOfBookableSeats": 9,
      "itineraries": [
        {
          "duration": "PT18H30M",
          "segments": [
            {
              "departure": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-01T21:05:00"
              },
              "arrival": {
                "iataCode": "CDG",
                "terminal": "2E",
                "at": "2020-03-02T12:20:00"
              },
              "carrierCode": "KL",
              "number": "2410",
              "aircraft": {
                "code": "772"
              },
              "operating": {
                "carrierCode": "AF"
              },
              "id": "40",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "CDG",
                "terminal": "2F",
                "at": "2020-03-02T14:30:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-02T15:45:00"
              },
              "carrierCode": "KL",
              "number": "1234",
              "aircraft": {
                "code": "73H"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "41",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-02T17:05:00"
              },
              "arrival": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-02T19:35:00"
              },
              "carrierCode": "KL",
              "number": "1705",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "42",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        },
        {
          "duration": "PT26H10M",
          "segments": [
            {
              "departure": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-05T20:25:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-05T23:00:00"
              },
              "carrierCode": "KL",
              "number": "1706",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "81",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-06T10:40:00"
              },
              "arrival": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-06T18:35:00"
              },
              "carrierCode": "KL",
              "number": "705",
              "aircraft": {
                "code": "772"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "82",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "USD",
        "total": "8514.04",
        "base": "8314.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ]
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": true
      },
      "validatingAirlineCodes": [
        "AF"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "USD",
            "total": "4849.02",
            "base": "4749.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "40",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "41",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "42",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            }
          ]
        },
        {
          "travelerId": "2",
          "fareOption": "STANDARD",
          "travelerType": "CHILD",
          "price": {
            "currency": "USD",
            "total": "3665.02",
            "base": "3565.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "40",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C"
            },
            {
              "segmentId": "41",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "42",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            }
          ]
        }
      ]
    },
    {
      "type": "flight-offer",
      "id": "2",
      "choiceProbability": "0.11",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-03-01",
      "numberOfBookableSeats": 9,
      "itineraries": [
        {
          "duration": "PT19H35M",
          "segments": [
            {
              "departure": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-01T16:30:00"
              },
              "arrival": {
                "iataCode": "CDG",
                "terminal": "2E",
                "at": "2020-03-02T07:35:00"
              },
              "carrierCode": "KL",
              "number": "2412",
              "aircraft": {
                "code": "77W"
              },
              "operating": {
                "carrierCode": "AF"
              },
              "id": "43",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "CDG",
                "terminal": "2F",
                "at": "2020-03-02T09:05:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-02T10:30:00"
              },
              "carrierCode": "KL",
              "number": "1224",
              "aircraft": {
                "code": "73W"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "44",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-02T13:30:00"
              },
              "arrival": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-02T16:05:00"
              },
              "carrierCode": "KL",
              "number": "1703",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "45",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        },
        {
          "duration": "PT26H10M",
          "segments": [
            {
              "departure": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-05T20:25:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-05T23:00:00"
              },
              "carrierCode": "KL",
              "number": "1706",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "81",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-06T10:40:00"
              },
              "arrival": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-06T18:35:00"
              },
              "carrierCode": "KL",
              "number": "705",
              "aircraft": {
                "code": "772"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "82",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "USD",
        "total": "8514.04",
        "base": "8314.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ]
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": true
      },
      "validatingAirlineCodes": [
        "AF"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "USD",
            "total": "4849.02",
            "base": "4749.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "43",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "44",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "45",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            }
          ]
        },
        {
          "travelerId": "2",
          "fareOption": "STANDARD",
          "travelerType": "CHILD",
          "price": {
            "currency": "USD",
            "total": "3665.02",
            "base": "3565.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "43",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C"
            },
            {
              "segmentId": "44",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "45",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            }
          ]
        }
      ]
    },
    {
      "type": "flight-offer",
      "id": "3",
      "choiceProbability": "0.76",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-03-01",
      "numberOfBookableSeats": 9,
      "itineraries": [
        {
          "duration": "PT19H35M",
          "segments": [
            {
              "departure": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-01T16:30:00"
              },
              "arrival": {
                "iataCode": "CDG",
                "terminal": "2E",
                "at": "2020-03-02T07:35:00"
              },
              "carrierCode": "KL",
              "number": "2412",
              "aircraft": {
                "code": "77W"
              },
              "operating": {
                "carrierCode": "AF"
              },
              "id": "46",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "CDG",
                "terminal": "2F",
                "at": "2020-03-02T09:35:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-02T11:00:00"
              },
              "carrierCode": "KL",
              "number": "1228",
              "aircraft": {
                "code": "73H"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "47",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-02T13:30:00"
              },
              "arrival": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-02T16:05:00"
              },
              "carrierCode": "KL",
              "number": "1703",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "48",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        },
        {
          "duration": "PT26H10M",
          "segments": [
            {
              "departure": {
                "iataCode": "MAD",
                "terminal": "2",
                "at": "2020-03-05T20:25:00"
              },
              "arrival": {
                "iataCode": "AMS",
                "at": "2020-03-05T23:00:00"
              },
              "carrierCode": "KL",
              "number": "1706",
              "aircraft": {
                "code": "73J"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "81",
              "numberOfStops": 0,
              "blacklistedInEU": false
            },
            {
              "departure": {
                "iataCode": "AMS",
                "at": "2020-03-06T10:40:00"
              },
              "arrival": {
                "iataCode": "GIG",
                "terminal": "2",
                "at": "2020-03-06T18:35:00"
              },
              "carrierCode": "KL",
              "number": "705",
              "aircraft": {
                "code": "772"
              },
              "operating": {
                "carrierCode": "KL"
              },
              "id": "82",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "USD",
        "total": "8514.04",
        "base": "8314.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ]
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": true
      },
      "validatingAirlineCodes": [
        "AF"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "USD",
            "total": "4849.02",
            "base": "4749.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "46",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "47",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "48",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J",
              "includedCheckedBags": {
                "quantity": 2
              }
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y",
              "includedCheckedBags": {
                "quantity": 1
              }
            }
          ]
        },
        {
          "travelerId": "2",
          "fareOption": "STANDARD",
          "travelerType": "CHILD",
          "price": {
            "currency": "USD",
            "total": "3665.02",
            "base": "3565.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "46",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "C"
            },
            {
              "segmentId": "47",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "48",
              "cabin": "BUSINESS",
              "fareBasis": "CFFBR",
              "class": "J"
            },
            {
              "segmentId": "81",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            },
            {
              "segmentId": "82",
              "cabin": "ECONOMY",
              "fareBasis": "YFFBR",
              "class": "Y"
            }
          ]
        }
      ]
    }
  ]
}
All 1 operations