APIs to onboard and manage company.
API reference
/Company
/- Upload company vendor preferences csv file
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
Store tier levels with labels
Read company preference tiers
Upload company vendor pre...
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
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}/color-config
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/color-config
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
'https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/color-config?companyRole=TMC' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "profileColors": [ { … } ] }
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
}
]
}
]
}'