Pursue to a Credit Note
lexware_pursue_credit_noteCreate a credit note as a follow-up to a specified invoice, with the option to finalize it immediately or save as a draft.
Instructions
Create a new credit note as a follow-up to a preceding invoice. Maps to the documented POST /credit-notes?precedingSalesVoucherId={id}[&finalize=true] endpoint. Set finalize=true to immediately finalize the credit note; omit or false to create as draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| precedingSalesVoucherId | Yes | UUID of the preceding invoice that this credit note is pursued from. | |
| body | Yes | Credit note JSON body. Same shape as lexware_create_credit_note. See Lexware API docs for full schema. | |
| 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. |