Lexware Office icon

Lexware Office

Interact with the full Lexware Office (lexoffice) API

Actions48

Credit Note → Create

AI-generated

Summary

Create a credit note in Lexware Office via POST /v1/credit-notes.

Inputs

  • data — JSON object representing the request body for the credit note.
  • finalize — When set to true, appends the finalize=true query parameter to finalize the voucher immediately upon creation.
  • precedingSalesVoucherId — The ID of a preceding sales voucher to create this document as part of a document chain.

Output shape

a single record

Returns the created credit note object as returned by the Lexware Office API.

Examples

Example 1: Create a draft credit note with raw JSON data

Set Data (JSON) to the credit note object payload, Finalize to false, and leave Preceding Sales Voucher ID empty.

Example 2: Create and finalize a credit note from an existing invoice

Set Data (JSON) to the credit note payload, Finalize to true, and set Preceding Sales Voucher ID to the invoice ID.

Links

Discussion