APIs to create and manage events.
A list of booking guideline for the event.
Allowed booking types for the event group
Mappings i.e. access level, travel type information etc.
curl -i -X POST \
https://apis.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"
}
],
"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"
],
"paymentMappings": [
{
"id": "f49d00fe-1eda-4304-ba79-a980f565281d",
"accessTypeAttributes": {
"travelTypeFilter": {
"travelTypes": [
{
"travelType": "AIR",
"isRequired": true,
"allowPostPaidBookings": false,
"metadata": {
"vendors": []
}
}
]
}
}
}
],
"eventType": "GENERIC"
}'
Allowed event rsvp states for a user
curl -i -X POST \
https://apis.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
}
}
}'
curl -i -X GET \
https://apis.spotnana.com/v2/events/6926658168/travelers/f49d00fe-1eda-4304-ba79-a980f565281d/rsvp \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
Allowed event rsvp states for a user
Booking status of the travel.
Booking status of the travel.
Booking status of the travel.
{ "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" }