Purpose | Get a list of agents installed in restaurants with information about their activity |
---|
Request type | synchronous |
---|
Supported agent version | v1, v2 |
---|
PluggetSystemType | Server |
---|
Notes:
- The aggregator must have a WSServer license, otherwise the corresponding error will be returned
The token is required to authorize the aggregator:
In API v1, the token is passed to the aggregator. The aggregator uses it when forming a request to the WS
In API v2 there is no need to pass a token. Within an hour, the new license will appear on the WS server automatically.
If there is no license or it has expired, an error is returned:
JSON
- The list of agents is formed from agents of version 1 and 2. If the agent was not connected to the server, it will not appear in the list
- The list of agents displays only agents available to the aggregator, i.e. with an active WsProduct license and a non-expired date.
- The list of agents also displays objects with expired WsClient licenses. The licenseExpirationDate for them will be expired
- The list of agents displays only agents v2 for which the Executes commands from aggregators role is selected.
If the agent v2 was previously connected to the server, data will be issued on it regardless of whether the old agent v1 is running or not.
JSON
Parameter | Type | Mandatory | Description |
---|
taskType | string | yes | Task type, for this method the value is ExecuteRk7Query |
Successful response
JSON
Parameter | Parameter type | Mandatory | Description |
---|
-agents | array |
| Array of agents |
--objectId | int | yes | Restaurant code in the licensing system |
--version | string |
| Agent version |
--isOnline | boolean |
| Agent activity |
--licenseExpirationDate | string |
| Agent License Expiry Date — WsClient in Licensing System |
--rkVersion | string |
| r_keeper mid version. Only for agent v2 |
Response with error
JSON
Parameter | Parameter type | Required | Description |
---|
error | string enum |
| Error container, for more details see the article Error Description |