- Get company
This endpoint gets a company by ID.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/companies/{companyId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-application-id: 4974a66b-7493-4f41-908c-58ba81093947'OK
True for a Demo company, whose supplier calls all go to emulators. Set at creation and immutable. Omitted on create means false; omitted on update keeps the stored value.
Org type of the company. Read only, ignored on update.
List of email addresses on which all confirmation emails will be cced. This is applicable only for company roles 'ORG'
[ "example@gmail.com" ]
List of email addresses on which all confirmation emails will be bcced. This is applicable only for company roles 'ORG'
[ "example@gmail.com" ]
Redirect URL for the company. It is applicable only for company roles 'PARTNER_TMC'
Default Booking configuration for the TMC. It is applicable only for company roles 'TMC'
Redirect URL for the company for mobile. It is applicable only for company roles 'PARTNER_TMC'
Config for token exchange in case of partner's have their own IDP.
Email client configuration representing the email provider to be used.
Whether the company is a fake company for testing. This is for internal use.
list of individual role mappings between spotnana and partner.
List of 2 letter country codes where business travelers should not be allowed to add loyalty info.
[ "US", "IN" ]
Whether to allow user to get auth config based on email domain
The config is used to calculate carbon cost of CO2 emission.
Company-specified custom attributes.
Boolean to show if company has self sign up enabled.
{ "id": { "id": "f49d00fe-1eda-4304-ba79-a980f565281d" }, "name": "Spotnana", "emailDomains": [ "spotnana.com" ], "billingCurrency": "INR", "phoneNumbers": [ { … } ], "emergencyContactInfos": [ { … } ], "isSelfSignUpEnabled": true, "announcements": [ { … } ], "companyLogo": { "data": "6935813e12584abda0e43d71cd2ea260", "dimensions": { … }, "url": "https://static.wixstatic.com/media/73f2e2_6935813e12584abda0e43d71cd2ea260~mv2.png/v1/fill/w_630,h_94,al_c,q_85,usm_0.66_1.00_0.01/Spotnana%403x.webp", "metadata": { … } }, "contractedBy": { "id": "f49d00fe-1eda-4304-ba79-a980f565281d" }, "isActive": true, "companyRoles": [ "ORG" ], "isDemo": false, "orgType": "CORPORATE", "supportConfig": { "contactNumbers": [ … ], "emailAddresses": [ … ], "freshdeskConfig": { … }, "tier": "SEAT1A", "genesysConfig": { … }, "portalUrls": [ … ], "zendeskConfig": { … }, "genesysCloudConfig": { … }, "twilioChatConfig": { … }, "cognigyChatConfig": { … } }, "ccEmailAddresses": [ "example@gmail.com" ], "bccEmailAddresses": [ "example@gmail.com" ], "connectors": [ { … } ], "postalAddress": { "addressLines": [ … ], "administrativeArea": "CA", "administrativeAreaName": "California", "description": "San Francisco Home", "isDefault": true, "languageCode": "en", "locality": "San Francisco", "locationCode": "LAX", "organization": "Spotnana", "postalCode": "94130", "continentCode": "AF", "recipients": [ … ], "regionCode": "US", "regionName": "America", "revision": 1, "sortingCode": "Jamaica", "sublocality": "string", "timezone": "America/Los_Angeles", "coordinates": { … } }, "redirectUrl": "string", "rewardsProgram": { "allowedUserRoles": [ … ], "conversionRate": { … }, "redeemablePaymentMethods": [ … ], "backingCurrency": [ … ] }, "tmcDefaultConfiguration": { "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b", "countryWiseBookingTmcs": [ … ] }, "expensePartnerConfig": { "partner": "EXPENSIFY", "emailConfig": { … }, "travelType": [ … ], "isExpensePartnerEnabled": true, "reportCustomFields": true, "personalCardExpenseOwner": { … }, "centralCardExpenseOwner": { … }, "partnerReferralId": "1234hgd", "itineraryConfig": { … } }, "mobileRedirectUrl": "string", "applicableCustomFieldTypes": [ "QUESTION" ], "oauthPartnerConfig": { "name": "string", "userDetailEndpoint": { … }, "tokenVerifier": { … }, "doPersistToken": true }, "privacySettings": { "allowCompanyAdminAccessToRelativesInfo": true }, "designationTree": { "name": "string", "children": [ … ] }, "externalId": "MyCompanyId", "emailClientConfig": { "client": "SENDGRID", "credentials": { … }, "defaultSenderAddress": "test@somedomain.com", "defaultSenderName": "Test Sender" }, "isFake": false, "tmcPartnerRoleMappings": [ { … } ], "supportConfigs": { "length": 0, "elements": [ … ] }, "loyaltyBlockedCountries": [ "US", "IN" ], "allowDomainBasedAuthConfig": false, "carbonCostConfig": { "price": { … }, "weight": { … } }, "defaultBookingTmcId": { "id": "f49d00fe-1eda-4304-ba79-a980f565281d" }, "bookingTmcId": { "id": "f49d00fe-1eda-4304-ba79-a980f565281d" }, "companySpecifiedAttributes": [ { … } ] }