Update order item
update_order_itemUpdate a line item on an order (quantity, unit price, discount, name, or SKU). Recomputes the order total. Only allowed while the order is pending or confirmed; otherwise it fails with 409 CONFLICT "Order lines can only be changed while the order is pending or confirmed" (stock is committed from processing on). Use get_order to find the order's externalId and the item's itemId. The CRM recalculates shipping eligibility from the saved priced lines; a separate whole-order discount may require source-confirmed amount correction. The result echoes the operating workspace.
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": {
"externalId": "<externalId>",
"itemId": "<itemId>",
"patch": "<patch>"
},
"name": "update_order_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | The order item fields to update; include at least one changed field. | |
| itemId | Yes | The order item id returned by get_order. | |
| externalId | Yes | The order externalId returned by list_orders or create_order. |