Check an order status
get_order_statusCurrent status of an order, looked up by order number + the email used to place it. Tell the diner the phase (the same words as the tracking page): awaiting_code = type the code we emailed; awaiting_payment = pay online on tracking_url; pay_expired = it can no longer be paid, order again (an unpaid online order is removed a day after it was placed); delivering = on its way. payment: online = paid / unpaid / refunded (a cancelled order can be paid and not refunded yet), null = pays another way. status is the raw staff status. missing_items: the restaurant ran out of something (a whole dish, or only the add-ons in its extras) and the diner has to choose on tracking_url (go on without it at total_without_missing, or cancel); removed_items: what they already went without; missing_refund: paid online, the money given back for them (sent / pending / by_hand = the restaurant gives it back itself).
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_number": "<order_number>",
"customer_email": "<customer_email>"
},
"name": "get_order_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_number | Yes | ||
| customer_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | Yes | Where the order is in the diner's words, the same as the tracking page (#465) | |
| total | Yes | Decimal amount as a string with 2 decimals, e.g. "14800.00" | |
| status | Yes | ||
| payment | Yes | Paid online: unpaid / paid / refunded; null = pays another way | |
| placed_at | Yes | ||
| fulfillment | Yes | ||
| order_number | Yes | ||
| tracking_url | Yes | ||
| missing_items | Yes | The restaurant ran out of these dishes and asks the diner: go on without them, or cancel the order. extras = only these add-ons of the dish ran out (the dish is made without them, at its price without them); empty = the whole dish. The diner answers on tracking_url (it is never answered here; the order is never cancelled by itself). Empty = nothing to answer | |
| 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 | |
| removed_items | Yes | Dishes the diner already went without; total no longer counts them | |
| missing_refund | Yes | Paid online: the money given back for removed_items through the payment provider. sent = amount went back; pending = amount is on its way; by_hand = the restaurant gives amount back itself (what is still owed, after any part already sent). null = nothing to give back | |
| status_updated_at | Yes | ||
| transfer_discount | No | The restaurant's discount for paying by bank transfer that this order was given, already inside total (and inside transfer.amount). null = none. It is lost, and the total goes back up, if the diner ends up paying another way | |
| total_without_missing | Yes | The total if the diner goes on without missing_items (same coupon, cover and delivery); null when nothing is missing |