Create a new purchase invoice
create_purchase_invoiceCreate a purchase invoice for supplier expenses by specifying line items, VAT, ledger accounts, and dates, with valid option combinations determined via the purchase options endpoint.
Instructions
Create a new purchase invoice.
Create a new purchase invoice. Use the /invoices/purchase/options endpoint first to determine valid combinations of vat_id and ledger_id.
The amount field per line is the gross amount (excl or incl VAT depending on vat_option). The vat_amount is the VAT portion of that amount.
[Purchase Invoices] POST /invoices/purchase
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": {
"body": "<body>"
},
"name": "create_purchase_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| administration | No | The client administration to act on. Only one is configured: default. |