Back to Leansta Voices
CASE STUDIES
Building an Autonomous Enterprise Invoice Auditor in n8n: Zero-Touch Reconciliation for 28 Companies
CV
By Clara Vance
Independent Builder • Contributor
Published Mar 20, 2026
11 min read

Automating complex three-way invoice matching across purchase orders, packing slips, and bank statements using self-hosted n8n workflows.
Accounts payable teams spend an average of $45,000 per year per department manually cross-checking supplier invoices against purchase orders and goods receipt notes.
Here is the blueprint for the self-hosted n8n workflow cluster we deployed across 28 European logistics and manufacturing enterprises.
1. The Ingestion Layer
Invoices arrive via email or EDI webhooks. An n8n IMAP trigger detects incoming attachments, verifies SHA-256 file hashes to prevent duplicates, and routes PDFs into an Amazon Textract OCR pipeline.
2. Three-Way Reconciliation Logic
Our n8n sub-workflow executes a 3-way match:
1. Matches Supplier Tax ID and Purchase Order Number against SAP/NetSuite records.
2. Compares line-item quantities against warehouse Receiving Slips.
3. Validates unit prices and calculated VAT/tax brackets.
3. Human-in-the-Loop Slack Approvals
If variance is less than 0.5%, the invoice is automatically scheduled for payment. If discrepancy exceeds threshold, an interactive Slack card is dispatched to the procurement manager with:
• Discrepancy Breakdown
• Supplier Payment History
• One-click "Approve Exception" or "Reject & Email Supplier" buttons.
4. Cost & Performance
• Running on a single $40/month Hetzner server with Redis queues.
• Processing over 35,000 supplier invoices per month with 99.4% autonomous completion.
Peer-reviewed community submission. Built, not claimed.

