GetRestaurantConfig
Purpose | Request Metadata for Restaurant Setup |
|---|---|
| Request type | Asynchronous/synchronous |
| Supported agent version | >= v2.2 |
| PluggetSystemType | RKRef |
Request format
JSON
|
Parameter | Type | Mandatory | Description |
|---|---|---|---|
| taskType | string | yes | Task type. For this method, the value is GetAgentSettings |
| -sync | Synchronous method call | ||
| --timeout | int | no | Agent response timeout in seconds, default is 120 seconds |
| --objectId | int | no | The code of the restaurant for which the request was made |
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 or null | The code of the restaurant for which the request was made |
| error | Error container, for more details see the article Error Description | |
| taskResponse | object | Data from the agent |
| -fields | array | Array of restaurant settings fields displayed in the admin panel UI |
| --name | string | Field name |
| --path | string | Path in .json file — agent configuration |
| --values | array | Array of available values for this parameter: name + value. If null, then free input of the specified type |
| --valueType | string | Parameter type. Accepts a number, text or boolean value. |
| --required | bool | Required or optional field |
| --defaultValue | any | Default value |
The result of the GetRestoranConfig request must be saved in ObjectSettings in the DataList field as a .json file with the following structure:
JSON
|