Create Invoice
lexware_create_invoiceCreate a new Lexware invoice, optionally finalizing directly to open status. Use finalize=true to obtain a finalized invoice, as drafts cannot be finalized later.
Instructions
Create a new invoice in Lexware. Set finalize=true to immediately finalize (status "open"); omit or false to create as draft. The Lexware API does not support finalizing an existing draft — this is the only documented way to obtain a finalized invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Invoice JSON body. Key fields: voucherDate, address (object with contactId or manual fields), lineItems (array with name, quantity, unitPrice, etc.), totalPrice (object), taxConditions (object). See Lexware API docs for full schema. | |
| finalize | No | When true, creates the invoice in finalized "open" status. When false or omitted, creates as draft. Maps to the documented ?finalize=true query parameter. |