Description


PurposeRequest for manual menu update
Request typeAsynchronous

Request format

{
  "taskType": "UpdateMenu",
  "params": {
    "async": {
      "objectId": 0,
      "timeout": 0
    }
  }
}

Description of parameters

Parameter

Type

Mandatory

Description

taskType

Task type
async

Asynchronous method
timeoutint-Agent response timeout in seconds, default is 120 seconds
objectIdint+Restaurant code in the licensing system


Response format

{  
   "responseCommon":{  
      "taskGuid":"guid",
      "taskType":"UpdateMenu",
      "objectId":"int"
   },
   "error":{  
      "wsError":{  
         "code":"string",
         "extCode":"string",
         "desc":"string"
      }
   }
}


Parameter

Type

Description

taskGuidguidThe unique code of this task is used when receiving the task through the queue.
taskTypestring enumTask type
objectIdintRestaurant code in the licensing system
error
Error container, with the detailing on related systems inside
- wsError
Errors received from the WhiteServer service
– codestringError code
– extCodestringExtended error code
– descstringError description

Asynchronous response format

Successful response
{
  "taskResponse": {
    "status": "string"
}, "responseCommon": { "taskGuid": "string", "taskType": "UpdateMenu", "objectId": 0 } }
Response with error
{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "UpdateMenu",
    "objectId": 0
  },
  "error": {
    "wsError": {
      "code": "string",
      "extCode": "string",
      "desc": "string"
    },
    "agentError": {
      "code": "string",
      "desc": "string"
    }
  }
}

Description of parameters


Parameter

Parameter type

Mandatory

Description

taskGuiduuid+Request ID
statusstring
It can only be Updated, otherwise an error will be returned.
errorstring enum
Error container with the detailing on related systems inside
- wsErrorstring enum
Whiteserver Error
– codestring
Error code
– extCodestring
Extended error code
– descstring
Error description
- agentErrorstring enum
Agent Error
– codestring
Error code
– descstring
Error description

Request

{
  "taskType": "UpdateMenu",
  "params": {
    "async": {
      "objectId": 199990106,
      "timeout": 60
    }
  }
}

Synchronous response

{
  "responseCommon": {
    "taskGuid": "fa1bdcbf-1e96-425c-9159-eb57d4accb6f",
    "taskType": "UpdateMenu",
    "objectId": 199990106
  },
  "responseSync": "QueuedSuccess"
}

Successful asynchronous response

{
"taskResponse": {
    "status": "updated"
},
"responseCommon": { "taskGuid": "fe5633c8-ee7d-4ef5-ab98-8ff9e98adbdc", "taskType": "UpdateMenu", "objectId": 199990106 } }

Asynchronous response with error

{
  "responseCommon": {
    "taskGuid": "fa1bdcbf-1e96-425c-9159-eb57d4accb6f",
    "taskType": "UpdateMenu",
    "objectId": 199990106
  },
  "error": {
    "agentError": {
      "code": 82,
      "desc": "No access to main system (Rk7)"
    }
  }
}