ordercloud.lineItems.patch
Partially update a line item in an OrderCloud order by changing quantity, unit price, cost center, or extended properties without replacing the entire item.
Instructions
Update a line item (partial update)
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>",
"direction": "<direction>",
"lineItemId": "<lineItemId>",
"lineItem": "<lineItem>"
},
"name": "ordercloud.lineItems.patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The order ID | |
| lineItem | Yes | Partial line item object with fields to update | |
| direction | Yes | Order direction | |
| lineItemId | Yes | The line item ID to update |