White Server White Server White Server API White Server API v2 Description of Methods Current: GetRestaurantInfo GetRestaurantInfo PurposeGet information about the restaurantRequest typeAsynchronous/synchronousSupported agent versionv2PluggetSystemTypeRKMidRequest formatJSON{ "taskType": "GetRestaurantInfo", "params": { "async": { "objectId": number, "timeout": number }, "sync": { "objectId": number, "timeout": number }, }}ParameterTypeMandatoryDescriptiontaskTypestringyesTask type-asyncAsynchronous method call: either synchronous or asynchronous-syncSynchronous method call: either synchronous or asynchronous--timeoutintnoAgent response timeout in seconds, default is 120 seconds--objectIdintyesRestaurant code in the licensing systemSynchronous response formatJSON{ "responseCommon":{ "taskGuid":"guid", "taskType":"GetRestaurantInfo", "objectId": 0 }, "error":{ "wsError":{ "code":"string", "desc":"string" } }}ParameterTypeDescription-taskGuidguidUnique code for this task. Used when receiving a task via the queue-taskTypestring enumTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error DescriptionAsynchronous response formatSuccessful responseJSON{ "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 errorJSON{ "responseCommon": { "taskGuid": "string", "taskType": "GetRestaurantInfo", "objectId": 0 }, "error": { "wsError": { "code": "string", "extCode": "string", "desc": "string" }, "agentError": { "code": "string", "desc": "string" } }}ParameterTypeDescription-restaurantRestaurant Description--guidguidRestaurant UUID--namestringName of the restaurant--hallsList of halls---guidguidHall UUID---namestringName of the hall---tablesList of tables----guidguidTable UUID----codeintTable code----namestringTable name----seatsCountintNumber of seats at the tableerrorstring enumError container, for more details see the article Error Description ×