add_line_items_to_order
Add products to an existing order using variant IDs and quantities. Optionally set a custom price per line item.
Instructions
Add line items 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>",
"lineItems": "<lineItems>"
},
"name": "add_line_items_to_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Order ID | |
| lineItems | Yes | Line items to add |