Lexware Office icon

Lexware Office

Interact with the full Lexware Office (lexoffice) API

Actions48

Order Confirmation → Get PDF

AI-generated

Summary

Fetch the PDF or XML e-invoice file for a specific order confirmation from Lexware Office.

Inputs

  • id (required) — The unique ID of the order confirmation record.
  • accept — The format of the file to retrieve. Choose 'application/pdf' for PDF or 'application/xml' for XML e-invoice. Defaults to 'application/pdf'.
  • binaryPropertyName — Name of the binary property under which to save the downloaded file data. Defaults to 'data'.

Output shape

a binary file

Returns a JSON object containing the record's ID alongside the downloaded file in the binary payload. Note that requesting a file for a draft document returns an HTTP 406 error.

Examples

Example 1: Download order confirmation as a PDF

Set ID to the order confirmation ID and Format to 'PDF'.

Example 2: Download order confirmation as an XML e-invoice

Set ID to the order confirmation ID, Format to 'XML (e-invoice)', and Binary Property to 'invoiceXml'.

Links

Discussion