Record a supplier bill
purchasing_create_billRecord a bill a supplier sent, with their reference (their invoice number; the same reference from the same supplier is refused twice). Either its own lines (supplier and lines: each to its book account, default the supplier's; a sku line to the inventory account), or from an order (order, quantities: "received" (default) or "ordered"): what is not billed yet, at the order's costs. It is due due_date, default the issue date plus the supplier's terms. Attach its PDF from the file store with file_id; reading the PDF is your work. A carrier's or the customs office's bill marks the import VAT it passes on with import_vat on its line. When the account keeps books, it is posted to them. Costs $0.01 per call; nothing if it fails.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "purchasing_create_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| notes | No | ||
| order | No | The order_id, or the order's number like "PO-0007". | |
| account | No | With order: the book account for its lines without a SKU. Default: the supplier's. | |
| file_id | No | A file_id from the file store. | |
| currency | No | ISO 4217, e.g. "EUR". Default: the supplier's. | |
| due_date | No | YYYY-MM-DD | |
| supplier | No | A supplier_id, or the supplier's name. | |
| reference | No | ||
| issue_date | No | YYYY-MM-DD | |
| quantities | No | received | |
| tax_treatment | No | reverse_charge: the supplier's invoice has no VAT because the business owes it (services from abroad, a reverse-charge trade at home); eu_goods: goods bought from another EU country. The lines' tax_rate is the rate owed; the VAT is owed and reclaimed at once. |