Authorization: Bearer ********************
curl --location --request POST '/v1/shopping/flight-offers/pricing' \
--header 'X-HTTP-Method-Override: GET' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"type": "flight-offers-pricing",
"flightOffers": [
{{flightOfferData}}
]
}
}'
{
"data": {
"type": "flight-offers-pricing",
"flightOffers": [
{
"type": "flight-offer",
"id": "1",
"source": "GDS",
"instantTicketingRequired": false,
"nonHomogeneous": false,
"paymentCardRequired": false,
"lastTicketingDate": "2024-03-21",
"itineraries": [
{
"segments": [
{
"departure": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-04T17:00:00"
},
"arrival": {
"iataCode": "MAD",
"terminal": "4S",
"at": "2024-04-05T06:00:00"
},
"carrierCode": "IB",
"number": "6166",
"aircraft": {
"code": "330"
},
"operating": {
"carrierCode": "IB"
},
"duration": "PT7H",
"id": "1",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 594,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
}
]
},
{
"segments": [
{
"departure": {
"iataCode": "MAD",
"terminal": "4S",
"at": "2024-04-18T20:45:00"
},
"arrival": {
"iataCode": "LHR",
"terminal": "5",
"at": "2024-04-18T22:00:00"
},
"carrierCode": "IB",
"number": "7467",
"aircraft": {
"code": "319"
},
"operating": {
"carrierCode": "BA"
},
"duration": "PT2H15M",
"id": "4",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 116,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
},
{
"departure": {
"iataCode": "LHR",
"terminal": "5",
"at": "2024-04-19T17:15:00"
},
"arrival": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-19T19:50:00"
},
"carrierCode": "AY",
"number": "5503",
"aircraft": {
"code": "781"
},
"operating": {
"carrierCode": "BA"
},
"duration": "PT7H35M",
"id": "5",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 282,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
}
]
}
],
"price": {
"currency": "USD",
"total": "6502.20",
"base": "3898.00",
"fees": [
{
"amount": "0.00",
"type": "SUPPLIER"
},
{
"amount": "0.00",
"type": "TICKETING"
},
{
"amount": "0.00",
"type": "FORM_OF_PAYMENT"
}
],
"grandTotal": "6502.20",
"billingCurrency": "USD"
},
"pricingOptions": {
"fareType": [
"PUBLISHED"
],
"includedCheckedBagsOnly": false
},
"validatingAirlineCodes": [
"IB"
],
"travelerPricings": [
{
"travelerId": "1",
"fareOption": "STANDARD",
"travelerType": "ADULT",
"price": {
"currency": "USD",
"total": "3251.10",
"base": "1949.00",
"taxes": [
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "3.90",
"code": "QV"
},
{
"amount": "985.00",
"code": "YQ"
},
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "186.00",
"code": "YR"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "16.00",
"code": "JD"
},
{
"amount": "38.20",
"code": "UB"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "4.50",
"code": "XF"
}
],
"refundableTaxes": "82.20"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "I",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "4",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "J",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "LLX4F0M5",
"brandedFare": "ECLASSIC",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
}
]
},
{
"travelerId": "2",
"fareOption": "STANDARD",
"travelerType": "CHILD",
"price": {
"currency": "USD",
"total": "3251.10",
"base": "1949.00",
"taxes": [
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "3.90",
"code": "QV"
},
{
"amount": "985.00",
"code": "YQ"
},
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "186.00",
"code": "YR"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "16.00",
"code": "JD"
},
{
"amount": "38.20",
"code": "UB"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "4.50",
"code": "XF"
}
],
"refundableTaxes": "82.20"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "I",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "4",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "J",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "LLX4F0M5",
"brandedFare": "ECLASSIC",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
}
]
}
]
}
],
"bookingRequirements": {
"emailAddressRequired": true,
"mobilePhoneNumberRequired": true,
"travelerRequirements": [
{
"travelerId": "1",
"genderRequired": true,
"documentRequired": true,
"dateOfBirthRequired": true,
"redressRequiredIfAny": true,
"residenceRequired": true
},
{
"travelerId": "2",
"genderRequired": true,
"documentRequired": true,
"dateOfBirthRequired": true,
"redressRequiredIfAny": true,
"residenceRequired": true
}
]
}
},
"dictionaries": {
"locations": {
"MAD": {
"cityCode": "MAD",
"countryCode": "ES"
},
"BOS": {
"cityCode": "BOS",
"countryCode": "US"
},
"LHR": {
"cityCode": "LON",
"countryCode": "GB"
}
}
}
}