How to extract data from invoices automatically
To extract data from invoices automatically, send every invoice to one place, let software read the fields you need (supplier, invoice number, dates, line items, tax, total), then check the result before it reaches your books. Test on last month’s real invoices and measure each field yourself. Add checks and send anything odd to a person.
- Invoice data capture means turning a PDF, scan or photo into fields: supplier, number, dates, line items, tax and total.
- Template OCR reads set zones on layouts you have set up; AI document reading copes with layouts it has not seen, but still needs checks.
- Test on a real batch of last month’s invoices and count errors field by field before you trust any tool.
- Checks catch what reading misses: totals that do not add up, duplicates, unknown suppliers and PO mismatches.
Step by step
Collect every invoice in one place
Pick one inbox address or shared folder and make it the only door. Ask suppliers to send invoices there and forward anything that lands in a personal mailbox. Scan or photograph paper invoices flat, in good light, the day they arrive. Keep each file as received, to link to the record later.
Decide the fields and where the data must land
Write down the fields you need and where each goes: your accounting tool, a spreadsheet or a database table. Start with supplier, invoice number, dates, tax and total, then add line items and PO number if you match orders. Note the date format and currency for each. Skip any field you will not use.
Test on last month’s invoices and score it yourself
Take a real batch from last month, including scans, photos, multi-page and handwritten ones. Run them through the tool and compare every field with the original. Keep a sheet with one row per invoice and one column per field, marking each right or wrong. This shows which fields to trust.
Add checks that run on every invoice
Add rules after reading: subtotal plus tax equals total, line items add to the subtotal, the invoice number is new for that supplier, the supplier is on your list, and bank details match those on file. If you buy against orders, match the invoice to the PO (two-way match) and to the goods receipt (three-way match).
Route exceptions to a person and keep the original linked
Decide who looks at a failed check and what they can do: correct a field, ask the supplier or hold payment. Send only failures to that person, so clean invoices flow through. Store the original document with the extracted record, so anyone can open the source when a number looks wrong.
Review weekly and tighten the rules
Each week, look at the corrections people made and the invoices that failed. If the same supplier or field keeps failing, fix the cause: ask for a PDF instead of a photo, or add a rule. Re-test on a fresh batch after any change. See also the month-end close checklist.
What data can you extract from an invoice?
The table shows where each core field usually sits, what commonly goes wrong and which check catches it. Which fields are legally required depends on the country and on whether tax is charged, so check your tax authority’s guidance.
| Field | Where it usually is | Common extraction error | Check that catches it |
|---|---|---|---|
| Supplier name | Header or logo | Logo read as an image, or trading name differs from legal name | Match against your known supplier list |
| Invoice number | Top right, near the date | Confused with a PO, account or order number | Duplicate check per supplier |
| Invoice date and due date | Top block, or in the payment terms | Day and month swapped; terms read as a date | Date must be plausible and not later than the due date |
| Tax registration number | Header or footer | One digit misread, or a letter taken for a digit | Format check, then compare with the supplier record |
| Line items | Table in the middle, often over pages | Rows merged or split; wrapped description read as a new row | Line totals sum to the subtotal |
| Subtotal, tax and total | Bottom right | Total confused with the amount due after a credit or deposit | Subtotal plus tax equals total |
| PO number | Header, reference box or line notes | Missing, or copied from another reference | Two-way match to the order; three-way to the receipt |
| Bank details | Footer or payment section | Digits misread; details changed by a fraudster | Compare with details on file; confirm changes by a second channel |
What is the difference between template OCR and AI document reading?
Template or zonal OCR reads text from fixed positions you define for each supplier layout, while AI document reading identifies fields by meaning and so copes with layouts it has not seen. Template OCR is predictable but needs setup for each new format. AI reading needs less setup but can still misjudge a field, so the checks matter for both.
How well does invoice OCR cope with scans, photos and handwriting?
Clear, printed PDFs read best, and quality drops as the source gets worse. Blurry photos, skewed scans and faded thermal paper cause misread digits, and handwriting is harder still, so keep a person on it. Multi-page invoices tend to fail at page breaks, where line items continue and the total sits on the last page.
How do you catch invoice fraud when data is automatic?
Treat a change of bank details as a fraud signal until someone confirms it. The FBI’s Internet Crime Complaint Center describes business email compromise and advises using secondary channels or two-factor authentication to verify requests to change account information.
How long do you have to keep invoices?
It differs by country, so check your own tax authority. The IRS says how long to keep a document depends on the action, expense or event it records, and that you must keep records as long as needed to prove income or deductions on a return. HMRC’s VAT Notice 700/21 says VAT business records must be kept for at least 6 years. This is general information, not legal, tax or procurement advice, and rules change, so check the official pages.
A field-by-field test sheet
- One row per invoice: supplier, invoice number, date, due date, tax number, line items, subtotal, tax, total, PO number.
- One column per field: mark each value right or wrong against the original.
- Totals row: errors per field, to see which fields need a check.
Common mistakes to avoid
- Trusting a tool’s accuracy claim instead of testing it on your own suppliers’ invoices.
- Reading the fields but adding no checks, so a wrong total or a duplicate still gets paid.
- Treating handwritten or photographed invoices like clean PDFs.
- Losing the link between the extracted record and the original document.
How Document AI helps with invoice data extraction
Document AI is FrugalPod’s document reading service. FrugalPod agents read invoices and bills as PDFs, scans and phone photos of printed documents, pull out dates, amounts, names, tax numbers and line items, check them against your records such as purchase orders, catch duplicates, and file each document with its data in your accounting tool, a database table or a File Store folder. Mismatches are flagged for a person. See pricing, or book a demo.
Related
Sources
Common questions
Something missing? Write to admin@frugalpod.com and a person will reply.
How do I extract data from a PDF invoice?
Use software that reads the PDF and returns named fields such as supplier, number, date, line items and total. Check a sample against the originals, then add rules for totals and duplicates before data enters your accounts.
What is invoice OCR?
Invoice OCR is optical character recognition applied to invoices: it converts a page image into text. On its own it gives text, not fields. You still need a step that decides which text is the supplier, date or total, plus checks that catch errors.
What is a three-way match?
A three-way match compares the supplier’s invoice, your purchase order and your record of goods received. If they agree, the invoice can be paid. A two-way match compares only invoice and order.
Can software read handwritten or photographed invoices?
Sometimes, but with more errors. Handwriting and blurry or angled photos are the hardest cases, so keep a person checking them. Ask suppliers to send a PDF wherever they can.