APIs to create and manage events.
API reference
/Events
/- Set traveler RSVP
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
Publish event
Edit basic details of an event
Update event booking guidelines
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.
Set traveler RSVP
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
bookingGuidelinesArray of AirBookingGuidelineWrapper (object) or HotelBookingGuidelineWrapper (object) or CarBookingGuidelineWrapper (object) or RailBookingGuidelineWrapper (object)(EventBookingGuideline)required
A list of booking guideline for the event.
Allowed booking types for the event group
Items Enum"AIR""HOTEL""CAR""RAIL"
Mappings i.e. access level, travel type information etc.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/{eventId}/edit-booking-guidelines
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/{eventId}/edit-booking-guidelines
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/6926658168/edit-booking-guidelines \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"bookingGuidelines": [
{
"numGuestsAllowed": 1,
"airBookingGuideLine": {
"allowedAirports": [
{
"airportCode": "WRA",
"airportName": "Warder Airport",
"cityName": "Werder",
"countryName": "Ethiopia",
"countryCode": "ET",
"zoneName": "Africa/Addis_Ababa",
"stateCode": "CA"
}
],
"allowedCityCodes": [
"NYC"
],
"arrivalBookingWindow": {
"startDateTime": {
"iso8601": "2017-07-21T17:32"
},
"endDateTime": {
"iso8601": "2017-07-21T17:32"
}
},
"departureBookingWindow": {
"startDateTime": {
"iso8601": "2017-07-21T17:32"
},
"endDateTime": {
"iso8601": "2017-07-21T17:32"
}
},
"allowedFlightGuidelines": [
{
"allowedFlightType": "ROUND_TRIP",
"numberOfLegs": 2
}
]
}
}
],
"allowedBookingTypes": [
"AIR"
],
"allowedPaymentConfig": [
{
"travelType": "AIR",
"paymentConfig": "TRAVELER_DEFAULT"
}
],
"paymentMappings": [
{
"id": "f49d00fe-1eda-4304-ba79-a980f565281d",
"accessTypeAttributes": {
"travelTypeFilter": {
"travelTypes": [
{
"travelType": "AIR",
"isRequired": true,
"allowPostPaidBookings": false,
"metadata": {
"vendors": []
}
}
]
}
}
}
],
"eventType": "GENERIC"
}'Response
application/json
{ "id": "some-id" }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/{eventId}/travelers/{travelerId}/rsvp
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/{eventId}/travelers/{travelerId}/rsvp
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/6926658168/travelers/f49d00fe-1eda-4304-ba79-a980f565281d/rsvp \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "GENERIC",
"eventRsvpState": "ADDED",
"eventRsvpResponse": {
"air": {
"notNeeded": true
},
"hotel": {
"notNeeded": true
},
"car": {
"notNeeded": true
},
"rail": {
"notNeeded": true
}
}
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/events/{eventId}/travelers/{travelerId}/rsvp
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/eventapi/v2/events/{eventId}/travelers/{travelerId}/rsvp
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/events/6926658168/travelers/f49d00fe-1eda-4304-ba79-a980f565281d/rsvp \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "userId": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "eventRsvpState": "ADDED", "eventRsvpResponse": { "air": { … }, "hotel": { … }, "car": { … }, "rail": { … } }, "invitedAt": { "iso8601": "2017-07-21T17:32Z" }, "airBookingStatus": "BOOKED", "railBookingStatus": "BOOKED", "carBookingStatus": "BOOKED", "hotelBookingStatus": "BOOKED" }