calculate_order_edit
Calculate changes to order totals from line item edits, additions, or removals, without applying them to the Shopify order.
Instructions
Calculate changes for an order edit without applying them
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>"
},
"name": "calculate_order_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | No | Items to edit | |
| orderId | Yes | Order ID to edit | |
| removals | No | Items to remove | |
| additions | No | Items to add |