Confirm an order with the email code
confirm_orderConfirm a pending order with the 6-digit code emailed to the diner. A wrong code fails with otp_invalid (ask the diner to check it and try again); otp_expired or otp_attempts_exhausted means that code can no longer be used (place the order again with create_order to get a new one).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>",
"code": "<code>"
},
"name": "confirm_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| transfer | No | ||
| confirmed | Yes | ||
| order_number | Yes | ||
| tracking_url | Yes | ||
| pickup_number | Yes | The short number the restaurant calls out when a pickup order is ready (1, 2, 3... per location and local day, #588): tell it to the diner. null for a table or a delivery, until the order is confirmed (email code or online payment), once it is finished, and on older orders |