+34 868 970 005 Mon–Fri 10:00–19:00 (CET)
Client area

Blog

Invoice OCR to automate your accounting

OCR Accounting automation SMEs Document AI Veri*Factu

How to stop keying in invoices one by one and build an invoice capture workflow that works in a real SME

Automation June 6, 2026 9 min read

Invoice OCR (optical character recognition applied to invoices) has promised to end manual data entry at SMEs for years, but until recently the results were lukewarm at best: wrong amounts, net and gross totals mixed up, crooked scanned invoices… The good news is that things have changed a lot in the last three or four years. Today's engines, especially those that combine classic OCR with language models, read a PDF invoice with around 95–98% accuracy on key fields, as long as the document is reasonably clean.

If you run an SME in Spain and your admin team still types invoices into accounting tools such as Holded, Sage 50, A3 or Contasol, this article is for you. We'll look at what PDF invoice recognition really means today, which pieces you need for a serious workflow, the typical mistakes in this kind of project and when it's worth making the jump. I'm telling you what we see in real projects, not what the sales brochure says.

And a warning: with Veri*Factu (Spain's new invoicing compliance system) coming into force and mandatory B2B e-invoicing under Spain's "Crea y Crece" law, digitizing invoices is no longer optional for many businesses. Arriving late to this will be costly.

What an invoice OCR system does today (and what it doesn't)

Traditional invoice OCR simply turned the image into text. That was it. You then had to tell the software where the tax ID was, where the amount was, where the taxable base was… using a template for each supplier. That worked if you had 20 regular suppliers. With 200, maintaining it was a nightmare.

Today's systems, the ones that are really worth it, do three things at once: they read the document (that's pure OCR), understand its semantic structure (which field is which) and validate the result against business rules. That last part is made possible by generative AI models trained on millions of invoices. That's why a decent engine can now extract data from invoices it has never seen before, with no template.

What you can expect

  • Header extraction: issuer, tax ID, date, invoice number, due date.
  • Totals: taxable base, VAT rate, VAT amount, withholdings, total.
  • Line items: description, quantity, unit price, amount.
  • Duplicate detection before posting.

Where it still struggles

Handwritten invoices are still a problem. So are gas station receipts printed on thermal paper that has almost faded. And watch out for PDFs made from phone photos taken in poor light: image preprocessing is still critical. Processing a native invoice from Holded is not the same as processing a scanned delivery note from a small supplier.

The real building blocks of an invoice digitization workflow

A serious invoice digitization project isn't "install OCR and you're done". It has five building blocks you need to be clear on from the start, because if one fails, the rest of the setup collapses:

  1. Multichannel intake: a dedicated mailbox (invoices@), a shared folder, a mobile app for receipt photos, integration with supplier portals and direct capture from the manager's email.
  2. Image preprocessing: straightening, cropping, contrast enhancement, and splitting documents when several arrive in a single PDF.
  3. Extraction engine: the OCR + semantic AI we've just discussed.
  4. Validation layer: checking the tax ID against the supplier database, math checks (base × VAT rate = VAT amount), duplicate detection, and matching against the purchase order or delivery note if there is one.
  5. Integration with the ERP or accounting system: this is where the project is won or lost. If the extracted data doesn't flow into the final system on its own, you haven't automated anything; you've just moved the work somewhere else.

Of these five, the most underrated is the first. If suppliers keep sending invoices to each department head's personal inbox, it doesn't matter how good your OCR is. The first step is to centralize the intake channel.

Automated invoice processing: which technology to choose for your volume

The right tool depends on how many invoices you process each month. Here's a rough map of what we usually recommend in real projects, without naming specific brands that may change tomorrow:

Up to 200 invoices a month

You don't need anything complex here. The automated invoice reading features built into cloud ERPs popular in Spain, such as Holded, Quipu or Contasimple, do the job well. It's their vendor's OCR, and it learns from your recurring suppliers. The extra cost is usually included or a small monthly fee.

Between 200 and 2,000 invoices a month

A specialized solution such as Rossum, Klippa, Dext or similar may make sense. Check the terms based on document volume, human review and API integration with your ERP.

More than 2,000 invoices a month

A more custom solution starts to pay off, with your own pipeline built on APIs such as Azure Document Intelligence, AWS Textract or fine-tuned open-source models. The cost per document drops, but the integration and maintenance effort rises. At this level it makes a lot of sense to rely on applied artificial intelligence solutions that combine OCR, validation and routing in a single workflow.

The cost of OCR is almost never the financial bottleneck anymore. What's still expensive is a well-built ERP integration and redesigning the approval process.

How to extract data from invoices and integrate it with your ERP without losing your mind

The hardest part of an OCR project isn't the engine; it's what happens next. Let's look at how to extract data from invoices and get it into your accounting system without creating more problems than you solve.

Supplier mapping

The OCR gives you a tax ID and a name. Your ERP has a supplier record with its internal code, its ledger account (typically 400 or 410 plus a sub-account in the Spanish chart of accounts), its payment terms and its payment method. You have to match the tax ID that was read against that record. If it doesn't exist, is it created automatically? Is it sent to a review queue? Getting this decision right prevents chaos.

Expense accounts

No OCR can guess which expense account (group 6 in the Spanish chart of accounts) each invoice belongs to. What you can do is train rules: "invoices from supplier X always go to 628000", or have a model learn from your history. This cuts 80% of the coding work, but the accountant still has the final say on non-recurring invoices.

Approval

If you post anything into your accounts without a filter, you'll book duplicate invoices, wrong amounts or unauthorized expenses. You need to design an approval workflow: typically, invoices below a certain amount go through automatically if they match a purchase order, and the rest go to human review. This ties in naturally with administrative task automation, because in the end it's the same problem: making data flow with judgment, not haphazardly.

Compliance in Spain: Veri*Factu, e-invoicing and record retention

Many people skip this part, and then the inevitable happens. If you're going to build a PDF invoice recognition system for a business in Spain, you have to think about three regulatory areas that apply right now:

Veri*Factu and Spain's invoicing software regulation

It affects issuing invoices more than receiving them, but it shapes the format your suppliers will start sending invoices in. You'll receive more invoices with QR codes and unique identifiers. Your capture system must be able to read them and use them as verifiable data.

Spain's mandatory B2B e-invoicing

Spain's "Crea y Crece" law makes electronic invoicing mandatory between businesses. When your supplier sends you a Facturae XML (Spain's e-invoice format) or a Peppol invoice, OCR is no longer needed: the data arrives structured. Your capture workflow has to tell the channels apart and process each one differently. Many companies are building OCR while ignoring this and will have to redo half their architecture within two years.

