Extract a small, useful set of fields with evidence

Start with the fields your next process actually needs: supplier, invoice number, invoice date, currency, line items, subtotal, printed tax, total and amount due. Add a purchase-order reference when your workflow uses one. Treat invoices, credit notes and supplier statements as separate document types.

Microsoft's Document Intelligence invoice model extracts key fields and line items into structured JSON. That gives an application material to work with; your organisation still needs to decide whether those values make sense together.

For each important field, retain the extracted text, interpreted value, page location where available, confidence if supplied, and model version. Keep a reference to the original file. A reviewer should be able to jump from an unusual total to the relevant part of the document.

Use explicit checks before passing an invoice onward

Agree validation rules with the people responsible for the existing process. The following is a starting design, with exceptions routed for review rather than silently corrected.

CheckWhat to compareReason to pause
IdentitySupplier and invoice reference against trusted recordsUnknown supplier or conflicting identifiers
CompletenessRequired fields, page count and line-item continuityMissing currency, unreadable page or incomplete table
AmountsLines, adjustments and document totalsUnexplained difference outside an agreed tolerance
Dates and currencyOriginal text, explicit codes and confirmed conventionsAmbiguous date or incompatible currencies
DuplicatesFile identity and supplier invoice historyExisting record or a plausible resubmission
ApprovalRequired review and authorised next actionUnresolved exception or missing approval

A filled field can still be wrong. Preserve the difference between missing, unreadable, contradictory and confirmed data so the review queue explains what needs attention.

Reconcile totals using the document's actual structure

Keep line totals, subtotal, discounts, shipping, printed tax, invoice total and outstanding balance separate. Do arithmetic with decimal values and a defined rounding rule. Set tolerances for the document types you accept; do not invent a universal tolerance or force every supplier into one equation.

Hypothetical example. A document shows line amounts of EUR 600 and EUR 400, a EUR 50 discount and EUR 20 delivery charge. Its net amount is EUR 970. Adding the printed tax amount of EUR 194 gives a total of EUR 1,164. A stated previous payment of EUR 200 leaves EUR 964 due. These are invented figures to illustrate reconciliation, not a tax calculation recommendation.

If extraction returns EUR 964 as the invoice total, the figures do not reconcile as intended. Flag the field assignment and show both labels. Even a successful reconciliation only establishes internal consistency: match the invoice to the relevant order or receipt information when your process requires it.

Preserve currency and date ambiguity until it is resolved

Store a currency code alongside each monetary value. A dollar symbol alone may not identify the currency. If a document contains several currencies, keep their amounts separate and retain any printed exchange-rate information. Currency conversion belongs in an explicitly configured downstream step.

Google's Document AI normalisation documentation distinguishes literal text from standardised values and lists supported invoice fields. Its enrichment documentation also describes standardising supplier information. Keep those interpreted values alongside the original evidence, not in place of it.

For example, 03/04/2026 can mean 3 April or 4 March. Resolve it through a confirmed supplier convention or explicit document context; otherwise request review. Similarly, define how decimal separators and thousands separators are interpreted. A model's neat output should not hide an unresolved ambiguity.

Detect duplicate invoices at two levels

A file fingerprint can catch the same attachment arriving twice. It will not necessarily match a fresh scan or a PDF exported again. Also compare business identifiers, starting with supplier identity and invoice reference, then using amount, currency and date as supporting signals.

Preserve the original reference when normalising spaces or punctuation. Suppliers may use leading zeroes or reuse numbers across years. Treat near matches as candidates for review, especially for corrected documents and credit notes. Link a resubmission to its existing record, and give the downstream write a stable identifier so retrying a failed integration does not create another entry.

Use confidence to prioritise review, alongside business checks

Microsoft's confidence guidance describes estimated field confidence and its use in review decisions; it also notes that not every field returns a score. Missing confidence should remain visible.

Test thresholds on representative invoices you have checked by hand. Evaluate critical fields separately: a correct address cannot compensate for an incorrect currency or total. A high-scoring extraction must still pass reconciliation and duplicate checks. Avoid averaging scores into one number that conceals a failed critical field.

Make the human review step easy to act on

Build a controlled route from document arrival to an accepted record. A practical sequence is:

  1. Register the file, supplier context and receipt time.
  2. Classify the document and extract the required fields.
  3. Run arithmetic, identity, completeness and duplicate checks.
  4. Show exceptions with the original page and a clear reason.
  5. Record any correction, reviewer and decision.
  6. Send the accepted record onward once, retaining its destination identifier.

A reviewer should see “confirm whether this is the total or remaining balance”, rather than “AI error”. Changes to supplier bank details should follow a separate authorised verification process; extracting text does not verify those details. Keep record preparation and payment approval as distinct permissions.

This usually fits a bounded workflow. Our guide to agents and workflow automation explains how to choose the surrounding architecture.

Test difficult invoices before expanding the workflow

Use examples you are authorised to test: clear PDFs, poor scans, multi-page tables, unfamiliar suppliers, mixed currencies, ambiguous dates and duplicates. Hold back some checked documents for evaluation, including suppliers or layouts absent from development.

Measure correctness for critical fields, errors that passed validation, review time and duplicate handling. Sample accepted records too: looking only at rejected documents misses unnoticed failures. Recheck this set after a model or rule change. For operating costs, use the separate cost-per-successful-task framework.

If you want to map a first invoice workflow, discuss it with ValidVibe. Bring a few permitted sample documents, the required output fields and the current exception process.

FAQ

Can invoice extraction run without a person checking every document?

You can design a route that accepts documents meeting agreed checks and sends exceptions to review. Establish that route using your own evaluated examples, explicit limits and ongoing sampling. Documents being readable is not sufficient evidence that the whole process is reliable.

Is a confidence score enough to approve an invoice?

No. It describes an extraction prediction. It does not establish uniqueness, matching delivery, correct supplier details or payment approval. Use it to help route work, alongside field-level and process-level checks.

What should happen when the numbers do not add up?

Pause the record and show the discrepancy. Check missing lines, field labels, discounts, shipping, printed tax, previous payments and rounding. Preserve the extracted values and any human correction rather than altering a figure simply to make the calculation balance.

How do we prevent duplicates after an integration retry?

Use the same stable record identifier for retries, and check whether the destination already accepted it. Combine that delivery control with file fingerprints and invoice-identity checks. A repeat upload and a repeat API request are different ways the same invoice can arrive twice.

Sources

  1. Microsoft — Document Intelligence invoice model.
  2. Microsoft — Interpret and improve accuracy and confidence scores.
  3. Google Cloud — Normalization.
  4. Google Cloud — Enrichment.

Documentation checked on 26 November 2026. The validation workflow and worked example are an original practical design, not vendor performance claims.

About the author

ValidVibe Team works on practical AI workflows and integrations for businesses. Explore our automation and development services.