APIs to onboard and manage company.
- Read company preference tiers
Company API (v2)
List of preference tiers with respective labels for different booking types.
Different entity types that are allowed for defining preference.
What type of travel booking it is.
List of preference tiers with respective labels.
Different levels of tier.
Text to be used to display given tier.
Short description about the tier level.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/preference-tiers
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/preference-tiers
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/preference-tiers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"preferenceTiersPerBookingType": [
{
"allowedEntityTypes": [
"COMPANY"
],
"bookingType": "AIR",
"preferenceTiers": [
{
"level": "TIER_1",
"label": "string",
"description": "string",
"showLabel": false
}
]
}
]
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/preference-tiers
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/preference-tiers
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/preference-tiers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
List of preference tiers with respective labels for different booking types.
Different entity types that are allowed for defining preference.
What type of travel booking it is.
List of preference tiers with respective labels.
Different levels of tier.
Text to be used to display given tier.
Short description about the tier level.
{ "preferenceTiersPerBookingType": [ { … } ] }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/support-config
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/support-config
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/support-config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-application-id: 4974a66b-7493-4f41-908c-58ba81093947'OK
List of the support email addresses.
Tier of User. Note: In default UI, BASIC is displayed as Standard, and SEAT1A is displayed as VIP. Display names for other tiers are driven by the company tier configuration.
List of the support portal urls.
{ "contactNumbers": [ { … } ], "emailAddresses": [ "support@spotnana.com" ], "freshdeskConfig": { "enabled": true, "hasCredentials": false, "credentials": { … } }, "tier": "SEAT1A", "genesysConfig": { "enabled": true, "dataUrl": "string" }, "portalUrls": [ "www.support.spotnana.com" ], "zendeskConfig": { "enabled": true, "integrationId": "1234567890", "androidIntegrationId": "1234567890", "iosIntegrationId": "1234567890" }, "genesysCloudConfig": { "enabled": true, "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7", "environment": "usa-1", "genesysScriptUrl": "https://test.test.com", "clientId": "1ab2cd3efghijklmnop4qr5s6t" }, "twilioChatConfig": { "enabled": true }, "cognigyChatConfig": { "enabled": true, "scriptUrl": "https://your-cognigy-instance.com/script/abcdef123456", "initWebchatEndpoint": "https://your-cognigy-instance.com/initWebchat", "sessionTimeout": 30, "cssUrl": "https://your-server.com/css/chat.css" } }