Cancel order
foran_cancel_orderCancels an order that the store has not started yet (pending status). Ask the customer to confirm first, then submit with confirm=true.
Instructions
Cancel an order that the store has not started yet (status pending). Ask the customer to confirm first, then call with confirm=true.
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": {
"session_key": "<session_key>",
"order_id": "<order_id>",
"reason": "<reason>"
},
"name": "foran_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| confirm | No | ||
| order_id | Yes | ||
| session_key | Yes | The session_key returned by foran_login. |