admin_add_po_line_item
Add a product line item to a purchase order. Requires the product to have stock tracking enabled.
Instructions
Add a line item to a purchase order. Note: the product must have maintain_stock=true or the API returns 422.
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": {
"id": "<id>",
"product_id": "<product_id>",
"quantity": "<quantity>"
},
"name": "admin_add_po_line_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | PO ID | |
| quantity | Yes | Quantity | |
| product_id | Yes | Product ID |