APIs to perform search, checkout and book an air pnr
The searchId returned in the corresponding air search API response.
curl -i -X POST \
https://apis.spotnana.com/v2/air/selected-itinerary \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "ChBjZDg3ZjRjZmRmMTFm",
"itineraryId": "IthBjZDg3ZjRjZmRmMTFm"
}'
OK
The itinerary selected by the user.
Details of the list of flights present in the leg.
The unique ID for this flight in the itinerary.
Wrapper of flight reference to be used in oneOf.
The cabin type for this flight in the associated itinerary
The airline's one-letter code for the associated fare
The availability of seats on this flight
The account code is used to get corporate negotiated price
The CO2 emission details for this flight
The amenities associated with the flight.
Details of passenger(s) information for this leg.
Unique identifier for the traveler in this response
The fare amount for the traveler for a given leg
Total cumulative fare for this leg summed across all passengers
Base fare amount.
The numeric value for the amount of money.
The 3-letter currency code for the money amount (defined using ISO 4217 standard).
The converted currency and amount that has been converted (if a currency conversion has been requested). For example, if the call requests that money be sent in a specified currency (because the frontend requested the backend to send money in the user's preferred currency).
The 3-letter currency code for the converted currency (defined using ISO 4217 standard).
Tax amount.
The numeric value for the amount of money.
The 3-letter currency code for the money amount (defined using ISO 4217 standard).
The converted currency and amount that has been converted (if a currency conversion has been requested). For example, if the call requests that money be sent in a specified currency (because the frontend requested the backend to send money in the user's preferred currency).
The 3-letter currency code for the converted currency (defined using ISO 4217 standard).
Fare category of this leg. It describes the cabin class for this flight.
The brand code assigned by the airline corresponding brandName.
The airline code for the airline which is validating this booking and orchestrating the payment.
Rate or fare type for this leg (for example "public" or "corporate").
Unique identifier for the traveler in this response
Type of passenger
The detailed information about the fare (including tax and merchant fee details).
Total fare applicable to the associated entity.
Details about of the tax amount in totalFare field.
Indicates whether this itinerary will be a single or multi ticket
The public fare attribute in case private fare is applied for any pax
The payment method types applicable to the itinerary.
{ "itinerary": { "itineraryId": "kjdUjak8hX", "legs": [ … ], "travelers": [ … ], "fareInfo": { … }, "ticketType": "SINGLE", "policyInfos": { … }, "posInfo": [ … ], "publicFare": { … }, "allowedFopRules": [ … ], "fareAttributes": { … } } }
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": [ { … } ] }