Download OpenAPI specification:Download
This endpoint creates a company. This is allowed only by TMC_ADMIN and above roles.
Created
Bad request
Unauthorized
Forbidden
{- "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "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
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "supportConfigs": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}
], - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "postalAddress": {
- "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
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string"
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "externalId": "company-external-id",
- "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists companies. If externalId is provided in query param, only the company having the specified external ID is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a company by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "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
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "isActive": true,
- "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "connectors": [
- {
- "connectorType": "HR_FEED_CONNECTOR",
- "connectorId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}
], - "postalAddress": {
- "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
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string"
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "designationTree": {
- "name": "string",
- "children": [
- { }
]
}, - "externalId": "MyCompanyId",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "supportConfigs": {
- "length": 0,
- "elements": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}
]
}, - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
This endpoint updates a company by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "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
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "isActive": true,
- "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "connectors": [
- {
- "connectorType": "HR_FEED_CONNECTOR",
- "connectorId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}
], - "postalAddress": {
- "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
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string"
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "designationTree": {
- "name": "string",
- "children": [
- { }
]
}, - "externalId": "MyCompanyId",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "supportConfigs": {
- "length": 0,
- "elements": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "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",
}, - "twilioChatConfig": {
- "enabled": true
}
}
]
}, - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a company by ID.
Deleted Successfully
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "length": 1,
- "features": [
- {
- "name": "ADMIN_VIRTUAL_CARD",
- "enabled": true,
- "valueType": "BOOL",
- "value": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "featuresToUpdate": [
- {
- "name": "ADMIN_VIRTUAL_CARD",
- "value": "string"
}
], - "featuresToDelete": [
- "ADMIN_VIRTUAL_CARD"
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "airConfig": {
- "fareCategoryFilter": [
- {
- "priority": 1,
- "origin": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "destination": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "fareCategoryOption": [
- {
- "fareCategory": {
- "ngsCategory": "UNKNOWN_NGS_CATEGORY",
- "cabinViewCategory": "UNKNOWN_CABIN_CATEGORY"
}, - "disabled": true
}
]
}
]
}
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "airConfig": {
- "fareCategoryFilter": [
- {
- "priority": 1,
- "origin": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "destination": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "fareCategoryOption": [
- {
- "fareCategory": {
- "ngsCategory": "UNKNOWN_NGS_CATEGORY",
- "cabinViewCategory": "UNKNOWN_CABIN_CATEGORY"
}, - "disabled": true
}
]
}
]
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint stores white label config for the company at different entity levels.
OK
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "companyName": "Spotnana",
- "colors": {
- "primary": "#D33B47",
- "primaryDark": "#D33B47",
- "primaryLight": "#D33B47",
- "primaryPale": "#D33B47",
- "onPrimary": "#D33B47",
- "secondary": "#D33B47",
- "secondaryDark": "#D33B47",
- "secondaryLight": "#D33B47",
- "secondaryPale": "#D33B47",
- "onSecondary": "#D33B47",
- "error": "#D33B47",
- "errorDark": "#D33B47",
- "errorLight": "#D33B47",
- "errorPale": "#D33B47",
- "onError": "#D33B47"
}, - "webLinks": {
- "poweredBySpotnana": false,
- "appDownloadLinks": {
}, - "socialMediaLinks": {
},
}, - "fromEmailAddress": "no-reply@spotnana.com",
- "fontFamily": "Arial",
- "emailFontFamily": "Roboto",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "clientRoutingBasePath": "string",
- "routingConfig": {
- "appHomeRoute": "/my-account"
}, - "privacyDisclaimer": {
- "show": true,
- "html": "</html>"
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the white label config for the company.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "companyName": "Spotnana",
- "colors": {
- "primary": "#D33B47",
- "primaryDark": "#D33B47",
- "primaryLight": "#D33B47",
- "primaryPale": "#D33B47",
- "onPrimary": "#D33B47",
- "secondary": "#D33B47",
- "secondaryDark": "#D33B47",
- "secondaryLight": "#D33B47",
- "secondaryPale": "#D33B47",
- "onSecondary": "#D33B47",
- "error": "#D33B47",
- "errorDark": "#D33B47",
- "errorLight": "#D33B47",
- "errorPale": "#D33B47",
- "onError": "#D33B47"
}, - "webLinks": {
- "poweredBySpotnana": false,
- "appDownloadLinks": {
}, - "socialMediaLinks": {
},
}, - "fromEmailAddress": "no-reply@spotnana.com",
- "fontFamily": "Arial",
- "emailFontFamily": "Roboto",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "clientRoutingBasePath": "string",
- "routingConfig": {
- "appHomeRoute": "/my-account"
}, - "privacyDisclaimer": {
- "show": true,
- "html": "</html>"
}
}
This endpoint stores Color config for the company at some entity level.
Array of objects (ProfileColors) The list of colors relating to profile. |
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "profileColors": [
- {
- "title": "PROFILE_TIER_MEMBER_COLOR",
- "color": "#FF0000"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the color config for the given entity.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "profileColors": [
- {
- "title": "PROFILE_TIER_MEMBER_COLOR",
- "color": "#FF0000"
}
]
}
This endpoint creates a legal entity.
Created
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "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
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "legal-entity-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists legal entities of a company. If externalId is provided in the query param only the legal entity having the provided externalId is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a legal entity by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "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
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "bookingTmcRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "my-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
This endpoint updates a legal entity by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "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
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "bookingTmcRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "my-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a legal entity by ID.
Deleted
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint creates a cost center.
OK
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "numberOfEmployees": 0,
- "externalId": "external-id"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists cost centers of a company. If an externalId is provided in the query parameter only the cost center with the provided externalId is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a cost center by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "employeeCount": 120,
- "id": {
- "id": "731ccbca-0415-6fe1-d235-c324dfbe7423"
}, - "name": "CostCenter",
- "externalId": "external-id"
}
This endpoint updates a cost center by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.