Skip to content

Get selected itinerary

Request

Get the selected itinerary for the traveler in the search and checkout flow.

Security
Bearer
Bodyapplication/jsonrequired
searchIdstringrequired

The searchId returned in the corresponding air search API response.

Example:"ChBjZDg3ZjRjZmRmMTFm"
itineraryIdstringrequired

The itineraryId of the itinerary selected by the user in the corresponding air search API response.

Example:"IthBjZDg3ZjRjZmRmMTFm"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/air/selected-itinerary \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "searchId": "ChBjZDg3ZjRjZmRmMTFm",
    "itineraryId": "IthBjZDg3ZjRjZmRmMTFm"
  }'

Responses

OK

Bodyapplication/json
itineraryobject(AirItin)required

The itinerary selected by the user.

searchIdstring

The unique ID for this search response.

metadataobject(AirMetadata)

Metadata associated with the air search response.

paginationParamsobject(PaginationResponseParams)

Pagination parameters for response.

currSelectedItineraryobject(AirItin)

Currently selected itinerary for exchange or modify flows.

unusedCreditsArray of objects(UnusedCreditInfo)

Applicable unused airline credits based on the search.

cheapestOptionsArray of objects(AirItin)

List of cheapest itineraries after applying filters.

waiverApplicabilityTypestring(WaiverApplicabilityType)

Type of waiver applicable to an exchange:

  • WAIVER_APPLICABILITY_UNKNOWN: No waiver is applicable.
  • AIRLINE_DISRUPTION_WAIVER: Airline-issued disruption waiver is applicable.
Enum:"WAIVER_APPLICABILITY_UNKNOWN""AIRLINE_DISRUPTION_WAIVER"
Response
{ "itinerary": { "itineraryId": "kjdUjak8hX", "searchId": "ChBjZDg3ZjRjZmRmMTFmMWFiEhBjZDg3Z", "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": [ … ] }, "searchId": "string", "metadata": { "airlineInfo": [ … ], "applicableAlliances": [ … ], "legBylegPricing": true, "enableFareCategories": [ … ], "isExpressSearch": true, "availableConnectingAirports": [ … ], "flightRestrictions": [ … ], "paymentMetadata": { … }, "logicalFareStatistics": [ … ], "shelfInfo": [ … ], "vendorPrograms": [ … ], "currentItinerary": { … }, "fareCategoryView": "UNKNOWN" }, "paginationParams": { "numResults": 0, "numPages": 0, "currentPageNumber": 0, "currentPageSize": 0 }, "currSelectedItinerary": { "itineraryId": "kjdUjak8hX", "searchId": "ChBjZDg3ZjRjZmRmMTFmMWFiEhBjZDg3Z", "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" }