Cancel order
cancel_orderCancel a Medusa order when it has no active fulfillments. Requires explicit user confirmation because the action is irreversible.
Instructions
CANCELS the order. Irreversible – get explicit confirmation from the user before calling. The order must not have active fulfillments.
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": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | Order ID or order number |