Reject order
reject_orderReject (decline) an order; order managers only. A non-empty reason is required; the requester is notified with it. Releases any reserved stock. Fails on already-closed orders. Irreversible: a closed order cannot be reopened.
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": {
"orderId": "<orderId>",
"reason": "<reason>"
},
"name": "reject_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Required non-empty reason shown to the requester in their notification | |
| orderId | Yes | Order id (from list_orders) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | open | in_fulfillment | fulfilled | rejected | cancelled | |
| webUrl | No | Link to this order in the web app, for a person to open; `orderId` is the handle for tool calls. Absent when the deployment has no public address | |
| orderId | No | Order id | |
| closedAt | No | Close time, epoch milliseconds | |
| targetName | No | Who/where the order delivers to | |
| closedAtIso | No | The same moment as an ISO-8601 UTC timestamp — read THIS one; the server does no timezone conversion |