Booking

Create Order associated to the Flight offers.

post/booking/flight-orders

Request

Request body

Example request

{
  "data": {
    "type": "flight-order",
    "flightOffers": [
      {
        "type": "flight-offer",
        "id": "1",
        "source": "GDS",
        "instantTicketingRequired": false,
        "nonHomogeneous": false,
        "paymentCardRequired": false,
        "lastTicketingDate": "2020-03-01",
        "itineraries": [
          {
            "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"
                },
                "duration": "PT11H15M",
                "id": "40",
                "numberOfStops": 0
              },
              {
                "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"
                },
                "duration": "PT1H15M",
                "id": "41",
                "numberOfStops": 0
              },
              {
                "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"
                },
                "duration": "PT2H30M",
                "id": "42",
                "numberOfStops": 0
              }
            ]
          },
          {
            "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"
                },
                "duration": "PT2H35M",
                "id": "81",
                "numberOfStops": 0
              },
              {
                "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"
                },
                "duration": "PT11H55M",
                "id": "82",
                "numberOfStops": 0
              }
            ]
          }
        ],
        "price": {
          "currency": "USD",
          "total": "8514.96",
          "base": "8314.00",
          "fees": [
            {
              "amount": "0.00",
              "type": "SUPPLIER"
            },
            {
              "amount": "0.00",
              "type": "TICKETING"
            },
            {
              "amount": "0.00",
              "type": "FORM_OF_PAYMENT"
            }
          ],
          "grandTotal": "8514.96",
          "billingCurrency": "USD"
        },
        "pricingOptions": {
          "fareType": [
            "PUBLISHED"
          ],
          "includedCheckedBagsOnly": true
        },
        "validatingAirlineCodes": [
          "AF"
        ],
        "travelerPricings": [
          {
            "travelerId": "1",
            "fareOption": "STANDARD",
            "travelerType": "ADULT",
            "price": {
              "currency": "USD",
              "total": "4849.48",
              "base": "4749.00",
              "taxes": [
                {
                  "amount": "31.94",
                  "code": "BR"
                },
                {
                  "amount": "14.68",
                  "code": "CJ"
                },
                {
                  "amount": "5.28",
                  "code": "FR"
                },
                {
                  "amount": "17.38",
                  "code": "JD"
                },
                {
                  "amount": "0.69",
                  "code": "OG"
                },
                {
                  "amount": "3.95",
                  "code": "QV"
                },
                {
                  "amount": "12.12",
                  "code": "QX"
                },
                {
                  "amount": "14.44",
                  "code": "RN"
                }
              ]
            },
            "fareDetailsBySegment": [
              {
                "segmentId": "40",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "C",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "41",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "J",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "42",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "J",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "81",
                "cabin": "ECONOMY",
                "fareBasis": "YFFBR",
                "brandedFare": "FULLFLEX",
                "class": "Y",
                "includedCheckedBags": {
                  "quantity": 1
                }
              },
              {
                "segmentId": "82",
                "cabin": "ECONOMY",
                "fareBasis": "YFFBR",
                "brandedFare": "FULLFLEX",
                "class": "Y",
                "includedCheckedBags": {
                  "quantity": 1
                }
              }
            ]
          },
          {
            "travelerId": "2",
            "fareOption": "STANDARD",
            "travelerType": "CHILD",
            "price": {
              "currency": "USD",
              "total": "3665.48",
              "base": "3565.00",
              "taxes": [
                {
                  "amount": "31.94",
                  "code": "BR"
                },
                {
                  "amount": "14.68",
                  "code": "CJ"
                },
                {
                  "amount": "5.28",
                  "code": "FR"
                },
                {
                  "amount": "17.38",
                  "code": "JD"
                },
                {
                  "amount": "0.69",
                  "code": "OG"
                },
                {
                  "amount": "3.95",
                  "code": "QV"
                },
                {
                  "amount": "12.12",
                  "code": "QX"
                },
                {
                  "amount": "14.44",
                  "code": "RN"
                }
              ]
            },
            "fareDetailsBySegment": [
              {
                "segmentId": "40",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "C",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "41",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "J",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "42",
                "cabin": "BUSINESS",
                "fareBasis": "CFFBR",
                "brandedFare": "BUSINESS",
                "class": "J",
                "includedCheckedBags": {
                  "quantity": 2
                }
              },
              {
                "segmentId": "81",
                "cabin": "ECONOMY",
                "fareBasis": "YFFBR",
                "brandedFare": "FULLFLEX",
                "class": "Y",
                "includedCheckedBags": {
                  "quantity": 1
                }
              },
              {
                "segmentId": "82",
                "cabin": "ECONOMY",
                "fareBasis": "YFFBR",
                "brandedFare": "FULLFLEX",
                "class": "Y",
                "includedCheckedBags": {
                  "quantity": 1
                }
              }
            ]
          }
        ]
      }
    ],
    "travelers": [
      {
        "id": "1",
        "dateOfBirth": "1982-01-16",
        "name": {
          "firstName": "JORGE",
          "lastName": "GONZALES"
        },
        "gender": "MALE",
        "contact": {
          "emailAddress": "jorge.gonzales833@telefonica.es",
          "phones": [
            {
              "deviceType": "MOBILE",
              "countryCallingCode": "34",
              "number": "480080076"
            }
          ]
        },
        "documents": [
          {
            "documentType": "PASSPORT",
            "birthPlace": "Madrid",
            "issuanceLocation": "Madrid",
            "issuanceDate": "2015-04-14",
            "number": "00000000",
            "expiryDate": "2025-04-14",
            "issuanceCountry": "ES",
            "validityCountry": "ES",
            "nationality": "ES",
            "holder": true
          }
        ]
      },
      {
        "id": "2",
        "dateOfBirth": "2012-10-11",
        "gender": "FEMALE",
        "contact": {
          "emailAddress": "jorge.gonzales833@telefonica.es",
          "phones": [
            {
              "deviceType": "MOBILE",
              "countryCallingCode": "34",
              "number": "480080076"
            }
          ]
        },
        "name": {
          "firstName": "ADRIANA",
          "lastName": "GONZALES"
        }
      }
    ],
    "remarks": {
      "general": [
        {
          "subType": "GENERAL_MISCELLANEOUS",
          "text": "ONLINE BOOKING FROM INCREIBLE VIAJES"
        }
      ]
    },
    "ticketingAgreement": {
      "option": "DELAY_TO_CANCEL",
      "delay": "6D"
    },
    "contacts": [
      {
        "addresseeName": {
          "firstName": "PABLO",
          "lastName": "RODRIGUEZ"
        },
        "companyName": "INCREIBLE VIAJES",
        "purpose": "STANDARD",
        "phones": [
          {
            "deviceType": "LANDLINE",
            "countryCallingCode": "34",
            "number": "480080071"
          },
          {
            "deviceType": "MOBILE",
            "countryCallingCode": "33",
            "number": "480080072"
          }
        ],
        "emailAddress": "support@increibleviajes.es",
        "address": {
          "lines": [
            "Calle Prado, 16"
          ],
          "postalCode": "28014",
          "cityName": "Madrid",
          "countryCode": "ES"
        }
      }
    ]
  }
}

