Home / Blog / Article

Email Lexoffice Integration for Incoming Receipts

Set up an email Lexoffice integration for supplier invoices and receipts. Use the Lexware Office inbox or validate and upload attachments with n8n and the API.

🤖 AI & Automation Published on December 4, 2026 | Read time: approx. 12 minutes | Author:
Email Lexoffice Integration for Incoming Receipts

A supplier invoice is sitting in someone’s inbox while the accounts team is waiting for it in Lexware Office. The built-in receipt inbox and an n8n workflow offer ways to automate that handoff and keep accounting decisions with the people responsible for them.

Part of our Themen-Hub series:

This article is an in-depth expert contribution from our content cluster. Discover the complete overview on our main page: Accounting and ERP Integration →

Email Lexoffice integration for supplier invoices and receipts

The bottleneck often starts after the email arrives. A buyer opens a supplier invoice, saves the attachment and tells the accounts team later. If someone else has already forwarded the invoice, accounts may have to check which copy went through. An automated handoff helps when everyone knows where to look for the document and how to tell whether it is ready for review.

If you used lexoffice before the name change, look for Belegempfang in Lexware Office. This guide covers inbound files such as supplier invoices and expense receipts, from the mailbox to the review queue. See the Lexware Office features and API guide for the wider product and how to automate accounting for the steps after intake. If you also want to match incoming files to an order or an ERP record, define that rule as part of the accounting and ERP integration.

How the built-in inbox handles email receipts

Set up and test the receipt address

Lexware offers automatic receipt intake by email in Lexware Office XL. In the web app, open Einstellungen → Belegempfang → Jetzt einrichten (Settings → Receipt intake → Set up now). Choose the part before the @ sign in your new address. Lexware allows up to 20 approved sender addresses, which can belong to suppliers, staff or a shared company mailbox. Lexware also describes the expansion to multiple approved senders in its product update. Lexware Office setup guide, Lexware product update on approved senders.

Send a test attachment from the address that will actually submit the files. Your receipt address ends in @inbox.lexware.email. Ask the accounts team to confirm that the document appears under Zu prüfen (To review). Lexware documents configurable error reports and a receipt summary for the recipient. Senders receive no automatic acknowledgement of successful delivery. If your team uses a shared mailbox, run the test with its real forwarding rule and check whether Lexware treats the forwarded message as coming from an approved address. Lexware Office setup guide, Lexware sender guide.

Which attachments can be submitted?

Lexware lists PDF, JPG/JPEG, PNG, TIF/TIFF and XML for electronic invoices as supported formats. The whole email can be up to 20 MB and contain up to 20 attachments. The service excludes password-protected or encrypted files and archives such as ZIP. It processes file attachments. If the invoice only appears as a link or in the message body, have someone retrieve the document and submit it through the appropriate route. Lexware sender guide.

An email can include both the supplier invoice and its delivery note. If those documents need different treatment, make that decision in the mailbox or at a validation step before uploading. A readable attachment can still lack the information your team needs to tell which invoice it supports or which account should receive it.

From mailbox to validation and upload

The mailbox passes attachments to n8n for validation. Eligible files go to Lexware Office through the API and exceptions go to manual review.
Documents move from the invoice mailbox through validation in n8n to the Lexware Office review queue. Unsupported attachments and uncertain destinations go to a person for review.

Start your workflow with a dedicated invoice mailbox or folder. The mailbox rule gathers messages likely to contain an invoice. Validation takes place per attachment and determines whether the file is eligible and which account should receive it. The upload response tells you what Lexware accepted. If a document is missing from the queue, the accounts team can look up whether it is still in the mailbox, in manual review or already in Lexware.

Illustrative example. A business has separate mailboxes for different legal entities. The mailbox that received the email determines the Lexware destination. If the document arrives in a shared folder and the routing rules cannot identify an entity, it goes to manual review. A project reference in the mailbox can give the reviewer a lead. If the buyer named on the invoice differs from the expected entity, the person reviewing the document decides where it belongs.

Track the result per attachment. An email might contain a valid invoice and a corrupted file. The accounts team can receive the valid invoice while seeing why the other file was rejected. A status that describes the whole email gives the team too little information to decide which document to send again. Keep a reference to the source message and its attachment so the person handling the exception can find both.

Reconcile the submission routes before switching

If you move from the built-in inbox to the API workflow, check which suppliers already send directly to Lexware and which files come through your mailbox. When a supplier moves to the new process, tell them where to send invoices and update any existing forwarding rule. Otherwise the same attachment can enter the review queue through the mailbox and through direct submission. The same issue can occur when staff forward a test message again out of habit.

