Validate XRechnung: KoSIT Validator, Schematron errors and what they mean
How the KoSIT Validator checks XRechnungen, what Schematron errors mean and how to automate validation.
How to build an automatic inbox with n8n that retrieves, recognizes, and forwards e-invoices.

An automatic inbox for e-invoices independently retrieves incoming invoices from an email inbox, recognizes the format of the attached file, and triggers further filing or accounting processing without anyone having to open each email individually. Technically, IMAP access to an existing mailbox is sufficient for this, since an email inbox is considered a permitted receiving channel for electronic invoices. This article shows how this chain can be built in n8n. As of: August 2026.
Yes, according to the FAQ on the e-invoicing obligation from the Bundessteuerberaterkammer an email inbox is a permitted transmission channel for electronic invoices, provided electronic further processing without a media break is possible, and it does not have to be a mailbox set up specifically for this purpose — an existing one is sufficient. This makes IMAP the obvious technical basis for an automatic inbox, since practically every common mail system supports this access.
The IMAP Email Trigger from n8n connects to a mailbox using a stored credential and continuously checks it for new messages. Several details can be configured here:
After retrieval, a downstream step first checks the file type and, for XML attachments, whether it is a pure XRechnung, a hybrid ZUGFeRD file with embedded XML, or another format. This branch determines the further path in the workflow: a structured invoice can be processed directly, while a plain PDF invoice without structured data requires an additional intermediate step, such as a manual check or text recognition, before it is transferred to accounting.
After recognition, the workflow passes the file to the filing system, such as a structured folder or a document management system, and simultaneously triggers the transfer of the invoice data to the accounting software. Only at this point do the actual deadlines and format requirements of e-invoicing apply, which we cover in a separate article on the e-invoicing obligation — this article only covers the technical retrieval and forwarding. For clients who want to set up this inbox as a fixed component of their automation with us, NordFlux handles the connection to the mailbox, filing system, and accounting system.
No, an existing mailbox is sufficient as a receiving channel; a separate address is not legally required. In practice, however, a dedicated mailbox or a subfolder makes automation easier, since the IMAP trigger can then be configured more specifically.
In this case, the workflow should treat the structured XML file as authoritative and file the PDF only as a reading aid, which corresponds to the usual structure of hybrid formats such as ZUGFeRD. You set a fixed rule for which attachment takes precedence yourself when setting up format recognition in the workflow.
The IMAP trigger responds to new messages continuously via the existing connection to the mail server; additionally, an option lets you set an interval in minutes for a forced reconnection, to catch unstable connections. For practical retrieval speed, this is sufficient for most mailboxes without further adjustment.
Not necessarily; it is primarily useful for companies whose accounting software does not include its own automatic e-invoice retrieval, or that need to connect multiple systems with different mailboxes. Where accounting software already offers a native solution, check on a case-by-case basis whether an additional n8n automation actually saves effort or just creates a second point of responsibility.
NordFlux builds digital employees for organisations: automations and AI agents that take over repetitive work. You stay in control.
How the KoSIT Validator checks XRechnungen, what Schematron errors mean and how to automate validation.
How the KoSIT visualization turns an XRechnung into a readable HTML or PDF view without replacing the original.
Receive from 2025, issue from 2027 or 2028: which e-invoice deadline your business faces and what the threshold depends on.
An automatic inbox that picks up PDF and XML invoices via IMAP, detects the format, and routes them correctly covers only part of the e-invoicing obligation. NordFlux builds the complete receiving process for your business, including the outgoing side and the connection to your accounting system.