These end points allow you to manage your customers.
Depending whether you are connecting Zoined via database poll or ZAPI, there are some differences in the data associated with each customers.
ZAPI: If you are connecting via ZAPI, the returned customer information contains a token field with the API token needed to access ZAPI for that customer.
{
"key": "Demo company",
...
"token": "abcdefghijklmn"
}Database poll: If you are connecting via database fetch, you need to define additional data source configuration when creating the customer. We'll also return dataSource block which will return the the data source configuration for the customer with password masked.
{
"dataSource": {
"host": "db-host",
"port": 3306,
"database": "database_name",
"username": "db-username",
"password": "db-XXXXXXXXXX",
"filters": {
"companyId": "123"
}
}
}- Mock serverhttps://zone-api.zoined.com/_mock/api/customers
- https://partners.zoined.comhttps://partners.zoined.com/api/customers
curl -i -X GET \
https://zone-api.zoined.com/_mock/api/customers \
-H 'Authorization: YOUR_API_KEY_HERE'Request has been processed successfully.
Array []
Customers's processing state. Disabled customers don't poll for new data
Example:false
Response
[ { "key": "dm_company", "name": "Demo company", "createdAt": "2019", "disabled": false, "production": true, "customerType": "other", "token": "abcdefghijklmn", "status": "ok", "licenses": [ … ], "dataUpdated": { … }, "dataSource": { … }, "ssoSecret": "asdajksdajdsjsdadjsasodaj" } ]