How does it work
You can get a list of all additional users that are in your account. This will be useful for use with other methods. For example, to appoint a person responsible for an account when generating an order using API.
The request is sent by the POST method in the URLencode format to the address: https://username.justclick.io/api/getpersonalmanagers, where username is the user’s login in the system and his 3rd level domain in the JustClick service.
In response to the request, your system will receive the function execution result in JSON format. For example, like this:
{ "error_code": 0, "error_text": "OK", "result": [ { "id": 71257, "manager_id": 71257, "manager_name": "Greg" }, { "id": 72398, "manager_id": 72398, "manager_name": "001" }, { "id": 71668, "manager_id": 71668, "manager_name": "Quickpost" } ], "hash": "019a22abe9556aae827d223ff3be2442" }
In case of an error, the standard “Service API Responses” will be returned.
Parameters passed in the request
The only parameter for this method is rpsKey, which is the API key; the key for your account is in the “Integration and API” section, the link to the section is in the footer of your personal account or here /shops/setts/apisettings/
Parameters received in response
You will get a result array with objects. Each object is one group. The following will be listed:
- id – id of the additional user;
- manager_id – matches the previous value;
- manager_name – name and surname of the employee.