APIs to perform search, checkout and book an air pnr
The unique ID (identifying the current workflow) returned by the backend in the air search results response (AirSearchResponse.searchId) of the previous leg. If set, the rateOptionId and userId must also be specified.
curl -i -X POST \
https://apis.spotnana.com/v2/air/fare-rules/fetch \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "string",
"rateOptionId": "string",
"pnrId": "1213124111",
"userId": "4974a66b-7493-4f41-908c-58ba81093947"
}'
{ "legRuleInfos": [ { … } ] }
curl -i -X POST \
https://apis.spotnana.com/v3/air/fetch-traveler-unused-credits \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"travelerInfo": {
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}'
{ "unusedCreditInfo": [ { … } ] }
curl -i -X POST \
https://apis.spotnana.com/v3/air/company-unused-credits/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": {
"id": "edd5b835-8001-430c-98f8-fedeccebe4cf"
},
"companyCreditFilter": {
"supplier": "SABRE",
"selectedAirlines": [
"AA"
],
"expiryDateRange": {
"expiryDateStart": {
"iso8601": "2017-07-21"
},
"expiryDateEnd": {
"iso8601": "2017-07-21"
}
}
},
"offset": 0
}'
{ "unusedCreditInfos": [ { … } ], "paginationParams": { "offset": 0, "totalRecords": 100 } }