Skip to content
Back to Articles

Articles

How to automate invoice processing without replacing your ERP

Written by Roberto Postolovski, Founder & Tech LeadUpdated

Why the ERP isn't the problem

Most ERPs already handle posting, approvals and payment runs well. What they don't do is read a PDF that arrived in a shared mailbox, work out which vendor and purchase order it belongs to, and type it in. That step is where accounts-payable teams spend their time, and it can be automated without touching the ERP's core.

Replacing an ERP to fix invoice intake means migrating chart of accounts, vendors, open items and history. Adding a processing layer in front of it means connecting to what's already there.

The workflow, step by step

  1. 1.Capture

    Invoices arrive by email, upload or supplier portal. Each one is stored once, with where and when it came from.

  2. 2.Classify

    Invoice, credit note, reminder or something else entirely. Non-invoices are routed elsewhere instead of failing extraction.

  3. 3.Extract

    Vendor, invoice number, dates, purchase-order number, tax, totals and line items are read from the document.

  4. 4.Validate

    The extracted data is checked against your vendor master, open purchase orders and goods receipts, and the arithmetic is re-calculated.

  5. 5.Approve

    Clean matches can go straight through; anything that doesn't match goes to a person with the reason attached.

  6. 6.Post

    The approved invoice is created in the ERP through its API or a supported import, with the original document linked.

  7. 7.Monitor

    Every invoice leaves a log of what was extracted, what was checked and who approved it.

Extraction: OCR, AI models, or no extraction at all

Plain OCR turns a scan into text, but it doesn't know which number is the total. Prebuilt document models go further: Microsoft's invoice model, for example, extracts customer and vendor details, the purchase order number, invoice and due dates, addresses, line items and totals without custom training.

Check first whether you need extraction at all. In Germany, every business has had to be able to receive structured e-invoices since 1 January 2025, and issuing them becomes mandatory in phases from 2027 and 2028. Formats like XRechnung and ZUGFeRD carry the invoice data as XML: read it directly and keep OCR for the paper and PDF invoices that are left.

Validation is where the value is

Extraction gets data off the page; validation decides whether it can be trusted. The checks that catch real problems:

  • Matching against the purchase order (and goods receipt, where you use one) on quantities, prices and totals
  • Duplicate detection on vendor plus invoice number: the same invoice often arrives twice
  • Re-calculating line totals, tax and the invoice total instead of trusting the printed numbers
  • Flagging any change to a vendor's bank details for a person to confirm. Never update them automatically
  • Checking that the vendor, cost centre and tax codes exist in the ERP before anything is posted

Getting invoices into the ERP

Use the ERP's API where it covers invoice creation; use its supported import format where it doesn't. Screen automation (RPA) that types into the ERP's interface should be the last resort, because it breaks when the screen changes.

Whatever the route, make posting idempotent: if the same invoice is sent twice, the second attempt must be recognised and skipped rather than creating a duplicate liability.

Limits and edge cases

  • Several invoices in one PDF need to be split before extraction
  • Handwritten corrections and poor scans lower extraction confidence: route them to a person
  • Credit notes and partial deliveries need their own matching rules
  • Invoices without a purchase order need a coding decision a person should make, at least at first
  • Foreign-currency invoices need the rate your accounting policy prescribes, not whatever is printed

What stays with your team

Approving spend, resolving mismatches, coding non-PO invoices and confirming bank-detail changes. The goal is that people only see the invoices that genuinely need judgement, and see them with the reason already explained.

Sources

Related

Have a process like this?

Tell us how it runs today. We'll tell you whether it can be automated, what it would take, and whether the numbers make sense.