APIs to manage trips.
API reference
/Trip
/- Update trip
Create trip
Get trip details
Delete trip
Update trip details for trip Id
List trip summaries for a user
List trip summaries for a company
List trip summaries for travelers managed by an arranger
Get trip partner info
Create PNR
Get PNR
Update PNR
Add Remark
Finalize the given pnr.
Suspend the given pnr.
Cancel PNR
Get cancellation details
Download PNR invoice
Process the PNR approval
Get PNR by external Id
Find Pnr details like BookingId and TripId
Get trip
List trips
Update trip
Trip API (v2)
Download OpenAPI description
Languages
Servers
Staging URL
https://apis.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/tripapi/
- Staging URLhttps://apis.spotnana.com/v2/trips
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://apis.spotnana.com/v2/trips \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripName": "string",
"tripDescription": "string",
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"registrarId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}'Response
application/json
{ "id": "some-id" }
- Staging URLhttps://apis.spotnana.com/v2/trips/{tripId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips/{tripId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://apis.spotnana.com/v2/trips/2398199412 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripId": "6926658168",
"tripName": "JFK SFO Trip",
"tripDescription": "JFK SFO Business Trip"
}'- Staging URLhttps://apis.spotnana.com/v3/trips/{tripId}/detail
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v3/trips/{tripId}/detail
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
'https://apis.spotnana.com/v3/trips/6926658168/detail?refreshType=REFRESH_TYPE_BLOCKING' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "basicTripInfo": { "tripId": "6926658168", "tripName": "JFK SFO Trip", "tripDescription": "JFK SFO Business Trip", "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5", "startDate": { … }, "endDate": { … }, "userId": { … }, "registrarUserId": { … }, "tripMetadata": { … }, "tripDisabledInfo": { … } }, "pnrs": [ { … } ], "pendingShellPnrs": [ { … } ], "pendingManualFormPnrs": [ { … } ], "tripStatus": "CONFIRMED", "tripBookingStatus": "PENDING_STATUS", "eventSummary": { "id": "12345", "type": "GENERIC", "name": "My event", "description": "This is an event description", "startDateTime": { … }, "endDateTime": { … }, "location": { … }, "contacts": [ … ], "documents": [ … ], "bookingGuidelines": [ … ], "allowedBookingTypes": [ … ], "eventUserRsvp": { … }, "contactInfoList": [ … ], "companyId": { … }, "runningStatus": "UPCOMING", "status": "DRAFT", "isRemovedParticipant": true, "inviteEmailConfig": { … } }, "simplePnrs": [ { … } ], "additionalInfo": { "vpayBillBack": "B" }, "tripPaymentInfo": { "totalFare": { … }, "totalFareAmount": { … }, "serviceFeeFareAmount": { … } } }