create_invoice
Add an invoice to Acumulus using customer details and line items; validate in test mode before saving.
Instructions
Add an invoice to Acumulus (invoices/invoice_add.php).
Args: customer: Customer-block fields. Common ones: type, contactid, companyname1, fullname, address1, postalcode, city, countrycode, vatnumber, email, overwriteifexists. lines: One dict per invoice line. Common fields: product, itemnumber, unitprice (excl. VAT, 4 decimals), vatrate (defaults to 21), quantity (defaults to 1), nature. invoice: Optional invoice-block fields: concept, number, vattype, issuedate, costcenter, accountnumber, paymentstatus, paymentdate, description, template, invoicenotes.
Set ACUMULUS_TESTMODE=1 to validate without persisting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| invoice | No | ||
| customer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |