Edit order
edit_orderReplace all line items on an existing order and automatically recompute totals. Use it to correct quantities, products, variants, or ad-hoc pricing in a single update.
Instructions
Replace an order's line items (full replace of the items array). Recomputes totals.
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>",
"items": "<items>"
},
"name": "edit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| orderId | Yes |