APIs to perform search, checkout and book an air pnr
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 } }
curl -i -X POST \
https://apis.spotnana.com/v3/air/company-transferable-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 } }