Trip API (v2)

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

Trips

APIs to manage trips and PNRs.

Operations

Get cancellation details

Request

This endpoint gets cancellation details for a given trip ID and PNR ID.

Path
tripIdstringrequired

Trip ID.

Example: 1234567890
pnrIdstringrequired

PNR ID.

Example: 6926658168
curl -i -X GET \
  https://apis.spotnana.com/v2/trips/1234567890/pnrs/6926658168/cancellation-details \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
pnrIdstringrequired

PNR ID for the booking.

Example: "1234567890"
tripIdstringrequired

Trip ID for the booking.

Example: "2345678901"
cancellationDetailsCancellationDetails (object) or CancellationDetails (object)(CancellationDetails)
One of:

Cancellation details for this booking.

Response
application/json
{ "pnrId": "1234567890", "tripId": "2345678901", "cancellationDetails": { "air": {} } }

Get PNR by external Id

Request

This endpoint gets PNR Id and Trip Id for a given external Id.

Query
externalIdstringrequired

External ID

Example: externalId=external-pnr-id
curl -i -X GET \
  'https://apis.spotnana.com/v2/pnrs?externalId=external-pnr-id' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
pnrIdstringrequired

Spotnana PNR Id mapped with external Id

Example: "1234567890"
tripIdstringrequired

Spotnana trip Id mapped with external Id

Example: "1234567890"
Response
application/json
{ "pnrId": "1234567890", "tripId": "1234567890" }

Find Pnr details like BookingId and TripId

Request

This API gets Pnr details for a given Source Pnr/ Ticket Number/ Vendor Confirmation.

Query
searchTextstringrequired

The Source Pnr or Ticket Number or Vendor Confirmation to be searched

Example: searchText=MDIB5C
inputTypestringrequired

The type of Search text,i.e, SOURCE_PNR or TICKET_NUMBER or VENDOR_CONFIRMATION

Enum"SOURCE_PNR""TICKET_NUMBER""VENDOR_CONFIRMATION"
Example: inputType=SOURCE_PNR
curl -i -X GET \
  'https://apis.spotnana.com/v2/pnrs/search?inputType=SOURCE_PNR&searchText=MDIB5C' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
pnrIdstringrequired

Spotnana Booking Id mapped with Source PNR or Ticket Number or Vendor Confirmation

Example: "1234567890"
tripIdstringrequired

Trip Id associated with the booking

Example: "1234567890"
Response
application/json
{ "pnrId": "1234567890", "tripId": "1234567890" }

Invoicing

Operations

Approval

Operations