Accept, decline or cancel an order
decide_orderFor shop owners: accept, decline or cancel an order, or accept or reject a payment receipt the customer sent. One decision a call, at the revision last read. It never edits an order, marks it ready or complete, or records cash: update_order does. Returns done when nothing has to wait (accepting an order paid outside Confita, declining). Charging a card, cancelling and deciding a receipt return needs_confirmation, and nothing happens until she taps Confirm.
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": "<order>",
"revision": "<revision>",
"decision": "<decision>",
"request_id": "<request_id>"
},
"name": "decide_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | The order by its number ("1042" or "#1042") or id (ord_...). | |
| amount | No | accept_receipt: how much the receipt shows was paid, required. For example {"amount": "24.00", "currency": "USD"} for a receipt of $24. | |
| method | No | accept_receipt: how it was paid, when not the method the customer chose. | |
| reason | No | decline, cancel, reject_receipt: a short reason the customer may be told. Required for reject_receipt. | |
| receipt | No | accept_receipt, reject_receipt: get_order `receipt.id`, required. | |
| decision | Yes | accept or decline a new order (accept also takes on an expired order whose payment came late), cancel a confirmed one (card payments are refunded), or decide the receipt get_order shows. | |
| revision | Yes | The order's `revision` as last read; if the order changed since, nothing happens. | |
| request_id | Yes | Unique per call; the same id again returns the first result. | |
| payment_kind | No | accept_receipt: left out, a part payment before anything was paid is a deposit, a later one the balance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| error | No | ||
| order | No | ||
| outcome | No | ||
| timezone | No | ||
| untrusted | No | ||
| confirmation | No |