APIs to create and manage events.
Location for an event
A list of booking guideline for the event.
Allowed booking types for the event group
List of custom field responses for the event.
Whether the event bookings will be self served by the traveler or would be arranged by an agent for the traveler.
Allowed traveler types for the event
Policy associated with the event.
Apply travelers policy when it is less restrictive.
curl -i -X POST \
https://apis.spotnana.com/v2/events \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"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"
}
],
"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"
],
"externalId": "qwert123",
"eventCustomFieldResponses": [
{
"customFieldId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"responseItems": [
{
"response": "Leisure travel",
"additionalInput": "20"
}
],
"travelerAccess": "HIDDEN"
}
],
"parentEventId": "56789012",
"companyId": {
"id": "f49d00fe-1eda-4304-ba79-a980f565281d"
},
"bookingStyle": "SELF_SERVE",
"referenceUsers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"travelerTypes": [
"EMPLOYEE"
],
"policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
"travellers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"type": "GENERIC",
"allowTravelersPolicy": "ALLOWED",
"emailPreferences": {
"bucketTypes": [
"BOOKING_CONFIRMATIONS"
],
"isEnabled": false,
"toEmails": [
"example@email.com"
],
"ccEmails": [
"example@email.com"
],
"bccEmails": [
"example@email.com"
]
}
}'
curl -i -X GET \
'https://apis.spotnana.com/v2/events/6926658168?type=GENERIC' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "event": { "id": "string", "name": "string", "type": "GENERIC", "description": "string", "startDateTime": { … }, "endDateTime": { … }, "location": { … }, "group": { … }, "status": "DRAFT", "companyId": { … }, "runningStatus": "UPCOMING", "paymentSources": [ … ], "numTravelers": 1, "customFieldResponses": [ … ], "externalId": "qwert123", "policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b", "parentEventId": "56789012" } }
curl -i -X DELETE \
https://apis.spotnana.com/v2/events/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'