Use a dedicated folder to limit which messages enter the trial. Run the intake as far as validation and inspect which attachment the workflow would choose for each case. Agree with the accounts team on how to confirm the handoff. For the built-in route, check that the file appears under Zu prüfen. For the API route, also match the upload response to the source message. That way you can spot a rule that finds the right email but selects the wrong file before you switch. Lexware Office setup guide, Lexware upload response.

Invoice automation with n8n and the Lexware Office API

The official n8n documentation index lists no built-in Lexware or lexoffice node. This setup uses n8n with Email Trigger (IMAP) to receive messages and HTTP Request to call the Lexware Office API. n8n documentation index, Email Trigger (IMAP), HTTP Request.

  1. Connect the invoice mailbox over IMAP

    Save the IMAP connection in n8n credentials and select the invoice folder in Mailbox Name. Set Format to Resolved and enable Download Attachments so the trigger makes attachments available as binary files. While testing, you can keep Action set to None. Mark as Read refers to receipt by n8n. Track the upload outcome separately. n8n IMAP trigger documentation.

  2. Validate attachments and determine the destination

    Use the Code node to output an item per attachment. Put the binary file in a consistent field, such as receipt, and carry forward the metadata needed to route the item and trace it back to the message. Use getBinaryDataBuffer() to read the file bytes for validation. An If node sends eligible items to the upload branch and exceptions to a review branch. n8n Code, Binary data in n8n, n8n If.

    Check the format, file contents and size. A plausible extension tells you little about whether the file will open. Lexware documents PDF, JPG, PNG and XML up to 5 MB per file for an API upload of type voucher. TIFF appears on the email intake list, so give it a manual review path in the API workflow. When an invoice is expected but the message has no attachment, have the Code node emit a review item. Without that item, the message reaches neither branch of the If node. Lexware API file upload, Lexware email attachment formats.

  3. Upload the receipt with HTTP Request

    Create a private API key in the destination account and store it as a generic Bearer Auth credential in n8n. Give the key the permissions required for the handoff. When routing to different companies, set up fixed workflow branches that each use the appropriate credential. Keep the destination account and upload URL under workflow control, independent of values supplied in the email. Lexware API key, Lexware authentication, n8n HTTP credentials.

    In the HTTP Request node, set the method to POST and the URL to https://api.lexware.io/v1/files. Turn on Send Body and choose Form-Data. Add a text parameter named type with the value voucher. Add a parameter of type n8n Binary File, with Name set to file and Input Data Field Name set to receipt. n8n assembles the multipart request. Lexware upload parameters, Form-Data in n8n HTTP Request.

  4. Record acceptance and review the receipt

    Enable Include Response Headers and Status in HTTP Request. Lexware returns id and voucherId with 202 Accepted. Record both with the source reference. The voucher starts in blank status and moves to unchecked once asynchronous text recognition finishes. The accounts team then reviews the entry under Zu prüfen and decides how to record it. Lexware upload response, n8n response options.

    For a file that belongs to an existing voucher, Lexware documents a separate operation, POST /v1/vouchers/{id}/files. Use it when there is a confirmed match to an existing voucher. The general /v1/files upload feeds the review queue. Attach a file to an existing voucher, Lexware file upload.

Handling failures, GDPR and document retention

Resolve upload failures by cause

Lexware documents a limit of 2 requests per second per client across resource endpoints. According to Lexware, a request that returns 429 did not run. Use shared throttling with headroom for uploads and status checks that may run concurrently. Retry after a delay, increase the delay on repeated rate limits and send the item for review once the retry budget runs out. Spacing requests inside one execution leaves open the possibility that multiple executions will hit the shared limit together. Lexware API rate limits.

For this upload, Lexware documents 400 for a missing or invalid upload type and 406 for invalid contents or an image processing error. For 401 or 403, check authentication, permissions and request configuration. Correct the problem before sending the same request again. If you enable Never Error in HTTP Request, have the next node evaluate the returned HTTP status. Handle connection failures separately because you may have no HTTP response to inspect. Lexware file upload, Lexware status codes, n8n response options.

A timeout leaves the result uncertain. Store a stable reference per file and destination account, such as a checksum of the unmodified bytes, and prevent parallel uploads for the same reference. If you already have Lexware IDs, reconcile those before retrying. Lexware documents that the general file upload returns the existing IDs for an identical file of type voucher. A supplier can regenerate the PDF and send the same invoice in a file with different bytes. That kind of duplicate needs review using the invoice details. Lexware file upload and checksums.

