API reference
/Air
/- Modify Search
Get air itineraries
Get flight attributes
Get selected itinerary
Get Airlines Information (Air)
Get flight checkout details
Get flight seat map
Initiate booking
Validate air itinerary
Validate air itinerary (interim)
Create air pnr
Cancel Air Pnr
Get PNR exchange details
Modify Book
Edit PNR
Get Special Service Requests (SSR)
Get Special Service Requests (SSR) for a Category
Returns the Air Raw Fare Rules for a Segment or Pnr
Accept schedule change
Modify Search
Get Air Itineraries available for exchange/modification/deletion against current pnr.
Security
Bearer
The list of all legs (to keep as same, to remove and to be added). In the example shared, if there is a trip from SFO to ANC with one Leg containing a direct flight from mentioned source to destination, and traveller needs to add a visit to Seattle in between changing his trip to now contain two legs SFO->SEA and SEA->ANC, then we would remove the first existing leg(indexed 0) SFO->ANC and add two new legs SFO->SEA and SEA->ANC.
Example:
[ { "index": 0, "remove": true }, { "source": "SFO", "destination": "SEA", "date": "2022-01-21T17:00" }, { "source": "SEA", "destination": "ANC", "date": "2022-01-22T17:00" } ]
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/air/modify-search
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v2/air/modify-search
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/air/modify-search \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pnrId": "1213124111",
"legs": [
{
"index": 0,
"remove": true
},
{
"origin": "SFO",
"destination": "SEA",
"date": "2022-01-21T17:00"
},
{
"origin": "SEA",
"destination": "ANC",
"date": "2022-01-22T17:00"
}
]
}'OK
The unique ID for this search response. This value must be passed on in the subsequent booking API calls.
Example:"ChBjZDg3ZjRjZmRmMTFmMWFiEhBjZDg3Z"
Applicable unused airline credits based on the search.
Response
{ "searchId": "ChBjZDg3ZjRjZmRmMTFmMWFiEhBjZDg3Z", "itineraryDetails": { "itineraries": [ … ], "flightData": [ … ] }, "paginationParams": { "numResults": 0, "numPages": 0, "currentPageNumber": 0, "currentPageSize": 0 }, "metadata": { "airlineInfo": [ … ], "applicableAlliances": [ … ], "legBylegPricing": true, "enableFareCategories": [ … ], "isExpressSearch": true, "availableConnectingAirports": [ … ], "flightRestrictions": [ … ], "paymentMetadata": { … }, "logicalFareStatistics": [ … ], "shelfInfo": [ … ], "vendorPrograms": [ … ], "currentItinerary": { … }, "fareCategoryView": "UNKNOWN" }, "currSelectedItinerary": { "itineraryId": "kjdUjak8hX", "legs": [ … ], "travelers": [ … ], "fareInfo": { … }, "ticketType": "SINGLE", "policyInfos": { … }, "posInfo": [ … ], "publicFare": { … }, "allowedFopRules": [ … ], "fareAttributes": { … }, "additionalTotalFares": [ … ], "changeFee": { … }, "hasApplicableCredits": true, "applicableCreditIndices": [ … ], "showRawFareRules": true, "cloneInfo": { … }, "airline": "string", "isUnselectable": true, "inPolicyAmount": { … }, "checkoutApprovalInfo": { … }, "allowedFop": [ … ] }, "unusedCredits": [ { … } ], "cheapestOptions": [ { … } ], "waiverApplicabilityType": "WAIVER_APPLICABILITY_UNKNOWN" }