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 unused credits for a traveler

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.

Bodyapplication/jsonrequired
travelerInfoAirRequestTravelerInfo (object) or AirRequestTravelerInfo (object)(AirRequestTravelerInfo)required
One of:

Traveler information to get userOrgId.

travelerInfo.​userIdobject(UserId)

User identifier

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"
      }
    }
  }'

Responses

OK

Bodyapplication/json
unusedCreditInfoArray of objects(UnusedCreditInfo)
Response
application/json
{ "unusedCreditInfo": [ {} ] }

Get unused credits for a company

Request

Returns the list of company unused credits which can be used by any employees of the company.

Bodyapplication/jsonrequired
companyIdobject
companyCreditFilterobject(CompanyCreditFilter)

Filter for fetching company credits.

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

Responses

OK

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

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 } }

Loyalty Programs

Operations