create_purchase_invoice
Record an inward purchase invoice from a supplier to log stock purchases and supplier bills. Creates a purchase invoice entry with line items, quantities, and rates.
Instructions
Record an inward purchase invoice from a supplier. CREATE ONLY.
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": {
"company_id": "<company_id>",
"supplier_invoice_no": "<supplier_invoice_no>",
"stock_lines": "<stock_lines>"
},
"name": "create_purchase_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD | |
| notes | No | ||
| party_id | No | ||
| company_id | Yes | ||
| party_name | No | Supplier name | |
| stock_lines | Yes | ||
| supplier_invoice_no | Yes | Supplier bill number |