GET
/v2/flight/detail/{id}Flight detail
One itinerary with price groups, branded fare, baggage and a fair passenger split.
Bearer tokenAuthority: B2C_FLIGHT_DETAILhttps://booking.aerolink.dev
totalFare.total is a booking total and carries the markup once. passengers[].fare.total is a proportional share, so the rows sum to the group total. For a branded fare every price group is returned so the customer can choose; otherwise only the group at pricingIndex.
cURL
bash
curl "https://booking.aerolink.dev/v2/flight/detail/1-1?searchId=9f2c...&pricingIndex=0" \
-H "Authorization: Bearer eyJ..."Path parameters
idstringrequired
flightId from a search row
idstring required | flightId from a search row |
Query parameters
searchIdstringrequired
The search this flight belongs to
pricingIndexnumberoptional
Which price group to select. Default 0. Non-numeric becomes 0.
searchIdstring required | The search this flight belongs to |
pricingIndexnumber optional | Which price group to select. Default 0. Non-numeric becomes 0. |
Response
200
{
"message": "Success",
"data": {
"id": "66d2...",
"flightId": "1-1",
"searchId": "9f2c...",
"totalPrice": { "currencyCode": "BDT", "total": 46000 },
"tripList": [],
"priceGroups": [
{
"offerId": null,
"flatBookingCode": "Y",
"brandInfo": {},
"brandFeatures": [],
"amenities": [],
"typeWiseFareBasicMap": {},
"totalFare": {
"currencyCode": "BDT",
"baseFare": 40000,
"tax": 0,
"ait": 0,
"gross": 40500,
"subTotal": 40000,
"discount": 200,
"serviceCharge": 500,
"total": 46300
},
"passengers": [
{
"passengerType": "ADT",
"passengerNo": 1,
"fareBasisCodeList": ["YOWBD"],
"refundable": true,
"cabinBaggage": {},
"checkinBaggage": {},
"penalties": [],
"fare": { "currencyCode": "BDT", "total": 46300 }
}
]
}
]
}
}Response fields
priceGroups[].offerIdstringBdFare offer id; null for Sabre
priceGroups[].totalFareB2cFareWhole-booking total for this fare option, markup included
priceGroups[].passengers[]arrayPer-passenger breakdown
passengers[].fareB2cFareThis passenger’s share of the marked-up total
priceGroups[].offerIdstring | BdFare offer id; null for Sabre |
priceGroups[].totalFareB2cFare | Whole-booking total for this fare option, markup included |
priceGroups[].passengers[]array | Per-passenger breakdown |
passengers[].fareB2cFare | This passenger’s share of the marked-up total |
Business rules
- Commercial fields are absent by construction: costingPrice, agentPrice, mrpFare, priceDetails.
Errors
400Entity Not Found
searchId query parameter missing
401 / 403UNAUTHORIZED
Missing token or missing B2C_FLIGHT_DETAIL
| HTTP | message | When |
|---|---|---|
| 400 | Entity Not Found | searchId query parameter missing |
| 401 / 403 | UNAUTHORIZED | Missing token or missing B2C_FLIGHT_DETAIL |