Organizations is a feature of the AdvancedContacts TonicDM license. Without that licence, the API user should work one level down with Brands.
If called with no parameters (ie. /organizations) it will return paged data for the Brands and Locations in the User's Tenant and all Contact Organizations, in no specific order.
A specific set of organizations' data can be returned by providing the filterIds parameter with an array of Organization id (ie. /organizations with filterIds={organizationId},{organizationId}). If caching the organization data on the client side, the dataQuantity=idOnly option can be chosen to get the list of UUIDs that match the filtering/sorting/paging requirements with the organization data coming from your client side cache, having been retrieved by providing the filterIds parameter with an array of id.
You can also get the list of Locations (offices) or Brands for an Organization by calling /locations with filterOrganizationIds={organizationId} or /brands with filterOrganizationIds={organizationId}. Locations and Brands for Organizations other than your own are a feature of the AdvancedContacts TonicDM license.
Returns data for the specified UUIDs. If this filter is specifed, all other filters will be ignored.
If caching data on the client side, the dataQuantity=idOnly|basic|complete option can be passed to manage the completeness of the data received and therefore rate limiting.
- Mock serverhttps://developers-internal.tonicdm.com/_mock/tonicdm-product/core/organizations/select
- API server located in the USAhttps://api.us.tonicdm.com/v3/core/organizations/select
curl -i -X POST \
https://developers-internal.tonicdm.com/_mock/tonicdm-product/core/organizations/select \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filterIds": [
"8e8aa42241794371ae9d0ed7b67a8c86"
],
"dataQuantity": "idOnly",
"pageSize": 50,
"pageNumber": 0
}'Successfully read the resource you requested. One or more records are returned in the form of an array.
[ { "id": "810e48a87ec44cf0bfbf43c6d0af2ee6", "datetimeCreated": "2021-11-03T16:21:02+00:00", "datetimeUpdated": "2024-04-20T16:21:02+00:00", "brands": [ … ] }, { "id": "f5fcae6d03f342ceb9eb8c9b9250c0ce", "datetimeCreated": "2021-11-03T16:21:02+00:00", "datetimeUpdated": "2024-04-20T16:21:02+00:00", "brands": [ … ] } ]