GDPR and record retention

The Spanish Tax Agency (AEAT) requires invoices to be kept for at least four years (six in some cases). And if you want digitization to replace paper (so you can throw away the originals), you need digitization software certified by the AEAT. Not every OCR on the market is. If that matters to you, ask before you sign.

Common mistakes when implementing invoice OCR at an SME

I've seen enough projects to know where people almost always trip up. Here are the five that come up most often, so you can at least avoid them:

  • Starting with the engine instead of the process. Buying the tool before mapping how invoices come in today and who does what with each one. A recipe for disaster.
  • Not measuring the starting point. If you don't know how many hours your admin staff spent entering invoices beforehand, you won't be able to justify the return afterwards. Measure time and error rate before you touch anything.
  • Expecting 100% automation from day one. A reasonable first-year goal is for 70–80% of invoices to go through with no human intervention. The rest will still need review, and that's fine.
  • Forgetting the cultural change. A long-serving admin employee may see the project as a threat. If nobody explains that their job will shift from typing to reviewing and controlling, and trains them accordingly, the project will sabotage itself.
  • Not connecting to the rest of your processes. Invoice capture is one link in the chain. If it isn't integrated with payments, bank reconciliation and the accounting close, the savings are only partial. That's why these projects fit best within a broader end-to-end process automation strategy.
OCR doesn't fail because of the technology. It fails because of misplaced expectations and attempts to skip the process redesign.

A real-world case: what this looks like at a 30-person SME

To make it concrete, here's a typical case we see often. An electrical supplies distributor in Valencia (Spain), 28 employees, around €6 million in annual revenue. It received about 800 supplier invoices a month, covering goods purchases, overheads and subcontractors. One admin employee spent roughly 60% of her working day entering invoices in Sage 50, matching them against delivery notes and filing PDFs in network folders.

The project was rolled out in phases. Months one and two: a pilot with the 30 most frequent suppliers, who accounted for 70% of the volume, using a specialized OCR engine connected to Sage via API. Month three: extension to all other suppliers and connection to the delivery note module for automatic matching. Month four: an approval workflow based on amounts, with notifications to the purchasing manager.

Results after six months: around 75% of invoices were posted with no human intervention, the time spent dropped to under two hours a day, and the admin employee also took on bank reconciliation and payment due-date control, which nobody had really handled before. Posting errors (mistyped amounts, wrong VAT) practically disappeared.

The hard part? Cleaning up the supplier database at the start: they had 40 duplicate tax IDs, incomplete records and wrongly assigned ledger accounts. Fixing that took three weeks. Without that groundwork, the OCR would have been a disaster. This is normal: 30% of the effort goes into things that aren't OCR but are essential.

When automating invoice capture is worth it (and when it isn't)

Not every case justifies a project like this. Here's my honest take, no sugarcoating:

It's worth it if…

  • You process more than 100–150 supplier invoices a month and spend more than half a day a week typing them in.
  • You have recurring data-entry errors that take time to fix or, worse, cause problems with the Spanish Tax Agency (AEAT).
  • You want to close the month before the 10th and currently finish on the 20th.
  • Your volume is growing and you don't want to grow your admin team.

It's not worth it (yet) if…

  • You process fewer than 50 invoices a month. The payback period will be far too long.
  • Your ERP is very old or very closed and has no API. You need to fix that before adding OCR, and sometimes it makes more sense to change your ERP first.
  • Most of your suppliers already send you Facturae or structured XML. What you need there is a parser, not OCR.

My quick rule of thumb: if the annual cost of the system (licenses + amortized integration) is lower than the cost of the admin hours saved in a year, the project stands up. Most SMEs with more than 150 invoices a month meet this ratio easily.

Setting up invoice OCR isn't magic: it's about planning document intake properly, choosing an engine that fits your volume and suppliers, and connecting the output to your ERP or accounting system so data flows without anyone touching it. When those three pillars are in place, your admin team stops typing and starts controlling.

If you start with a small pilot (200 invoices, two months, clear metrics for errors and time saved), you'll have real data to decide whether to scale. And if you do scale, do it in phases: domestic purchases first, then travel expenses, then intra-EU purchases. Each block has its quirks, and it's best to work through them one at a time.

OCR is no longer the bottleneck; integration is. Whoever gets that stretch right will have near real-time accounting, ready for Veri*Factu and for any tax inspection that comes along. Everything else is noise.

Need help with your project?

Request a free assessment and we’ll tell you how to apply what you’ve just read to your own business.