ExecuteRk7Query
Answer with error
Purpose | Execute a custom XML request at the cash register |
---|---|
Request type | asynchronous/synchronous |
Supported agent version | v1, v2 |
PluggetSystemType | RKMid |
Request format
JSON
|
Parameter | Type | Mandatory | Description |
---|---|---|---|
taskType | string | yes | The task type. For this method the value is ExecuteRk7Query |
-async | Asynchronous method call: either synchronous or asynchronous | ||
-sync | Synchronous method call: either synchronous or asynchronous | ||
--timeout | int | no | Agent response timeout in seconds, default is 120 seconds |
--objectId | int | yes | Restaurant code in the licensing system |
-base64 | string | yes | The query text in xml is the entire RK7Query node, which must be converted to base64 encoding. For testing, this can be done using any online service. In the White Server administrative panel, the request text will be displayed in both versions: the original and encoded in base64. Example request: Xml original text:
JSON Xml in base64 encoding:
CODE |
Response format
JSON
|
Parameter | Type | Description |
---|---|---|
-taskGuid | guid | Unique code of this task, used when receiving a task through the queue |
-taskType | string enum | Task type |
-objectId | int | Restaurant code in the licensing system |
error | Error container, for more details see the article Error Description |
Asynchronous response format
Successful response:
JSON
|
Error response:
JSON
|
Parameter | Parameter type | Mandatory | Description | ||
---|---|---|---|---|---|
-base64 | string | yes | In the White Server administrative panel, the request text will be displayed in both versions: the original and encoded in base64. Example answer: Xml original text:
Xml in base64 encoding:
| ||
error | string enum | Error container, for more details see the article Error Description |