Purpose | "Parking" the order. Complete |
---|
Request type | Asynchronous/synchronous |
---|
Supported agent version | WSA v2.10.2.5 |
---|
PluggetSystemType | RKMid |
---|
Request format
{
"taskType": "EndParkOrder",
"params": {
"sync": {
"objectId": number,
"timeout": number
},
"orderGuid": "string"
}
}
CODE
Parameter | Type | Mandatory | Description |
taskType | string | + | Task type (EndParkOrder) |
sync |
|
| Synchronous method call (either synchronous or asynchronous) |
|-timeout | int | - | Agent response timeout in seconds, default is 120 seconds |
|-objectId | int | + | Restaurant code in the licensing system |
orderGuid | guid | + | Order guid in r_keeper |
// Successful response {
"taskResponse": {
},
"responseCommon": {
"taskGuid": "string",
"taskType": "EndParkOrder",
"objectId": number,
"agentGuid": "string"
}
}
// Answer with error
{
"responseCommon": {
"taskGuid": "string",
"taskType": "EndParkOrder",
"objectId": number
},
"error": {
"wsError": {
"code": "string",
"desc": "string"
},
"agentError": {
"code": "string",
"desc": "string"
}
}
}
CODE
Example request
{
"taskType": "EndParkOrder",
"params": {
"sync": {
"objectId": "199990246",
"timeout": 120
},
"orderGuid": "a9fca88b-9490-4e3e-b07b-23a58b9da97e"
}
}
CODE
Example answer
{
"taskResponse": {},
"responseCommon": {
"taskGuid": "955f9fa6-1cba-431f-9bd0-5e9eaa7a3a4b",
"taskType": "EndParkOrder",
"objectId": 199990246,
"agentGuid": "d564619a-50c3-3d87-0816-de67ed9c8e18"
}
}
CODE