API reference
/Air
//
Get unused credits for a...
Returns the list of company unused credits which can be used by any employees of the company.
Security
Bearer
- 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 -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": "2023-01-31",
"expiryDateEnd": "2023-12-01"
},
"fopLabel": [
"Company Central Card",
"Personal Card"
],
"pcc": "LA5K",
"pccs": [
"AK5L",
"BE6C"
],
"fopCardAccessType": [
"CARD_ACCESS_CENTRAL"
],
"legalEntityNames": [
"string"
]
},
"offset": 0
}'OK
List of distinct FOP labels for company credits
Example:
[ "Company Central Card", "Corporate Amex" ]
Response
{ "unusedCreditInfos": [ { … } ], "paginationParams": { "offset": 0, "totalRecords": 100 }, "companyFopLabels": [ "Company Central Card", "Corporate Amex" ], "companyPccs": [ "AK5L", "BE6C" ], "companyLegalEntityNames": [ "string" ], "supportedAirlines": [ { … } ] }