Make the exception record specific enough that someone can act on it. It should tell the person which attachment failed, which account should have received it and who owns the case. The accounts team can then mark an accepted PDF as received and investigate only the rejected file. A generic workflow failure leaves the operator guessing about which upload to repeat.

Protect data from the mailbox to the execution log

Invoice attachments can contain names and bank details. Limit processing to the mailboxes, fields and recipients that the handoff requires. An error record can often use an internal reference, destination, status and failure reason. Check whether n8n executions store messages and attachments and who can view that data. If a service provider processes personal data on your behalf, clarify the provider’s role and the processing arrangements. The GDPR provides the basis for limiting access and storage. General Data Protection Regulation on EUR-Lex.

What the German retention rules cover

For German recordkeeping, the GoBD distinguish between the contents of the message and the attachment. The Federal Ministry of Finance explains that an email used solely to transport an attachment does not itself need to be retained when it contains no other information subject to retention. An email that serves as business correspondence or as an accounting document can itself be subject to retention. Check the content before using upload success as a cue to clear the mailbox. German Federal Ministry of Finance, GoBD in the official Fiscal Code handbook.

Under the GoBD, electronic accounting documents generally need to be kept in the format in which you received them. For an e-invoice, retain the structured component. Also retain the human-readable component if it contains additional or differing information relevant for tax purposes. In your workflow that means preserving the XML of an XRechnung or the embedded XML in a ZUGFeRD invoice. Decide where originals and any processing history stay accessible before clearing temporary copies from the mailbox or n8n. German Federal Ministry of Finance, GoBD, German e-invoice formats explained.

When each approach makes sense

Start with built-in intake if your team uses Lexware Office XL, has known senders and reviews their files in the same queue. Test the receipt address using representative supplier emails. If the files are ready to review and Lexware’s notifications cover the failure cases you expect, the team can run the process by managing the address and the approved sender list and reviewing incoming documents. Lexware Office setup guide.

A custom workflow makes sense when you make recurring decisions before upload. For example, the receiving address might identify the destination account, or your team might need to distinguish invoices from supporting documents. Decide who owns these rules, who resolves rejected files and how the accounts team can locate an open item during an outage. If portal links arrive only occasionally or every case requires someone to decide where the document belongs, a named owner and a manual upload may be enough.

Test both approaches with cases your team expects to see. A standard supplier invoice tests the handoff. An unsupported attachment tests whether someone can see and resolve an exception. A repeated submission of the same file shows whether the reference stays stable. You are ready to use the process when accounts can trace each test from the source email or the status record to the Lexware review queue or the person handling the exception.

Frequently asked questions about email integration

Can I forward receipts automatically to Lexware Office?

Yes. In Lexware Office XL, an approved company mailbox can forward attachments to the configured receipt address. Test the actual forwarding rule and verify that the file appears under Zu prüfen.

Set up a manual review path. Built-in receipt intake processes attachments. For a portal link, have the person responsible retrieve the original file through the intended access route and then upload it.

Which n8n node do I use for the upload?

Use HTTP Request with bearer authentication and Form-Data. Send the binary file in the file field and set the type field to voucher. Email Trigger (IMAP) supplies the incoming attachment from the mailbox.

Does uploading a receipt post it to the ledger?

The upload makes the document available for review in Lexware Office. The accounts team then records the receipt and makes the accounting decision about posting it.

Official sources and primary documentation

Sources checked on 4 December 2026.

Accounting and ERP integration for your business?

I deliver this for small and mid-sized businesses: at a fixed price agreed upfront, working directly with the person who builds it. Process, scope and pricing are on the service page.

See service & pricing Or request a free intro call

Extended Specialized Glossary

Lexware Office

Cloud accounting software formerly called lexoffice. Its receipt inbox and public API provide separate ways to submit incoming documents for review.

n8n

A workflow automation platform that can read from an IMAP mailbox and send files to other systems over HTTP.

GoBD

German administrative principles on keeping and retaining electronic books, records and documents, and on providing access to that data.

Upload idempotency

Submitting the same file again to the same account should have the same effect as the original attempt. The workflow needs a stable reference for the file and its destination.

Alexander Ohl

Alexander Ohl

Automated assistant • Online

Hello! I am the Pragma-Code Assistant. How can I help you today? You can ask me about our services or select a topic below.