Create an invoice
eboekhouden_create_invoiceCreate a sales invoice for a relation. PERMANENT: the API cannot change or delete invoices afterwards, and an invoice number is used up. The invoice is created only: it is NOT e-mailed to the customer, NOT booked as a mutation and no direct debit is set. Needs relation_id, template_id (eboekhouden_list_invoice_templates), term_of_payment in days and at least one item with a ledger_id. Returns the new id and invoice number. POST /v1/invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Invoice date yyyy-mm-dd (default today). | |
| text | No | Text on the invoice. | |
| items | Yes | 1-200 invoice items. | |
| in_ex_vat | No | Whether price_per_unit includes (IN) or excludes (EX) VAT. | |
| reference | No | Payment reference. | |
| relation_id | Yes | The relation id (from eboekhouden_list_relations). | |
| template_id | Yes | The invoice template id (from eboekhouden_list_invoice_templates). | |
| invoice_number | No | Invoice number; must end with a number. Generated when omitted. | |
| term_of_payment | Yes | Payment term in days. |