ordercloud.lineItems.create
Add a product line item with quantity and optional unit price to an existing order, specifying Incoming or Outgoing direction for fulfillment.
Instructions
Add a new line item to an order
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>",
"lineItem": "<lineItem>"
},
"name": "ordercloud.lineItems.create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The order ID | |
| lineItem | Yes | Line item object to create | |
| direction | Yes | Order direction |