Cancel an order
cancel_orderCancels the connected person's own order under the same rules as the WaitApp website: free while the venue or a rider has not 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. When the connection is set to confirm each decision, the first call returns what would be cancelled and cancels nothing, and a call with confirmed: true cancels. With full control it cancels immediately, at most 3 a day.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cancel_order"
}
}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) |