By Greg Nowak. Updated 23 November 2026.
An invoice can look ready for import while still carrying the wrong supplier, a duplicate invoice number, or a misread total. AI invoice processing needs checks between reading the document and creating the accounting record.
For a business owner or operations lead, the useful outcome is less manual entry with a manageable review queue. For an agency building the integration, that means agreeing who owns exceptions and how each invoice reaches a confirmed accounting record.
Start with how invoices arrive
Check whether suppliers already send structured e-invoices. Peppol BIS Billing defines structured invoice and credit note formats with validation rules. Where your systems support them, my recommendation is to use that data directly rather than extract it again from a PDF. Supplier, duplicate, and approval checks still apply.
For PDFs and scans, an extraction service can propose the fields. Microsoft’s invoice model, for example, extracts invoice fields and line items from digital PDFs, scanned documents, and images into structured JSON.
There is also a local reason to review the process. Denmark’s official guidance says other commercial businesses, including sole traders, enter digital bookkeeping from their first accounting period starting after 1 January 2026 if annual turnover exceeded DKK 300,000 in both preceding income years. That requirement concerns bookkeeping; AI extraction remains a separate implementation choice.
Define the accounting record before choosing the model
Agree the required fields with finance: supplier ID, document type, invoice number, dates, currency, net amount, tax, total, amount due, and any required line items. Preserve invoice numbers as text, including leading zeros. Distinguish missing values from zero.
For an OpenAI integration, Structured Outputs can constrain the response to a JSON schema. The documentation also warns that outputs can contain mistakes. A correctly formatted amount can still be wrong. Handle refusals and incomplete responses as exceptions.
Keep the original document linked to the proposed record. Store extracted values separately from later corrections, so reviewers can see what changed.
Put explicit checks between extraction and import
The following is a recommended control pattern to agree with whoever owns the bookkeeping. Each failed check should produce a reason and an owner, rather than leave the invoice waiting without explanation.
| Checkpoint | Proceed when | Review action |
|---|---|---|
| Required fields | Essential fields are present and supported by the document. | Highlight the missing or uncertain value. |
| Supplier identity | Details match one approved supplier. | Resolve conflicting identifiers; approve new suppliers separately. |
| Duplicates | No unresolved match exists in pending or imported records. | Compare supplier, invoice number, amount, and date. |
| Arithmetic | Lines, tax, charges, discounts, and totals reconcile. | Show the calculation and difference. |
| Business approval | Required purchase, coding, and approval checks pass. | Route to the responsible buyer or finance reviewer. |
| Accounting handoff | The destination confirms creation and supplies a reference. | Reconcile uncertain outcomes before retrying. |
Match suppliers using an agreed identifier, such as a CVR or VAT number, where available. A similar company name alone should not decide an ambiguous match. Changes to bank details need explicit approval through your established verification process.
Check duplicates within the relevant company’s records, including invoices still in the queue. Keep possible matches available for inspection rather than silently deleting them.
Use application code with decimal arithmetic for monetary checks. Agree rounding tolerances, tax treatment, discounts, and delivery charges with finance. Keep invoice total and amount due separate, and define how credit notes are represented. A credit note needs its own validation path.
Make the review queue useful
Show the original invoice beside the proposed values, highlight supporting text where available, and explain the failed check. Give reviewers specific actions: correct a field, select a supplier, confirm a duplicate, or request approval. Record who changed or approved what.
Where a service provides confidence scores, test them before allowing invoices through without review. Microsoft’s guidance on grounding and confidence recommends calibration by document type and field against representative, human-checked examples, followed by validation on held-out documents. Missing values need a separate policy.
Keep fields in review where confidence does not reliably separate correct values from errors. Recheck affected rules when formats, model versions, or extraction settings change.
Finish the accounting handoff
Before committing to an integration, check whether the destination API supports the drafts, attachments, supplier references, and coding fields you need. Agree ownership of account and tax mappings with finance.
Give each invoice a stable internal ID and an explicit status: received, awaiting review, approved, importing, or imported. Save the destination record reference before marking the import complete.
If a request times out, check whether the record was created before sending it again. Use documented idempotency features where available; otherwise, provide reconciliation for uncertain outcomes. Payment authorisation should remain a separate approval.
Run a pilot that measures the remaining work
Start with a defined supplier group and representative invoices. Include poor scans, adjustments, missing fields, and credit notes where these occur. Have finance confirm the expected records, then review every proposed import initially.
Measure corrections by field, time spent resolving exceptions, successful imports, and errors found in samples that passed validation. Assess extraction and running costs alongside review, maintenance, and reconciliation effort. Those results should decide where to expand automation.
If you want help scoping that pilot, talk to Greg. Bring representative invoices, the destination system’s details, and an outline of today’s process. Greg can help map the checks, review responsibilities, and API handoff into a concrete integration brief.
Related on GrN.dk
- From Supplier PDFs to Product Data: Where AI Needs a Second Check
- When AI writes JSON, one bad field can break the workflow
- Your AI Reads Supplier PDFs. Can They Rewrite Its Instructions?
Need help with this kind of work?
Discuss your invoice processing workflow with Greg Get in touch with Greg.