Response

Successful Operation

Example response

{
  "data": {
    "type": "flight-order",
    "id": "MlpZVkFMfFdBVFNPTnwyMDE1LTExLTAy",
    "queuingOfficeId": "NCE1A0950",
    "associatedRecords": [
      {
        "reference": "2ZYVAL",
        "creationDateTime": "2018-07-13T20:17:00",
        "originSystemCode": "1A",
        "flightOfferId": "1"
      }
    ],
    "travelers": [
      {
        "id": "1",
        "dateOfBirth": "1982-01-16",
        "name": {
          "firstName": "STEPHANE",
          "lastName": "MARTIN"
        },
        "contact": {
          "phones": [
            {
              "countryCallingCode": "33",
              "number": "487692704"
            }
          ]
        },
        "documents": [
          {
            "documentType": "PASSPORT",
            "number": "012345678",
            "expiryDate": "2009-04-14",
            "issuanceCountry": "GB",
            "nationality": "GB",
            "holder": true
          }
        ]
      },
      {
        "id": "3",
        "dateOfBirth": "2018-03-24",
        "name": {
          "firstName": "JULES",
          "lastName": "MARTIN"
        }
      },
      {
        "id": "2",
        "dateOfBirth": "2007-10-11",
        "name": {
          "firstName": "EMILIE",
          "lastName": "MARTIN"
        }
      }
    ],
    "flightOffers": [
      {
        "id": "1",
        "type": "flight-offer",
        "source": "GDS",
        "itineraries": [
          {
            "duration": "PT2H",
            "segments": [
              {
                "id": "1",
                "duration": "PT2H",
                "aircraft": {
                  "code": "320"
                },
                "numberOfStops": 0,
                "blacklistedInEU": false,
                "carrierCode": "IB",
                "operating": {
                  "carrierCode": "IB"
                },
                "number": "3403",
                "departure": {
                  "at": "2018-09-22T10:15:00",
                  "terminal": "W",
                  "iataCode": "ORY"
                },
                "arrival": {
                  "at": "2018-09-22T12:15:00",
                  "terminal": "4",
                  "iataCode": "MAD"
                },
                "co2Emissions": [
                  {
                    "weight": "100",
                    "weightUnit": "KG",
                    "cabin": "ECONOMY"
                  }
                ]
              }
            ]
          },
          {
            "duration": "PT1H20M",
            "segments": [
              {
                "id": "20",
                "duration": "PT1H20M",
                "aircraft": {
                  "code": "320"
                },
                "numberOfStops": 0,
                "blacklistedInEU": false,
                "carrierCode": "IB",
                "operating": {
                  "carrierCode": "IB"
                },
                "number": "3118",
                "departure": {
                  "at": "2018-09-26T23:05:00",
                  "terminal": "4",
                  "iataCode": "MAD"
                },
                "arrival": {
                  "at": "2018-09-26T23:25:00",
                  "terminal": "1",
                  "iataCode": "LIS"
                },
                "co2Emissions": [
                  {
                    "weight": "100",
                    "weightUnit": "KG",
                    "cabin": "ECONOMY"
                  }
                ]
              }
            ]
          },
          {
            "duration": "PT4H30M",
            "segments": [
              {
                "id": "30",
                "duration": "PT2H",
                "aircraft": {
                  "code": "320"
                },
                "numberOfStops": 0,
                "blacklistedInEU": false,
                "carrierCode": "IB",
                "operating": {
                  "carrierCode": "IB"
                },
                "number": "3109",
                "departure": {
                  "at": "2018-10-04T12:35:00",
                  "terminal": "1",
                  "iataCode": "LIS"
                },
                "arrival": {
                  "at": "2018-10-04T14:55:00",
                  "terminal": "4",
                  "iataCode": "MAD"
                },
                "co2Emissions": [
                  {
                    "weight": "100",
                    "weightUnit": "KG",
                    "cabin": "ECONOMY"
                  }
                ]
              },
              {
                "id": "31",
                "duration": "PT2H30M",
                "aircraft": {
                  "code": "320"
                },
                "numberOfStops": 0,
                "blacklistedInEU": false,
                "carrierCode": "IB",
                "operating": {
                  "carrierCode": "IB"
                },
                "number": "3444",
                "departure": {
                  "at": "2018-10-04T16:05:00",
                  "terminal": "4",
                  "iataCode": "MAD"
                },
                "arrival": {
                  "at": "2018-10-04T18:05:00",
                  "terminal": "W",
                  "iataCode": "ORY"
                },
                "co2Emissions": [
                  {
                    "weight": "100",
                    "weightUnit": "KG",
                    "cabin": "ECONOMY"
                  }
                ]
              }
            ]
          }
        ],
        "price": {
          "grandTotal": "689.21",
          "total": "423.21",
          "base": "242.00",
          "currency": "EUR",
          "billingCurrency": "EUR",
          "fees": [
            {
              "type": "SUPPLIER",
              "amount": "0"
            },
            {
              "type": "FORM_OF_PAYMENT",
              "amount": "6"
            },
            {
              "type": "TICKETING",
              "amount": "0"
            }
          ],
          "additionalServices": [
            {
              "type": "CHECKED_BAGS",
              "amount": "100"
            },
            {
              "type": "SEATS",
              "amount": "166"
            }
          ]
        },
        "pricingOptions": {
          "fareType": [
            "PUBLISHED"
          ],
          "includedCheckedBags": false
        },
        "validatingAirlineCodes": [
          "IB"
        ],
        "travelerPricings": [
          {
            "travelerId": "1",
            "fareOption": "STANDARD",
            "travelerType": "ADULT",
            "price": {
              "currency": "EUR",
              "total": "200.94",
              "base": "126",
              "taxes": [
                {
                  "code": "YQ",
                  "amount": "0.94"
                },
                {
                  "code": "CJ",
                  "amount": "41.67"
                },
                {
                  "code": "FR",
                  "amount": "31.33"
                }
              ]
            },
            "fareDetailsBySegment": [
              {
                "segmentId": "1",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "20",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "30",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "31",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              }
            ]
          },
          {
            "travelerId": "2",
            "fareOption": "STANDARD",
            "travelerType": "CHILD",
            "price": {
              "currency": "EUR",
              "total": "180.94",
              "base": "106",
              "taxes": [
                {
                  "code": "YQ",
                  "amount": "0.94"
                },
                {
                  "code": "CJ",
                  "amount": "41.67"
                },
                {
                  "code": "FR",
                  "amount": "31.33"
                }
              ]
            },
            "fareDetailsBySegment": [
              {
                "segmentId": "1",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                },
                "additionalServices": {
                  "chargeableCheckedBags": {
                    "quantity": 1,
                    "weight": 20
                  },
                  "chargeableSeatNumber": "33D"
                }
              },
              {
                "segmentId": "20",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                },
                "additionalServices": {
                  "chargeableCheckedBags": {
                    "quantity": 1,
                    "weight": 20
                  },
                  "chargeableSeatNumber": "28A"
                }
              },
              {
                "segmentId": "30",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                },
                "additionalServices": {
                  "chargeableCheckedBags": {
                    "quantity": 1,
                    "weight": 20
                  },
                  "chargeableSeatNumber": "12C"
                }
              },
              {
                "segmentId": "31",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                },
                "additionalServices": {
                  "chargeableCheckedBags": {
                    "quantity": 1,
                    "weight": 20
                  },
                  "chargeableSeatNumber": "33D"
                }
              }
            ]
          },
          {
            "travelerId": "3",
            "fareOption": "STANDARD",
            "travelerType": "HELD_INFANT",
            "associatedAdultId": "1",
            "price": {
              "currency": "EUR",
              "total": "41.33",
              "base": "10",
              "taxes": [
                {
                  "code": "FR",
                  "amount": "31.33"
                }
              ]
            },
            "fareDetailsBySegment": [
              {
                "segmentId": "1",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "20",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "30",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              },
              {
                "segmentId": "31",
                "cabin": "ECONOMY",
                "fareBasis": "ANNNNF4K",
                "brandedFare": "LIGHTONE",
                "class": "A",
                "isAllotment": true,
                "allotmentDetails": {
                  "tourName": "tour",
                  "tourReference": "ref"
                },
                "sliceDiceIndicator": "ABCDEF",
                "includedCheckedBags": {
                  "quantity": 0
                }
              }
            ]
          }
        ]
      }
    ],
    "ticketingAggreement": {
      "option": "DELAY_TO_CANCEL",
      "dateTime": "2018-08-21T10:15:00.000"
    },
    "contacts": [
      {
        "companyName": "AMADEUS",
        "purpose": "STANDARD",
        "phones": [
          {
            "deviceType": "FAX",
            "countryCallingCode": "33",
            "number": "480080070"
          },
          {
            "deviceType": "LANDLINE",
            "countryCallingCode": "33",
            "number": "480080070"
          }
        ],
        "emailAddress": "support@mail.com",
        "address": {
          "lines": [
            "485 route du Pin Montard"
          ],
          "postalCode": "06902",
          "cityName": "Sophia Antipolis Cedex",
          "countryCode": "FR"
        }
      }
    ]
  },
  "dictionaries": {
    "locations": {
      "CDG": {
        "cityCode": "PAR",
        "countryCode": "FR"
      },
      "ORY": {
        "cityCode": "PAR",
        "countryCode": "FR"
      },
      "MAD": {
        "cityCode": "MAD",
        "countryCode": "ES"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 7 revisions of this API.