Pursue to an Invoice
lexware_pursue_invoiceCreate a follow-up invoice from a quotation, order, or delivery note; optionally finalize as open or keep as draft.
Instructions
Create a new invoice as a follow-up to a preceding sales voucher (quotation, order confirmation, or delivery note). Maps to the documented POST /invoices?precedingSalesVoucherId={id}[&finalize=true] endpoint. Set finalize=true to immediately finalize the new invoice (status "open"); omit or false to create as draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| precedingSalesVoucherId | Yes | UUID of the preceding sales voucher (quotation, order confirmation, or delivery note) that this invoice is pursued from. | |
| body | Yes | Invoice JSON body. Same shape as lexware_create_invoice. Required fields: voucherDate, address, lineItems, totalPrice, taxConditions. 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. |