Purpose

"Parking" the order. Start

Request typeасинхронный/синхронный
Supported agent version

WSA v2.10.2.5

PluggetSystemTypeRKMid

Request format

{
    "taskType": "StartParkOrder",
    "params": {
        "sync": {
            "objectId": number,
            "timeout": number
        },
        "orderGuid": "string"
    }
}
CODE

Parameter

Type

Mandatory

Description

taskTypestring+Task type (StartParkOrder)
sync

Synchronous method call (either synchronous or asynchronous)
|-timeoutint-Agent response timeout in seconds, default is 120 seconds
|-objectIdint+Restaurant code in the licensing system
orderGuidguid+Order guid in r_keeper

Формат ответа

// Successful response {
    "taskResponse": {
    },
    "responseCommon": {
        "taskGuid": "string",
        "taskType": "StartParkOrder",
        "objectId": number,
        "agentGuid": "string"
    }
}
 
// Response with error
{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "StartParkOrder",
    "objectId": number
  },
  "error": {
    "wsError": {
      "code": "string",
      "desc": "string"
    },
    "agentError": {
      "code": "string",
      "desc": "string"
    }
  }
}
CODE

Example request

{
    "taskType": "StartParkOrder",
    "params": {
        "sync": {
            "objectId": "199990246",
            "timeout": 120
        },
        "orderGuid": "a9fca88b-9490-4e3e-b07b-23a58b9da97e"        
    }
}
CODE

Example response

{
    "taskResponse": {},
    "responseCommon": {
        "taskGuid": "955f9fa6-1cba-431f-9bd0-5e9eaa7a3a4b",
        "taskType": "StartParkOrder",
        "objectId": 199990246,
        "agentGuid": "d564619a-50c3-3d87-0816-de67ed9c8e18"
    }
}
CODE