APIs to create and manage events.
API reference
/Events
/- Publish event
Create event
Get event
Delete a draft event
Get event by external ID
Add travelers to an event
Remove travelers from an event
List events
Edit basic details of an event
Update event booking guidelines
Set traveler RSVP
Get traveler RSVP
Send invite
Send a test invite
Get event summaries
Get allowed payment sources
Cancel event
Get travelers list
Update event custom field responses
Bulk publish events
Bulk edit/modify events.
Bulk delete draft events
Bulk cancel events
Get current details of an async event job.
Publish event
Event 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/eventapi/
Bodyapplication/json
Type of events
Enum"UPCOMING""PAST_OR_COMPLETED""CANCELLED_EVENT"
Example: "UPCOMING"
filtersArray of EventUserFilterWrapper (object) or EventStatusFilterWrapper (object) or EventNameFilterWrapper (object) or EventDateRangeFilterWrapper (object) or EventCompanyFilterWrapper (object) or EventParentFilterWrapper (object) or EventTypeFilterWrapper (object) or EventIdFilterWrapper (object) or EventDetachedFilterWrapper (object)(EventFilter)
List events filters
travelerFiltersArray of TravelerSearchFilter (object) or InvitationStatusFilter (object) or AirBookingStatusFilter (object) or RailBookingStatusFilter (object) or CarBookingStatusFilter (object) or HotelBookingStatusFilter (object)(EventTravelerFilter)
Filters for event travelers
Indicates from where in the list of events the server should start.
Default 0
Example: 2
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"listEventType": "UPCOMING",
"filters": [
{
"userFilter": {
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}
],
"travelerFilters": [
{
"type": "string",
"searchTerm": "name"
}
],
"listByTravelerEvents": true,
"offset": 2,
"limit": 2,
"sortOptions": [
{
"sortField": "START_DATE",
"sortOrder": "DESC"
}
]
}'Response
application/json
{ "events": [ { … } ], "paginationParams": { "totalNumResults": 0 } }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/{eventId}/publish
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/{eventId}/publish
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/6926658168/publish \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "some-id" }
Bodyapplication/json
Allowed traveler types for the event
Items Enum"UNKNOWN_PERSONA""EMPLOYEE""GUEST""PERSONAL""RELATIVE""ADHOC"
Example: ["EMPLOYEE"]
Policy associated with the event.
Example: "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b"
List of custom field IDs that were inherited from parent
Example: ["f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b"]
List of custom field responses for an event.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/{eventId}/edit-basic-info
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/{eventId}/edit-basic-info
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/6926658168/edit-basic-info \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"type": "GENERIC",
"description": "string",
"documents": [
{
"url": "https://s3.amazonaws.com/bucket-name/folder-name/file-name",
"documentId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"documentMetadata": {
"documentType": "VISA",
"entityType": "PNR",
"entityId": "123124",
"entityMetadata": {
"pnrMetadata": {
"flightMetadata": {
"flightId": "CgNERU4SA1NGTxoKNTQ1NzI5ODcxMQ"
}
},
"invoiceMetadata": {
"invoiceNumber": "SPOT-0001",
"invoiceType": "FARE_INVOICE"
},
"travelType": "AIR"
},
"name": "BoardingPass.pdf"
}
}
],
"startDateTime": {
"iso8601": "2017-07-21T17:32"
},
"endDateTime": {
"iso8601": "2017-07-21T17:32"
},
"location": {
"address": {
"addressLines": [
"Golden Gate Bridge"
],
"administrativeArea": "CA",
"administrativeAreaName": "California",
"description": "San Francisco Home",
"isDefault": true,
"languageCode": "en",
"locality": "San Francisco",
"locationCode": "LAX",
"organization": "Spotnana",
"postalCode": "94130",
"continentCode": "AF",
"recipients": [
"string"
],
"regionCode": "US",
"regionName": "America",
"revision": 1,
"sortingCode": "Jamaica",
"sublocality": "string",
"timezone": "America/Los_Angeles",
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"contacts": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"referenceUsers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"travelerTypes": [
"EMPLOYEE"
],
"bookingStyle": "SELF_SERVE",
"policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
"allowTravelersPolicy": "ALLOWED",
"emailPreferences": {
"bucketTypes": [
"BOOKING_CONFIRMATIONS"
],
"isEnabled": false,
"toEmails": [
"example@email.com"
],
"ccEmails": [
"example@email.com"
],
"bccEmails": [
"example@email.com"
]
},
"allowTravelersToRsvp": "ALLOWED",
"internalNotes": "Use travelers default as payment method.",
"tripOverrides": {
"legalEntity": {
"behavior": "OVERRIDE_ALLOWED",
"legalEntityRef": {
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3",
"name": "Name"
}
},
"costCenter": {
"behavior": "OVERRIDE_ALLOWED",
"costCenterRef": {
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3",
"name": "Name"
}
},
"department": {
"behavior": "OVERRIDE_ALLOWED",
"departmentRef": {
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3",
"name": "Name"
}
},
"userAttributes": [
{
"behavior": "OVERRIDE_ALLOWED",
"attribute": {
"fixedColumnName": "contingentType",
"value": "FSTV"
}
}
],
"rateCodeOverrides": [
{
"behavior": "OVERRIDE_ALLOWED",
"supplier": "SABRE",
"travelType": "AIR",
"rateCodeIds": [
"f49d00fe-1eda-4304-ba79-a980f565281d"
]
}
]
},
"inheritedCustomFieldIds": [
"f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b"
],
"eventCustomFieldV3Responses": [
{
"fieldId": "84922011-b03d-4966-bc95-c5b49bc2e342",
"fieldName": "string",
"armId": "0fd508db-63ff-4444-bfb1-b89c43061433",
"readOnly": true,
"hidden": true,
"selectedOptions": [
{
"name": "string",
"description": "string",
"additionalUserInput": "string",
"additionalInfos": [
"string"
],
"additionalInfoConfigs": [
{
"type": "VARIABLE",
"name": "LLF"
}
]
}
]
}
],
"eventCustomFieldResponses": [
{
"customFieldId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"responseItems": [
{
"response": "Leisure travel",
"additionalInput": "20"
}
],
"travelerAccess": "HIDDEN"
}
],
"inviteEmailConfig": {
"emailExcludeCoordinatorInfo": true
}
}'Response
application/json
{ "id": "some-id" }