GetOrderState
| Purpose | Get order status |
|---|---|
| Request type | asynchronous/synchronous |
| Supported agent version | v1, v2 |
| PluggetSystemType | RKMid |
Request format
|
Parameter | Type | Mandatory | Description |
|---|---|---|---|
| taskType | + | Task type | |
| async | Asynchronous method call (either synchronous or asynchronous) | ||
| sync | Synchronous method call (either synchronous or asynchronous) | ||
| timeout | int | - | Agent response timeout in seconds, default is 120 seconds |
| orderGuid | guid | + | guid of the order whose status you want to get (either orderGuid or taskGuid) |
| taskGuid | guid | whiteserver task guid for creating an order (either orderGuid or taskGuid) |
Response format
|
Parameter | Type | Description |
|---|---|---|
| taskGuid | guid | The unique code of this task is used when receiving the task through the queue. |
| taskType | string enum | Task type |
| objectId | int | Restaurant code in the licensing system |
| error | Error container, see error description |
Asynchronous response format
|
Parameter | Parameter type | Mandatory | Description |
|---|---|---|---|
| taskGuid | uuid | + | Request ID |
| order | |||
| - taskGuid | guid | taskGuid whiteserver task to create an order | |
| - orderGuid | guid | Order Guid in RK | |
| status | |||
| – value | string | Order status, possible options:
*Agent V1 differences: | |
| – isBillPrinted | bool | Mark indicating whether the guest bil has been printed. | |
| error | string enum | Error container, see error description | |
| substate | string | Extended order status | |
| - rejectingReason.code | Cancellation code | ||
- rejectingReason.message | string | Reason for order cancellation |