GetRestaurantAgents
Purpose | Get a list of agents who have roles on the restaurant |
---|---|
Request type | Synchronous only |
Supported agent version | Any |
PluggetSystemType | WhiteServer |
Request format
JSON
|
Parameter | Type | Required | Description |
---|---|---|---|
taskType | string | yes | Task type: For this method, the value is GetRestaurantAgents |
params | yes | Request parameters | |
-sync | yes | Synchronous method | |
--objectId | int | yes | Restaurant code in the licensing system |
--timeout | int | no | Response timeout in seconds. Default is 120 seconds, maximum is 180 seconds |
Response format
JSON
|
Parameter | Type | Description |
---|---|---|
-taskGuid | guid | Unique code for this task. Used when receiving a task via the queue |
-taskType | string enum | Task type |
-objectId | int | Restaurant code in the licensing system |
taskResponse | array | Array of registered agents |
--version | string | Agent version |
--isOnline | boolean | Agent active for the last 10 minutes. True or false |
--agentGuid | guid | Agent's Guid |
--roles | array | List of restaurant agent roles |
error | Error container, for more details see the article Error Description |
Example request
JSON
|
Example answer
JSON
|