Cancel Order Item
cancel_order_itemCancel an order item by ID to confirm customer requests or handle unfulfillable items. Returns a process status for async cancellation.
Instructions
Cancel an order item by order item ID. Can be used to confirm a customer cancellation request or to cancel an item you cannot fulfil. Returns a process status — the cancellation is processed asynchronously. Always review the order with get_order before cancelling.
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": {
"orderItemId": "<orderItemId>",
"reasonCode": "<reasonCode>"
},
"name": "cancel_order_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderItemId | Yes | The order item ID to cancel. | |
| reasonCode | Yes | The reason for cancellation. |