Lexware Office icon

Lexware Office

Interact with the full Lexware Office (lexoffice) API

Actions48

Dunning → Get PDF

AI-generated

Summary

Fetch the rendered PDF or XML e-invoice document for a specific Lexware Office dunning record.

Inputs

  • ID (required) — The unique identifier of the dunning record to retrieve.
  • Format — The media format to accept, either 'application/pdf' (PDF) or 'application/xml' (XML e-invoice). Defaults to 'application/pdf'.
  • Binary Property — The name of the binary output property where the file data will be stored. Defaults to 'data'.

Output shape

a binary file

Returns the document file as binary data under the specified property name along with a JSON payload containing the record 'id'. Note that draft dunnings return an HTTP 406 error.

Examples

Example 1: Download a dunning document as a PDF

ID: 'd9b1a2c3-4e5f-6a7b-8c9d-0e1f2a3b4c5d', Format: 'PDF', Binary Property: 'data'

Example 2: Download a dunning document in XML e-invoice format

ID: 'd9b1a2c3-4e5f-6a7b-8c9d-0e1f2a3b4c5d', Format: 'XML (e-invoice)', Binary Property: 'xmlData'

Links

Discussion