Pursue to an Invoice
lexware_pursue_invoiceCreate an invoice from a quotation, order confirmation, or delivery note. Set finalize=true to create it as open, or false for a draft.
Instructions
Create a new invoice from a quotation, order confirmation, or delivery note via POST /invoices?precedingSalesVoucherId={id}[&finalize=true]; finalize=true creates status "open", false or omitted creates a draft. In introduction, lineItems[].description, and remark, use only Lexware formatting: bold, italic, and dash-prefixed list items separated by newlines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Invoice JSON body with required voucherDate, address, lineItems, totalPrice, and taxConditions. In introduction, lineItems[].description, and remark, use only Lexware formatting: **bold**, __italic__, and dash-prefixed list items separated by newlines. | |
| 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. | |
| precedingSalesVoucherId | Yes | UUID of the preceding sales voucher (quotation, order confirmation, or delivery note) that this invoice is pursued from. |