Skip to content

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

Air

APIs to perform search, checkout and book an air pnr

Operations

Returns the Air Raw Fare Rules for a Segment or Pnr

Request

Security
Bearer
Bodyapplication/jsonrequired
searchIdstring

The unique ID (identifying the current workflow) returned by the backend in the air search results response (AirSearchResponse.searchId) of the previous leg. If set, the rateOptionId and userId must also be specified.

rateOptionIdstring

The unique ID identifying the selected flights in the previous leg's response.

pnrIdstring

The unique Spotnana PNR ID against which flights are booked.

Example: "1213124111"
userIdstring(uuid)

Unique ID of the user.

Example: "4974a66b-7493-4f41-908c-58ba81093947"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/air/fare-rules/fetch \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "searchId": "string",
    "rateOptionId": "string",
    "pnrId": "1213124111",
    "userId": "4974a66b-7493-4f41-908c-58ba81093947"
  }'

Responses

OK

Bodyapplication/json
legRuleInfosArray of objects(LegRuleInfo)
Response
application/json
{ "legRuleInfos": [ {} ] }

Accept schedule change

Request

Accept a schedule change for a PNR

Security
Bearer
Bodyapplication/jsonrequired
pnrIdstringrequired

The unique ID identifying the PNR to which the schedule change is being accepted.

Example: "2368393981"
tripIdstringrequired

The unique ID identifying the trip to which the schedule change is being accepted.

Example: "9262583933"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/air/accept-change \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "pnrId": "2368393981",
    "tripId": "9262583933"
  }'

Responses

OK

Bodyapplication/json
successbooleanrequired

Indicates whether the schedule change was successfully accepted.

Example: true
Response
application/json
{ "success": true }

Credits

Manage airline credits including company credit pools, credit transfers, and credit redemptions.

Operations

Autocomplete

Operations

Loyalty Programs

Operations