Description

PurposeGet information on the agent installed in the restaurant
Request typeAsynchronous/synchronous
Supported agent versionv1, v2
PluggetSystemTypeAgentInternal

Request format

{
  "taskType": "GetAgentInfo",
  "params": {
    "async": {
      "objectId": 0,
      "timeout": 0
},
"sync": {
"objectId": number,
"agentGuid": guid,
     "timeout": number
}, } }

Description of parameters

Parameter

Type

Mandatory

Description

taskType
+Task type
async

Asynchronous method call (either synchronous or asynchronous)
sync

Synchronous method call (either synchronous or asynchronous)
timeoutint-Agent response timeout in seconds, default is 120 seconds
objectIdint-Restaurant code in the licensing system. If specified, the request goes to the agent with the role rkMid
agentGuidguid-Agent Guid. If specified, the request goes to a specific agent


Response format

{  
   "responseCommon":{  
      "taskGuid":"guid",
      "taskType":"GetAgentInfo",
      "objectId": 0
   },
   "error":{  
      "wsError":{  
         "code":"string",
         "desc":"string"
      }
   }
}


Parameter

Type

Description

taskGuidguidThe unique code of this task is used when receiving the task through the queue.
taskTypestring enumTask type
objectIdintRestaurant code in the licensing system
error
Error container, see Error Description

Asynchronous response format

// Successful response
{
   "responseCommon":{
      "taskGuid":"string",
      "taskType":"GetAgentInfo",
      "objectId":0
   }
}
 
 
// Answer with error
{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "GetAgentInfo",
    "objectId": 0
  },
  "error": {
    "wsError": {
      "code": "string",
      "extCode": "string",
      "desc": "string"
    },
    "agentError": {
      "code": "string",
      "desc": "string"
    }
  }
}

Parameter

Type

Description

errorstring enumError container, see Error Description
taskResponseobjectThe contents of the taskResponse block can be viewed in the article GetAgentInfo Model