White Server White Server White Server API White Server API v2 Description of Methods Current: RunSqlProc RunSqlProc PurposeExecute the specified procedure on the database and return the execution result.For certain restaurants, the request is forwarded to r_k Cloud. No agent is required to be connected.LimitationsOnly for the RkReports aggregatorSupported agent versionv2PluggetSystemTypeSqlRequest formatJSON{ "taskType": "RunSqlProc", "params": { "async": { "objectId": number, "timeout": number }, "sync": { "objectId": number, "timeout": number }, "procName": "string", "params": [ { "name": "string", "value": "string" } ] }}ParameterTypeMandatoryDescriptiontaskTypestringyesTask type. For this method, the value is RunSqlProc-asyncAsynchronous method call: either synchronous or asynchronous-syncSynchronous method call: either synchronous or asynchronous--timeoutintnoAgent response time in seconds. Default is 120 seconds--objectIdintyesRestaurant code in the licensing system-procNamestringyesFull name of the stored procedure-paramsnoParameters for the called procedure/function--namestringyesParameter name--valuestringyesParameter valueSynchronous response formatJSON{ "responseCommon":{ "taskGuid":"guid", "taskType":"RunSqlProc", "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": { "queryResult": { "rows": [ // Array of records ] } }, "responseCommon": { "taskGuid": "string", "taskType": "RunSqlProc", "objectId": 0 }}Response with errorJSON{ "responseCommon": { "taskGuid": "string", "taskType": "RunSqlProc", "objectId": 0 }, "error": { "wsError": { "code": "string", "desc": "string" }, "agentError": { "code": 0, "desc": "string" } }} Example answerJSON{ "taskResponse": { "queryResult": { "rows": [ { "col_1": true, "col_2": 2, "col_3": "str" }, { "col_1": false, "col_2": 3, } ] } }, "responseCommon": { "taskGuid": "464ca191-8d3a-439b-ad5b-485f628275e6", "taskType": "RunSqlProc", "objectId": 199997075 }}ParameterParameter typeMandatoryDescription-queryResult--rowsarrayArray of records of the query execution resulterrorstring enumError container, for more details see the article Error Description ×