Authorization: Bearer ********************
curl --location --request POST '/v1/booking/flight-orders' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"type": "flight-order",
"flightOffers": [
{{flightOfferPriceData}}
],
"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"
}
}
]
}
}'
{
"data": {
"type": "flight-order",
"id": "eJzTd9cPDAgICfYAAAvRAoY%3D",
"queuingOfficeId": "NCE4D31SB",
"associatedRecords": [
{
"reference": "QPPTSH",
"creationDate": "2024-04-03T03:43:00.000",
"originSystemCode": "GDS",
"flightOfferId": "1"
}
],
"flightOffers": [
{
"type": "flight-offer",
"id": "1",
"source": "GDS",
"nonHomogeneous": false,
"lastTicketingDate": "2024-04-03",
"itineraries": [
{
"segments": [
{
"departure": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-17T17:20:00"
},
"arrival": {
"iataCode": "CDG",
"terminal": "2E",
"at": "2024-04-18T06:05:00"
},
"carrierCode": "AF",
"number": "333",
"aircraft": {
"code": "359"
},
"duration": "PT6H45M",
"id": "1",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 556,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
},
{
"departure": {
"iataCode": "CDG",
"terminal": "2F",
"at": "2024-04-18T07:05:00"
},
"arrival": {
"iataCode": "MAD",
"terminal": "2",
"at": "2024-04-18T09:15:00"
},
"carrierCode": "AF",
"number": "1000",
"aircraft": {
"code": "319"
},
"duration": "PT2H10M",
"id": "2",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 105,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
}
]
},
{
"segments": [
{
"departure": {
"iataCode": "MAD",
"terminal": "2",
"at": "2024-05-01T20:15:00"
},
"arrival": {
"iataCode": "CDG",
"terminal": "2F",
"at": "2024-05-01T22:20:00"
},
"carrierCode": "AF",
"number": "1101",
"aircraft": {
"code": "321"
},
"duration": "PT2H5M",
"id": "5",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 105,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
},
{
"departure": {
"iataCode": "CDG",
"terminal": "2E",
"at": "2024-05-02T13:35:00"
},
"arrival": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-05-02T15:10:00"
},
"carrierCode": "AF",
"number": "334",
"aircraft": {
"code": "359"
},
"duration": "PT7H35M",
"id": "6",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 278,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
}
]
}
],
"price": {
"currency": "USD",
"total": "7151.60",
"base": "4410.00",
"fees": [
{
"amount": "0.00",
"type": "TICKETING"
},
{
"amount": "0.00",
"type": "SUPPLIER"
},
{
"amount": "0.00",
"type": "FORM_OF_PAYMENT"
}
],
"grandTotal": "7151.60",
"billingCurrency": "USD"
},
"pricingOptions": {
"fareType": [
"PUBLISHED"
],
"includedCheckedBagsOnly": false
},
"validatingAirlineCodes": [
"AF"
],
"travelerPricings": [
{
"travelerId": "1",
"fareOption": "STANDARD",
"travelerType": "ADULT",
"price": {
"currency": "USD",
"total": "3575.80",
"base": "2205.00",
"taxes": [
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "9.00",
"code": "FR"
},
{
"amount": "15.80",
"code": "JD"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "3.80",
"code": "QV"
},
{
"amount": "48.20",
"code": "QX"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "4.50",
"code": "XF"
},
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "46.00",
"code": "YQ"
},
{
"amount": "1175.00",
"code": "YR"
}
],
"refundableTaxes": "100.90"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "Z",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "2",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "J",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "6",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "R",
"includedCheckedBags": {
"quantity": 1
}
}
]
},
{
"travelerId": "2",
"fareOption": "STANDARD",
"travelerType": "CHILD",
"price": {
"currency": "USD",
"total": "3575.80",
"base": "2205.00",
"taxes": [
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "9.00",
"code": "FR"
},
{
"amount": "15.80",
"code": "JD"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "3.80",
"code": "QV"
},
{
"amount": "48.20",
"code": "QX"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "4.50",
"code": "XF"
},
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "46.00",
"code": "YQ"
},
{
"amount": "1175.00",
"code": "YR"
}
],
"refundableTaxes": "100.90"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "Z",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "2",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "J",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "6",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "R",
"includedCheckedBags": {
"quantity": 1
}
}
]
}
]
}
],
"travelers": [
{
"id": "1",
"dateOfBirth": "1982-01-16",
"gender": "MALE",
"name": {
"firstName": "JORGE",
"lastName": "GONZALES"
},
"documents": [
{
"number": "00000000",
"issuanceDate": "2015-04-14",
"expiryDate": "2025-04-14",
"issuanceCountry": "ES",
"issuanceLocation": "Madrid",
"nationality": "ES",
"birthPlace": "Madrid",
"documentType": "PASSPORT",
"holder": true
}
],
"contact": {
"purpose": "STANDARD",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
],
"emailAddress": "jorge.gonzales833@telefonica.es"
}
},
{
"id": "2",
"dateOfBirth": "2012-10-11",
"gender": "FEMALE",
"name": {
"firstName": "ADRIANA",
"lastName": "GONZALES"
},
"contact": {
"purpose": "STANDARD",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
],
"emailAddress": "jorge.gonzales833@telefonica.es"
}
}
],
"remarks": {
"general": [
{
"subType": "GENERAL_MISCELLANEOUS",
"text": "ONLINE BOOKING FROM INCREIBLE VIAJES"
}
]
},
"ticketingAgreement": {
"option": "DELAY_TO_CANCEL",
"delay": "6D"
},
"automatedProcess": [
{
"code": "IMMEDIATE",
"queue": {
"number": "0",
"category": "0"
},
"officeId": "NCE4D31SB"
}
],
"contacts": [
{
"addresseeName": {
"firstName": "PABLO RODRIGUEZ"
},
"address": {
"lines": [
"Calle Prado, 16"
],
"postalCode": "28014",
"countryCode": "ES",
"cityName": "Madrid"
},
"purpose": "STANDARD",
"phones": [
{
"deviceType": "LANDLINE",
"countryCallingCode": "34",
"number": "480080071"
},
{
"deviceType": "MOBILE",
"countryCallingCode": "33",
"number": "480080072"
}
],
"companyName": "INCREIBLE VIAJES",
"emailAddress": "support@increibleviajes.es"
}
]
},
"dictionaries": {
"locations": {
"MAD": {
"cityCode": "MAD",
"countryCode": "ES"
},
"CDG": {
"cityCode": "PAR",
"countryCode": "FR"
},
"BOS": {
"cityCode": "BOS",
"countryCode": "US"
}
}
}
}