HAT Insights
Automated invoice reading with AI: process and accuracy checks
Automated invoice reading moves invoice data into accounting software without retyping. When AI is needed, a six-step process and which fields to check.
Published 7 min read

In short: Automated invoice reading means software extracts the seller, tax code, invoice number, line items and tax from an invoice and loads them into the accounting system, so nobody retypes them. A Vietnamese e-invoice that comes with its XML file can be read directly without AI; AI is only needed for images, PDFs and paper. Either way, the data still has to pass validity checks, be matched to the purchase order and be approved by an accountant before it is posted.
Entering supplier invoices is often the most time-consuming job in an accounting team's month-end: open the email, download the file, type each line, then check again because one digit went wrong. Automated reading replaces the typing and re-checking. The controls (is the invoice valid, does it match what was received, which account does it go to) still need a person.
What is automated invoice reading?
It is the use of software to pull the fields from invoices and supporting documents and turn them into structured data for the accounting system. Depending on the document, the software either reads the original data file directly, or recognises text in an image (OCR) and uses AI to work out which text belongs to which field.
That difference decides accuracy. Reading the original file gives you exactly what the seller issued. Image recognition always carries some chance of misreading, so it needs an extra layer of checks.
Do e-invoices need AI?
No, as long as you can get the XML file. Vietnamese e-invoices are structured data, with each field in a fixed tag, so software reads them directly. The accompanying PDF is just a human-readable rendering. Running AI over the PDF when the XML is available only adds risk.
| Document type | Recommended reading method | Reliability | Extra checks |
|---|---|---|---|
| E-invoice with XML file | Read the XML directly | Same as the original data | Invoice status, seller details |
| E-invoice received only as PDF | Request or download the XML; read the PDF only as a last resort | Fairly high if the PDF has a text layer | Compare with data on the tax portal |
| Invoices from foreign suppliers | OCR plus AI | Medium, every layout differs | Date format, currency, decimal separators |
| Receipts and documents photographed on a phone | OCR plus AI | Lowest, depends on the photo | Nearly every field; a person should look |
| Contracts and delivery notes attached to invoices | AI reads and matches them to the invoice | Varies | Quantities, unit prices, payment terms |
AI earns its place in the last two rows, as our guide to AI in finance and accounting explains: documents that accounting software cannot read on its own.
The invoice number and the duplicate trap
The invoice number is the sequence number the seller puts on each invoice. Decree 254/2026/ND-CP on e-invoices and e-documents took effect on 1 July 2026 (Forvis Mazars). According to a summary of its content appendix by einvoice.vn, the number uses Arabic digits, has at most eight digits, and starts from 1 on 1 January each year or from the date the invoice series is first used. Check the original text before relying on the detail.
This matters for automation. Because numbers restart every year and each seller runs its own series, two completely different invoices can share a number. To detect duplicates, software has to compare the full key: seller tax code, form symbol, invoice symbol and invoice number. Comparing the number alone produces both false alarms and missed duplicates.
The six-step process
Reading is only step two. The four steps after it are what keep the books right.
- Collect documents in one place. Set up a dedicated mailbox for supplier invoices and regularly download the list of purchase invoices from the tax authority's e-invoice portal.
- Classify and extract. The software separates XML invoices from images and PDFs that need OCR, then extracts seller, tax code, symbols, number, date, line items, tax rate, tax amount and total.
- Validate. Check the invoice exists in the tax authority's system, has not been replaced, adjusted or cancelled, that the seller is still active, and that it is not a duplicate. The chief accountant approves these rules and updates them when regulations change.
- Match to purchasing and stock. Match the invoice to the purchase order and goods receipt (three-way matching) to catch quantity and price differences. For services, match against the contract or acceptance record.
- Suggest the posting. The system proposes the account, cost code and supplier balance based on how similar items were posted before. Fixed-rule steps can run on RPA, while AI handles items that need the content understood. See AI process automation vs RPA.
- Approve, then post. An accountant reviews flagged invoices and approves the entries. Only then does data reach the official ledger, with a record of who approved it and when.
Which fields need accuracy checks?
Measure accuracy per field, not as "percentage of invoices read correctly". An invoice with a wrong tax code is a broken invoice even if every other field is right.
| Field | Typical error when read from an image | Automatic check |
|---|---|---|
| Seller tax code | One digit misread | Compare with the supplier list, look up on the tax portal |
| Invoice number and symbol | 0 read as O, 1 as I | Format check; duplicate check on the full key |
| Invoice date | Day and month swapped on foreign documents | Not after the receipt date, not far outside the current period |
| Net amount and tax | Thousand and decimal separators confused | Net plus tax equals total; tax equals net times rate |
| Line items | Wrapped item names, two lines merged | Sum of lines equals net amount |
| Item codes | Supplier codes differ from internal codes | Mapping table; unmapped lines go to a person |
Before going live, run a trial on a set of your own real documents, including bad photos and invoices with several tax rates, and count the fields that needed manual correction. Vendor accuracy figures are measured on their data, not yours. After launch, the most useful indicator is the share of invoices accountants have to correct, tracked by month and by document type.
The human control step
People keep three decisions the software must not make alone: accepting an invoice that triggered a warning, choosing how to post a new kind of expense, and posting to the official ledger. A simple rule: the software moves on by itself only when every check in the table passes; one failed check sends the invoice to a review queue.
The chief accountant should periodically sample invoices that were approved quickly, because the biggest risk is reviewers clicking through out of habit, not the machine misreading. Invoices from individual sellers and household businesses also contain personal data, so the reading tool should run in an environment the business controls. The broader framework is in AI governance and data security.
When AI reading is not needed yet
Hold off when most purchase invoices are e-invoices and your accounting software already imports the XML. Turn on that feature and clean up supplier and item lists instead. The same applies when you handle a few dozen documents a month and one accountant keeps up. AI pays off when photographed receipts, foreign invoices and supporting documents make up a real share of the volume and are delaying the close.
FAQ
What is an invoice number on a Vietnamese e-invoice? The sequence number the seller assigns when issuing the invoice: up to eight digits, restarting from 1 each year under the appendix to Decree 254/2026/ND-CP. Because numbers repeat across years and sellers, duplicate checks must also use the tax code and invoice symbol.
How accurate is automated invoice reading? For e-invoices read from XML, the data matches what the seller issued. For photos and PDFs, accuracy depends on document quality, so test on your own documents and keep the accountant's approval step.
Do I need new accounting software? Usually not. Many accounting packages already import purchase e-invoices; image reading can be a separate tool that pushes approved data into the accounting system via API.
Can it read phone photos of paper invoices? Yes, but this is the most error-prone type. Set a photo standard (good light, straight, all four corners visible) and route every such document through an accountant.
HAT Solution Consulting helps accounting teams set up invoice reading and validation that connects to the accounting software they already use, with the accountant's approval step kept in place. Describe the document types you receive each month and we will work out with you which ones can be read directly and which need AI. Get in touch, or read the overview on AI in finance and accounting.
Need advice for your business?
Talk to HAT Solution Consulting to get a digital transformation and AI roadmap that fits how you actually work.
Get advice