APIs to perform search, checkout and book an air pnr
curl -i -X GET \
'https://apis.spotnana.com/v2/air/airlines-info?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Search id returned in the corresponding air search API response.
curl -i -X POST \
https://apis.spotnana.com/v2/air/flight-checkout \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "ChBjZDg3ZjRjZmRmMTFm",
"itineraryId": "IthBjZDg3ZjRjZmRmMTFm"
}'
{ "checkoutResponseId": "ChBjZDg3ZjRjZmRmMTFmMWFiEhBjZDg3Z", "baggageInfo": { "baggageSelectionGroups": [ … ] }, "ancillaries": [ { … } ], "mandatoryCheckoutParams": [ { … } ], "airlineCardFees": [ { … } ] }
Information about the travelers on the itinerary.
Type of passenger
Age of the traveler. Only required if traveler type is Child.
curl -i -X POST \
https://apis.spotnana.com/v2/air/seat-map \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"itinerary": {
"airItineraryId": {
"searchId": "Xjdks78X",
"itineraryId": "ijdks78X"
}
},
"travelerInfos": [
{
"travelerType": "ADULT",
"travelerAge": {
"numYears": 22
},
"travelerInfo": {
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
},
"loyaltyInfos": [
{
"flightId": "flight_0",
"loyaltyInfos": [
{
"appliedTo": [
null
],
"id": "firstId",
"issuedBy": "firstIssuedBy",
"type": "AIR"
}
]
}
]
}
],
"indexes": [
{
"legIndex": 0,
"flightIndex": [
0
]
}
]
}'
{ "seatMapResponseId": "seat1234", "travelerSeatMaps": [ { … } ], "seatMaps": [ { … } ] }