Close or cancel an order
purchasing_close_orderClose 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. Costs $0.01 per call; nothing if it fails.
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>"
},
"name": "purchasing_close_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | The order_id, or the order's number like "PO-0007". | |
| cancel | No | ||
| reason | No |