Purpose

Get information about the restaurant

Request typeAsynchronous/synchronous
Supported agent versionv2
PluggetSystemTypeRKMid

Request format


JSON

{
  "taskType": "GetRestaurantInfo",
  "params": {
    "async": {
      "objectId": number,
       "timeout": number
    },
    "sync": {
      "objectId": number,
       "timeout": number
    },
  }
}

Parameter

Type

Mandatory

Description

taskTypestringyesTask type
-async

Asynchronous method call: either synchronous or asynchronous
-sync

Synchronous method call: either synchronous or asynchronous
--timeoutintnoAgent response timeout in seconds, default is 120 seconds
--objectIdintyesRestaurant code in the licensing system

Synchronous response format


JSON

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

Parameter

Type

Description

-taskGuidguidUnique code for this task. Used when receiving a task via the queue
-taskTypestring enumTask type
-objectIdintRestaurant code in the licensing system
error
Error container, for more details see the article Error Description

Asynchronous response format

Successful response


JSON

{
    "taskResponse": {
        "restaurant": {
            "guid": "guid",
            "name": "string",
            "halls": [
                {
                    "guid": "guid",
                    "name": "string",
                    "tables":[
                        "guid": "guid",
                        "code": 0,
                        "name": "string",
                        "seatsCount": 0
                    ]
                }
            ]
        }
    },
    "responseCommon": {
        "taskGuid": "string",
        "taskType": "GetRestaurantInfo",
        "objectId": 0
    }
}



Response with error


JSON

{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "GetRestaurantInfo",
    "objectId": 0
  },
  "error": {
    "wsError": {
      "code": "string",
      "extCode": "string",
      "desc": "string"
    },
    "agentError": {
      "code": "string",
      "desc": "string"
    }
  }
}

Parameter

Type

Description

-restaurant
Restaurant Description
--guidguidRestaurant UUID
--namestringName of the restaurant
--halls
List of halls
---guidguidHall UUID
---namestringName of the hall
---tables
List of tables
----guidguidTable UUID
----codeintTable code
----namestringTable name
----seatsCountintNumber of seats at the table
errorstring enumError container, for more details see the article Error Description