The OrderStatusChanged event occurs when an existing order has a status change, substatus change, or a reason for cancellation.
Body format
JSON
,
"response":
,
"substate": "string",
"rejectingReason":
}
|
Description
Parameter | Type | Mandatory | Description |
|---|
| responseEventCommon |
| objectId | int | yes | Restaurant code in the licensing system |
| agentGuid | guid | yes | Restaurant Agent ID |
| eventGuid | guid | yes | Unique event identifier generated by the agent |
| dateTimeServerReceiveEventFromAgent | string dateTime | yes | Date and time of receiving the White Server event from the agent. The time of sending the event to the aggregator by callback may differ and be slightly longer |
| eventType | string enum | yes | Event type, options available: |
| response |
| originalOrderId | string |
| External order identifier |
| orderGuid | guid |
| Order ID from the cash register |
| status.value | string |
| Order status |
| status.isBillPrinted | bool |
| Mark indicating whether a guest bill was printed |
| substate | string |
| Extended order status |
| rejectingReason.code | string |
| Cancellation code |
| rejectingReason.message | string |
| Reason for order cancellation |
In a multi-agent, an arbitrary refusal reason with code 0 and text entered by the user can be used.