Cancel an order
cancel_orderCancel the connected person's own order, under the same rules as the WaitApp website: free while the venue or a rider hasn't started; refused once the rider is collecting or has the food. A paid order is flagged for the venue to review a refund; refunds are never instant or automatic. If the connection is set to confirm each decision, the first call returns what would be cancelled and cancels nothing until a call with confirmed: true. With full control it cancels immediately (at most 3 a day).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| orderId | No | The orderId from list_my_orders | |
| confirmed | No | True records that the person agreed to cancel this order | |
| orderCode | No | The order code returned when the order was placed, e.g. WA-K4M2 | |
| restaurantId | No | The venue the order was placed at (needed with orderCode if the person has the same code at two venues) |