Air API (v2)

Download OpenAPI description
Languages
Servers
Staging URL
https://apis.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/airapi/

Air

APIs to perform search, checkout and book an air pnr

Operations

Get transferable unused credits for a company

Request

Returns the list of transferable company unused credits which can be used by any employees of the company. The unused credits can be transferred to another traveler.

Bodyapplication/jsonrequired
companyIdobjectrequired
companyId.​idstring(uuid)required
Example: "edd5b835-8001-430c-98f8-fedeccebe4cf"
companyCreditFilterobject(CompanyCreditFilter)

Filter for fetching company credits.

offsetinteger>= 0
Default 0
Example: 0
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
  }'

Responses

OK

Bodyapplication/json
unusedCreditInfosArray of objects(UnusedCreditInfo)
paginationParamsobject
Response
application/json
{ "unusedCreditInfos": [ {} ], "paginationParams": { "offset": 0, "totalRecords": 100 } }

Migrate Unused Credits of a traveler to and fro Company Credits

Request

This API will be migrate unused credits from individual credits to company credits and vice versa.

Bodyapplication/jsonrequired
paymentSourceIdsArray of stringsrequired
updateCreditUsageTypeTostring(CreditUsageType)required

The type of credit usage to be updated to. This can be either COMPANY or PERSONAL. If passed Company, it means you are trying to update from personal to Company

Enum"CREDIT_USAGE_TYPE_UNKNOWN""COMPANY""PERSONAL"
curl -i -X POST \
  https://apis.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"
  }'

Responses

OK

Bodyapplication/json
migrationStatusArray of objects(MigrationResponseInfo)
Response
application/json
{ "migrationStatus": [ {} ] }

Loyalty Programs

Operations