APIs to onboard and manage company.
API reference
/Company
/- Store tier levels with labels
Create company
List companies
Get company
Update company
Delete company
Get company features
Update Company Features
Get company travel content config
Update company travel content config
Delete company travel content config
Updates white label config
Get white label config
Delete white label config
Updates company managers config
Get company managers config
Delete company managers config
Updates Color config
Get color config
Upload company vendor preferences csv file
Read company preference tiers
Store tier levels with la...
Company 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/companyapi
Bodymultipart/form-data
Types of vendors supported for company preferences.
Enum"CAR""HOTEL""HOTEL_CHAIN""AIRLINE""HOTEL_BRAND"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/vendor-preferences
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/vendor-preferences
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/vendor-preferences \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F vendorType=CAR \
-F file=stringBodyapplication/jsonrequired
List of preference tiers with respective labels for different booking types.
preferenceTiersPerBookingType[].allowedEntityTypesArray of strings(PreferenceEntityType)non-emptyrequired
Different entity types that are allowed for defining preference.
Items Enum"COMPANY""LEGAL_ENTITY""COUNTRY"
What type of travel booking it is.
Enum"AIR""HOTEL""CAR""RAIL""LIMO"
List of preference tiers with respective labels.
Different levels of tier.
Enum"TIER_1""TIER_2""TIER_3""TIER_4""TIER_5""TIER_6"
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.
preferenceTiersPerBookingType[].allowedEntityTypesArray of strings(PreferenceEntityType)non-emptyrequired
Different entity types that are allowed for defining preference.
Items Enum"COMPANY""LEGAL_ENTITY""COUNTRY"
What type of travel booking it is.
Enum"AIR""HOTEL""CAR""RAIL""LIMO"
List of preference tiers with respective labels.
Different levels of tier.
Enum"TIER_1""TIER_2""TIER_3""TIER_4""TIER_5""TIER_6"
Text to be used to display given tier.
Short description about the tier level.
Response
application/json
{ "preferenceTiersPerBookingType": [ { … } ] }