APIs to perform search, checkout and book an air pnr
API reference
/Air
/- Get transferable unused credits for a company
Get unused credits for a traveler
Get unused credits for a company
Migrate Unused Credits of a traveler to and fro Company Credits
Get transferable unused c...
Air API (v2)
Download OpenAPI description
Languages
Servers
Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/airapi/
Request
Returns a list of unused credits associated with a traveler along with details such as the PNR ID, trip ID, airline details, credit expiry date, and the source of booking (e.g., NDC). Travelers can redeem unused credit for future bookings with the same airline where the credit was earned.
Security
Bearer
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/air/fetch-traveler-unused-credits
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v3/air/fetch-traveler-unused-credits
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.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"
}
}
}'Response
application/json
{ "unusedCreditInfo": [ { … } ] }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-unused-credits/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v3/air/company-unused-credits/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.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"
}
},
"fopLabel": [
"Company Central Card",
"Personal Card"
],
"pcc": "LA5K"
},
"offset": 0
}'Response
application/json
{ "unusedCreditInfos": [ { … } ], "paginationParams": { "offset": 0, "totalRecords": 100 }, "companyFopLabels": [ "Company Central Card", "Corporate Amex" ] }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-transferable-unused-credits/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v3/air/company-transferable-unused-credits/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.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"
}
},
"fopLabel": [
"Company Central Card",
"Personal Card"
],
"pcc": "LA5K"
},
"offset": 0
}'Response
application/json
{ "unusedCreditInfos": [ { … } ], "paginationParams": { "offset": 0, "totalRecords": 100 }, "companyTransferableFopLabels": [ "Personal Visa", "Personal Mastercard" ] }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-credits/migrations
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v3/air/company-credits/migrations
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-credits/migrations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paymentSourceIds": [
"string"
],
"updateCreditUsageTypeTo": "CREDIT_USAGE_TYPE_UNKNOWN"
}'Response
application/json
{ "migrationStatus": [ { … } ] }