Close or cancel an order
Closes a sent order (stop waiting for the rest) or cancels one that received nothing.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Nordstahl can't deliver the last 15 pans. Close the order with what we got.
Your agent callspurchasing_close_order$0.01 a call
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"order": "PO-0001",
"reason": "The supplier ran out of GN pans"
}Use it when
The supplier will not deliver the rest, or the order is called off.
What it does
Close an order that was sent: stop waiting for the rest (what came in stays, and can still be billed). Or cancel it (cancel: true) while nothing came in and it has no bills; a cancelled draft never had a number. Closed and cancelled orders are final.
What comes back
order: the order, now closed or cancelled. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
orderRequired | string | The order_id, or the order's number like "PO-0007". 1 to 40 characters. |
cancel | boolean | Default: false. |
reason | string | Up to 300 characters. |
The call
Over MCP, call purchasing_close_order on https://api.conecto.chat/mcp/purchasing. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/purchasing_close_order \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"order":"PO-0001","reason":"The supplier ran out of GN pans"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No purchase order has that order_id or number. | Find it with purchasing_list_orders. |
already_closed409 | The order is closed already. | Nothing to do. |
already_cancelled409 | The order is cancelled already. | Nothing to do. |
has_deliveries409 | Goods came in, so it cannot be cancelled. | Close it instead. |
has_bills409 | The order has bills. | Void them with purchasing_void_bill first. |
not_sent409 | A draft was never sent, so there is nothing to close. | Cancel it with cancel: true. |
More Purchasing tools
All 25 tools- List or read purchase orders
purchasing_list_ordersPurchase orders, newest first, by status, supplier or date; or one order in full.Free* - Record a supplier bill
purchasing_create_billRecords a bill a supplier sent, from its own lines or from an order, with its PDF; it is posted to the books.$0.01 a call - Change a bill's file, notes or due date
purchasing_update_billAdds a recorded bill's PDF if it has none, or changes its notes or due date; amounts and the PDF it has never change.$0.01 a call - Record a bill payment
purchasing_pay_billRecords money paid on a bill, or money back from the supplier; it is posted to the books.$0.01 a call - Pay bills in a batch
purchasing_pay_billsPays several bills at once from one bank account, like Xero's batch payments, with the SEPA file to upload to the bank.$0.01 per bill paid - Plan when to pay a bill
purchasing_set_planned_datePlans the day the business will pay a bill, so the cash flow forecast takes the money out then rather than on the due date.Free - Record a prepayment to a supplier
purchasing_record_prepaymentRecords a deposit the business paid a supplier before their bill, like Xero's prepayments; it waits as a credit with them.$0.01 a call - Use a supplier credit
purchasing_use_creditPuts a credit with a supplier on their bill, like Xero's allocate credit, or records it coming back.$0.01 a call
Read next: AI bookkeeping: what it does, what it costs, and a two-month test, QuickBooks alternatives in 2026: eight options and what they cost, What is an MCP server?
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md