Pursue to a Credit Note
lexware_pursue_credit_noteCreate a credit note from a preceding invoice, choosing draft or finalized status to reduce the invoice open amount.
Instructions
Create a new credit note from an invoice via POST /credit-notes?precedingSalesVoucherId={id}[&finalize=true]; finalize=true finalizes the credit note, 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 | Credit note JSON body with 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 credit note in finalized status (immediately paid-off, reducing the invoice open amount). When false or omitted, creates as draft. Maps to the documented ?finalize=true query parameter. | |
| precedingSalesVoucherId | Yes | UUID of the preceding invoice that this credit note is pursued from. |