Supplier invoices arrive by email as PDFs, and now and then as a photo someone took with their phone. Someone has to open each one and key the supplier, invoice number, date, subtotal, tax and total into the accounting software. The question everyone is asking: can ChatGPT do that? The short answer is yes. The question that matters more is a different one: when it gets a number wrong, who notices?
Can ChatGPT read an invoice? The short answer
Yes. A current language model pulls the supplier name, invoice number, date and total out of a clean PDF correctly most of the time. It struggles as the line-item table gets longer, as columns shift, and when the document is a photo. The real risk isn't nonsense; it's a wrong number that looks reasonable: a tax amount with one digit off slips past a tired eye. So this article is less about “can it read?” and more about “what do you check what it read against?”: five checks to run in code, three ways to catch a duplicate, and what reading one invoice actually costs.
What it reads well, and where it slips
The fields you expect from an invoice are these: supplier name and tax ID, invoice number, invoice date and due date, currency, subtotal, discount, net amount, a line per tax rate with its base and tax, the total, and the line items (code, description, quantity, unit price, discount, tax, amount). The header fields are the easy part; the trouble lives in the numbers and the tables.
The mistakes we ran into while testing on our own test documents show well what to watch for:
- One digit off: in one of our tests, the tax total of a test invoice with two rates (10% and 20%) came back as 4,091.36 instead of 3,091.36. The number looked plausible; what caught it was the total check.
- A label landing in the wrong field: a “VAT 0.00 USD” line in the totals block was once taken for a tax ID.
- Repeated lines merged: when the same product appeared on two separate lines, the model collapsed them into one.
- Column drift: a product code that wrapped onto two lines slid into the next column.
We fixed the last three on the reading side: the PDF text now goes in with its columns intact, and the model is told not to merge identical rows. But the first example is the lesson: a better model or a better prompt makes this kind of error rarer, not impossible. The closest thing to impossible is to compare each number that was read against the other numbers on the same invoice.
Reading is not checking: 5 checks to run in code
The principle is simple: the model doesn't do the math; it copies what is printed, and code does the math. Asking the model to “calculate the total” hands it the only tool that could have caught its mistake. Instead, the model writes down what it sees and code asks five questions. None of them needs AI; each is a few lines of arithmetic.
1. Net + tax = total
Say the subtotal is $1,240.00, the sales tax at 8.25% is $102.30 and the printed total is $1,342.30. If the tax comes back as $182.30, net plus tax is $1,422.30, eighty dollars off the printed total, and the invoice goes to review instead of into the books. Leave a tolerance of a few cents (we use 0.02): tax rounded line by line can end up a cent or two away from tax calculated on the total. We cover why VAT rounding differs per line or on the total in a separate article.
2. On every tax line, base × rate = tax
Lines can be wrong even when the total adds up. If an invoice splits tax across two rates, multiply each line on its own, then check that the tax lines add up to the tax total and the bases add up to the net. In the US a single sales tax rate per invoice is the usual case; where several rates or taxable and exempt lines appear together, this check is what tells you the split is right, not just the sum.
3. Is it a rate you actually pay?
If the rate that was read isn't one you ever see, that's a flag. In the US there is no single national list: sales tax depends on the state, county and city, so the practical check is a list of the rates your own suppliers charge you. A rate outside that list may be right (a new supplier in a new state) or a misread; either way a person should look before it's booked.
4. Is the date in the future, or very old?
A future-dated invoice is either misread (day and month swapped) or genuinely odd. A very old one (we use 400 days as the limit) is often an old document forwarded again. In both cases a person should decide. Date order depends on the country, and an invoice from a European supplier dated 03.11 means November 3, not March 11: exactly the kind of place a model goes wrong without saying so.
5. Is a required field empty?
Without the supplier, invoice number, date, total and currency there is nothing to book. On a photo with the top of the page cut off, those fields should come back empty, and an empty field holds the invoice back. An empty field isn't a failure; it's honesty. The real danger is a model that fills them in with a guess; more on that below.
The same check also catches the supplier's own mistakes: on the test invoice above, the lines and the VAT are right but the printed total is ten too high. The AI copied what was printed correctly; it's the invoice that doesn't add up. The check can't tell those two cases apart, and it doesn't need to: in both, nothing should be booked until someone has looked.
Duplicate invoices: three keys
The same invoice arrives twice: the supplier resends it as a reminder, a colleague forwards it, someone in the field photographs the paper copy. Looking at the invoice number alone isn't enough; the number can be written differently (“INV-2026/0142” versus “INV20260142”) or not be readable on a photo at all. Use three separate keys:
- Same file: if the file's content fingerprint (a hash) matches one seen before, there is nothing to read; it's flagged as a duplicate without spending anything on AI.
- Same supplier + same invoice number: the supplier matched by tax ID or a normalised name, the number compared with spaces, dashes and slashes stripped out.
- Same supplier + same date + same total: this catches the photo of an invoice that also came as a PDF, even when the number can't be read.
The third key will now and then match two genuinely separate invoices (two deliveries, same day, same amount). That's why a document flagged as a duplicate isn't deleted; it goes to review and you decide. The cost of a duplicate isn't only paying the same bill twice: it also inflates your expenses and, where you reclaim tax, the tax you reclaim. If one has already been booked, fix it with your accountant.
When it isn't sure, it shouldn't guess
A language model would rather fill a gap than leave it, and on an invoice that's the most expensive habit it has. Set three rules: (1) tell the model explicitly to leave a field empty (null) when it can't read it; (2) have it report separately which fields it was unsure about and how confident it is overall, and hold back anything under your threshold; (3) have it read the document type too: a proforma, a quote or a credit note must not be booked like a bill. A proforma invoice is not a tax invoice, and booking a quote or a proforma as an expense does more damage than a duplicate.
What these three rules and the five checks produce together is an approval list: every document that fails a check, looks like a duplicate or that the model wasn't sure about waits there, with the reason written next to it. A person opens it, fixes the field next to the original PDF, then approves or rejects it. If you're the one sending proformas, there's a free proforma invoice generator for that; this article is about the documents coming in.
That's how we built Smartifie Invoice Automation, an invoice agent that leaves doubtful invoices for approval: it reads the mailbox, has the AI read each PDF and phone photo, runs the five checks and the duplicate search in code, puts whatever it isn't sure about in the approval list, and hands you what you approved as a CSV file for your accounting. It doesn't post entries or pay bills, and it doesn't connect directly to a particular accounting package; you bring the CSV in with your software's import.
The video below shows the whole flow: test invoices are read, a wrong total is caught, a line is edited next to the original PDF, the photo of an invoice that also came as a PDF is flagged as a duplicate, and the approved ones go to accounting as a CSV. All invoices in it are test data: the suppliers, numbers and amounts are invented.
Watch how it works
Real screens, start to finish.
Extract Invoice Data from Email with AI | Smartifie Invoice Automation
Supplier invoices land in your inbox as PDFs and phone photos. Smartifie Invoice Automation reads them with AI, checks totals, tax and duplicates in code, and never guesses: anything unclear waits in an approval list next to the original PDF.
The video loads from YouTube when you press play.
When you don't need AI at all
Some invoices don't need reading. If a supplier sends a structured e-invoice (a UBL or EDI file), or your accounting software already pulls bills straight from a supplier portal or bank feed, the data is already structured: import it, don't have a model re-read a picture of it. Reading turns a known number into a guess you then have to check.
For most small US businesses, though, there is no general e-invoicing mandate, and a PDF attached to an email is still how supplier bills arrive, along with the odd phone photo of a paper invoice or receipt. That's where AI reading earns its keep. Our own product follows the same line: it doesn't read XML; it reads the PDFs and images in the mailbox and skips XML attachments.
Before you send an invoice to an AI service
An invoice holds business and personal data side by side: your tax ID and the supplier's, addresses, email and phone, bank details, sometimes a person's name. When you send it to an AI service, that data goes to that service's servers. It makes sense to strip what isn't needed before it leaves: reading the amounts doesn't require a bank account or a phone number.
Here is what we do: before the PDF text is sent, email addresses, phone numbers, bank account numbers (IBANs) and card numbers are removed; tax IDs are replaced by a code and put back when the answer comes in. Photos go as images; the text inside a photo can't be masked. The reading is done by OpenAI's API. According to OpenAI, business data sent to the API isn't used to train its models by default, and inputs and outputs may be kept for up to 30 days to detect abuse. Whether that fits your own privacy obligations and customer contracts is a call for your counsel, not for us.
What does it cost to read one invoice?
Our own measurement: reading 15 test documents with one of OpenAI's small models cost about $0.02 in total, roughly $0.001 to $0.002 per document. A three-page proforma with 20 line items cost about $0.003 in a single call. Those figures are at OpenAI's prices on November 30, 2026, and move when the prices do.
In other words, the reading itself is close to free. The real cost is the time of the person who checks the exceptions. If you still have to open and check every invoice one by one, the AI has only saved you the typing. So the measure of a good setup isn't “how many invoices did it read?” but “how many did I have to look at, and why?”
How to test it on your own invoices
Before you trust any setup, measure it on your own documents. A small test set of 10 to 20 documents is enough, as long as it includes the hard cases:
- a few clean PDFs with a single tax rate;
- an invoice with a total that's wrong on purpose;
- an invoice with two tax rates, or taxable and non-taxable lines;
- a phone photo of one invoice already in the set (it should be caught as a duplicate);
- a photo with the top cut off (the fields should come back empty);
- a proforma or a quote, and an attachment that isn't an invoice at all (a newsletter, a catalog).
Write down the expected value of each field for each document before you start, then compare field by field and count correct fields out of total fields. That's how we counted our own result: our test set of 15 documents is 7 synthetic test invoices we made ourselves plus 8 quotes and proformas produced in Smartifie Quote, and 98 of the 98 fields with an expected value were read correctly. These are test documents, not real customer invoices; on your invoices the result may differ, which is exactly why you measure. Every planted problem (wrong total, duplicate photo, cut-off header, proforma, newsletter) ended up in the approval list.
A short checklist:
- Don't let the model do the math; it copies what's printed and leaves blank what it can't read.
- Net + tax = total, every tax line, the rate, the date, the required fields: all five in code.
- Three keys for duplicates: same file, supplier + number, supplier + date + total.
- Separate proformas, quotes and credit notes.
- Import what comes structured; don't have it read.
- Strip personal data you don't need before anything leaves.
In short: ChatGPT can read your invoices; what lets you trust the result is the checking that comes after the reading.
If you want to try this on your own mailbox, you can use Smartifie Invoice Automation free for 3 days: 15 documents on our AI, or unlimited with your own OpenAI key.