APIs to manage trips.
- Create a note for agents
Trip API (v2)
Request
Creates a note addressed to the agents assigned for a specific trip. Agent notes are used to communicate trip-related information to agents handling the trip, such as special instructions, updates made on the booking, or any unresolved issues reported by the traveler.
Use this endpoint to:
- Add a note to a trip so the agents working on it will have all the latest information about the trip.
- Use the optional
pnrIdfield in the request body to link a note to a specific PNR within a trip.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/trips/{tripId}/agent-notes
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips/{tripId}/agent-notes
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/trips/6926658168/agent-notes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pnrId": "6789533589",
"note": "An agent task has been created."
}'Request
Retrieves all agent notes associated with a specific trip. Each note in the response includes the message, the sender's basic information, and timestamps.
Use this endpoint to:
- Review the full history of agent notes added to a trip.
- Identify who created each note and when, using the
senderInfo,createdAt, andupdatedAtfields.
Note: The response may contain a pnrId if it was added during the note creation. Otherwise, the pnrId field is omitted in the response.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/trips/{tripId}/agent-notes
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips/{tripId}/agent-notes
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/trips/6926658168/agent-notes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
Array of agent notes.
Note ID.
Basic user information.
Persona of the user
Full name containing first, middle, last (family) names, and suffix.
An image with meta data. Either the data or url property must be supplied to load the image.
Tier of User. Note: In default UI, BASIC is displayed as Standard, and SEAT1A is displayed as VIP.
ISO8601 UTC Date Time
{ "agentNotes": [ { … } ] }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/trips/{tripId}/agent-notes/{noteId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips/{tripId}/agent-notes/{noteId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X DELETE \
https://api-ext-sboxmeta.partners.spotnana.com/v2/trips/6926658168/agent-notes/fc68b68a-ed0a-4aa3-9099-bc7c1211acf1 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'