cancel_order
Cancel a submitted counter/dealer transfer order. Reverses the linked invoice, sales orders, shipment, and paid refunds; reason and confirmation are required.
Instructions
Cancel a submitted counter/dealer transfer order — the Pending Order page's Cancel Order action. Cascades safely: cancels the invoice (its hooks reverse the dispositions → stock back in → FastBound delete queued), cancels linked Sales Orders, voids the ShipStation order, and books a refund Payment Entry for whatever was actually paid (refund_mode/refund_reference when a refund is due). reason is required and recorded. 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": {
"sales_invoice": "<sales_invoice>",
"reason": "<reason>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| confirm | No | ||
| refund_mode | No | ||
| sales_invoice | Yes | ||
| refund_reference | No |