APIs to create and manage event templates.
Template API (v2)
Allowed booking types for the event template
A list of booking guideline for the event.
List of custom field responses for an event.
Mappings i.e. access level, travel type information etc.
Company id
Allowed traveler types for the event
Policy associated with the event.
Whether the event bookings will be self served by the traveler or would be arranged by an agent for the traveler.
Apply travelers policy when it is less restrictive.
Email communication preferences based on bucket types.
Allow travelers to rsvp for the event
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string",
"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
}
},
"allowedBookingTypes": [
"AIR"
],
"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
}
]
}
}
],
"customFieldResponses": [
{
"customFieldId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"responseItems": [
{
"response": "Leisure travel",
"additionalInput": "20"
}
],
"travelerAccess": "HIDDEN"
}
],
"customFieldV3Responses": [
{
"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"
}
]
}
]
}
],
"paymentMappings": [
{
"id": "f49d00fe-1eda-4304-ba79-a980f565281d",
"accessTypeAttributes": {
"travelTypeFilter": {
"travelTypes": [
{
"travelType": "AIR",
"isRequired": true,
"allowPostPaidBookings": false,
"metadata": {
"vendors": []
}
}
]
}
}
}
],
"companyId": {
"id": "f49d00fe-1eda-4304-ba79-a980f565281d"
},
"internalNotes": "Use travelers default as payment method.",
"referenceUsers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"travelerTypes": [
"EMPLOYEE"
],
"policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
"bookingStyle": "SELF_SERVE",
"externalId": "qwert123",
"allowTravelersPolicy": "ALLOWED",
"emailPreferences": {
"bucketTypes": [
"BOOKING_CONFIRMATIONS"
],
"isEnabled": false,
"toEmails": [
"example@email.com"
],
"ccEmails": [
"example@email.com"
],
"bccEmails": [
"example@email.com"
]
},
"allowTravelersToRsvp": "ALLOWED",
"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"
]
}
]
},
"inviteEmailConfig": {
"emailExcludeCoordinatorInfo": true
}
}'{ "id": "some-id" }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/{templateId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/{templateId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "eventTemplate": { "id": "string", "name": "string", "description": "string", "location": { … }, "paymentSources": [ … ], "companyId": { … }, "customFieldResponses": [ … ], "customFieldV3Responses": [ … ], "group": { … }, "externalId": "qwert123", "policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b", "status": "DRAFT" } }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/{templateId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/{templateId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Allowed traveler types for the event
Whether the event bookings will be self served by the traveler or would be arranged by an agent for the traveler.
Policy associated with the event.
Apply travelers policy when it is less restrictive.
Email communication preferences based on bucket types.
Allow travelers to rsvp for the event
List of custom field responses for an event.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/{templateId}/edit-basic-info
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/{templateId}/edit-basic-info
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/6926658168/edit-basic-info \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string",
"internalNotes": "string",
"referenceUsers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"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
}
},
"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",
"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"
]
}
]
},
"eventCustomFieldResponses": [
{
"customFieldId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"responseItems": [
{
"response": "Leisure travel",
"additionalInput": "20"
}
],
"travelerAccess": "HIDDEN"
}
],
"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"
}
]
}
]
}
],
"inviteEmailConfig": {
"emailExcludeCoordinatorInfo": true
}
}'A list of booking guideline for the event.
Allowed booking types for the event template
Allowed payment configuration for the event template
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/{templateId}/edit-booking-guidelines
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/{templateId}/edit-booking-guidelines
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/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": []
}
}
]
}
}
}
]
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/{templateId}/custom-field-responses
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/{templateId}/custom-field-responses
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/6926658168/custom-field-responses \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"customFieldResponses": [
{
"customFieldId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"responseItems": [
{
"response": "Leisure travel",
"additionalInput": "20"
}
],
"travelerAccess": "HIDDEN"
}
],
"customFieldV3Responses": [
{
"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"
}
]
}
]
}
]
}'List events filters
Indicates from where in the list of events the server should start.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/list
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filters": [
{
"companyFilter": {
"companyId": {
"id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}
}
],
"offset": 2,
"limit": 2,
"sortOptions": [
{
"sortField": "EVENT_NAME",
"sortOrder": "DESC"
}
]
}'{ "eventTemplates": [ { … } ], "paginationParams": { "totalNumResults": 0 } }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/read-by-external-id
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/templateapi/v2/event-templates/read-by-external-id
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-ext-sboxmeta.partners.spotnana.com/v2/event-templates/read-by-external-id?externalId=6926658168&companyId=f49d00fe-1eda-4304-ba79-a980f565281d' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "eventTemplate": { "id": "string", "name": "string", "description": "string", "location": { … }, "paymentSources": [ … ], "companyId": { … }, "customFieldResponses": [ … ], "customFieldV3Responses": [ … ], "group": { … }, "externalId": "qwert123", "policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b", "status": "DRAFT" } }