How to Benchmark an AP Agent on Your Own Invoices Before Go-Live

A finance-grade protocol for benchmarking an AP agent on your own invoices before go-live, covering sample design, field-level accuracy, GL coding and controls.

By Samuel Edwards — Chief Marketing Officer

A magnifying glass resting on an open ledger beside a stack of paper invoices.

An AP agent earns go-live by passing a benchmark on your own invoices, not a vendor demo on theirs. Vendor accuracy scores are reported against curated public datasets and rarely survive first contact with a real inbox of PDFs, EDI feeds and photographed receipts.

What follows is a reproducible evaluation protocol for the extract → code → check → post pipeline: how to build the sample, label ground truth, score each stage, and set thresholds that justify production access to the ledger. It is written to run against any vendor's AP agent, including ours.

The protocol assumes the agent proposes journal entries for human approval rather than writing to the ledger directly. If the architecture collapses that boundary, the benchmark changes shape, and so does the risk; the architecture of an AI-native ERP determines what you are actually testing.

Build the Sample From Your Own Invoice Population

The sample has to look like your real AP volume, not a tidy subset. Pull 300 to 500 invoices from the last 90 days and stratify them so the distribution matches production on four axes: source channel (PDF email, EDI, portal upload, scanned/photographed), vendor type (recurring utility, PO-backed, non-PO services, T&E reimbursement), currency and tax jurisdiction, and dollar band.

Oversample what breaks. The hardest 10% of an AP backlog drives most of the exception cost, and that is where the agent's economics actually live. Independent benchmarks of multimodal extraction show accuracy drops are meaningful once you move away from clean digital PDFs: the top model in a 2025 Fraunhofer IAIS study scored 96.50% on digital invoices but 87.46% on scanned receipts, an accuracy drop that will dominate your results if your mix skews to paper.

Include at least 20 adversarial cases: duplicates with transposed digits, invoices with the wrong PO number, credit memos miscoded as invoices, multi-page invoices where only page one has the vendor header, and three-way-match edge cases where receipts are partial. If your agent cannot see these before go-live, your controllers will see them after.

Label Ground Truth Before You Score Anything

Ground truth is the work. Two AP specialists independently label each invoice across the same field set the agent will produce: vendor ID, invoice number, invoice date, due date, line items (description, quantity, unit price, line total), subtotal, tax, freight, total, PO match status, GL account per line, cost center, project code, tax code, and the proposed payment date. Disagreements go to the controller for adjudication, and the adjudication log becomes part of the benchmark artifact.

For PO-backed invoices, the ground truth for GL coding is deterministic from the PO. For non-PO invoices, coding is judgment, and judgment needs a rubric. Write the coding policy down before labeling starts: which vendors map to which accounts by default, what triggers a split, which categories require project allocation. Without that rubric the inter-rater agreement will be low and you will blame the agent for what your own policy failed to specify.

Sorted invoice piles in labelled trays on a workbench, overhead view.

Score Each Stage of Extract, Code, Check and Post

Collapsing the pipeline into a single accuracy number hides where it fails. Score each stage separately against the labeled set.

Extract. Field-level exact match for header fields, and a stricter line-item rule: a line counts correct only if description, quantity, unit price and line total all match. Report precision and recall per field, not just average accuracy, because a vendor ID miss and a date miss have different downstream costs.

Code. GL account accuracy against the rubric, broken out by PO-backed versus non-PO. Track account-level accuracy, cost-center accuracy and the rate at which the agent correctly flags "needs human" instead of guessing. An agent that confidently miscodes is worse than one that routes ambiguity to a human.

Check. Duplicate detection recall on your seeded duplicates, three-way match pass/fail accuracy against the labeled PO and receipt set, and tax-code accuracy on cross-jurisdiction invoices. Track false positives separately; a duplicate detector that blocks 5% of legitimate invoices is unusable regardless of its recall.

Post. Proposed journal entry correctness: debits and credits balance, hit the right accounts, carry the right dimensions, and reference the source document. Also score the audit trail: can the agent produce the evidence chain for each proposed entry without a human reconstructing it?

Published AI benchmarks across industrial multi-agent workflows show hallucination rates ranging from 52.4% to 81.0% on the same task suite depending on the underlying model, which is a reminder that any single headline accuracy figure is only meaningful against the specific sample it was measured on. The erp.io failure modes catalog covers the specific categories most worth seeding into your adversarial set.

Stage-by-stage accuracy across six OCR models
Azure Document Intell…
94.2% → 96.5%▲ 2.3%
Google Document AI
93.8% → 95.2%▲ 1.4%
Claude Sonnet 4
91.5% → 94.8%▲ 3.3%
GPT-4V
90.8% → 93.5%▲ 2.7%
Mistral OCR 3
88.6% → 89.2%▲ 0.6%
Docling
82.5% → 85.4%▲ 2.9%
Each row is one model's accuracy curve across the three extract stages — read it as how well a model holds up from line items to totals to vendor. Source: CodeSOTA, 2025

Set Pass Thresholds Tied to Economic Cost

Thresholds are not vendor-reported numbers. They are the accuracy at which the agent beats your current process on cost and error rate without introducing new audit risk. Anchor them to measured baselines.

Best-in-Class AP teams process invoices at $2.36 per invoice versus an average of $10.18, and the cost difference comes almost entirely from straight-through processing and exception volume. Your threshold needs to clear two tests: the agent's correct-and-auto-posted rate beats your current straight-through rate, and its exception rate is low enough that the human review queue shrinks rather than grows.

Best-in-Class vs Rest on AP Performance Metrics
Best-in-Class vs Rest on AP Performance MetricsStraight-through rate: 51%; Exception rate: 11.1%; Duplicate / erroneous payments: 0.8%Best-in-ClassAll othersStraight-through rate51%29%Exception rate11.1%18.4%Duplicate / erroneouspayments0.8%2%
The gap defines the headroom your benchmark thresholds need to clear. Source: Ardent / APQC via Aequo, 2026

A workable rubric for a controller signing off:

  • Header extract accuracy at least 98% on digital PDFs, at least 92% on scanned, with a pre-agreed mix.
  • Line-item strict-match accuracy at least 90% on PO-backed, at least 80% on non-PO.
  • GL coding accuracy at least 95% on PO-backed, at least 85% on non-PO with the rubric applied.
  • Duplicate recall at least 98% with false-positive rate under 1%.
  • Proposed JE correctness at least 99% (balanced, correct accounts, correct dimensions).
  • Zero posts written directly to the ledger without human approval during the benchmark window.

The last line is the one most often skipped. The NIST AI Risk Management Framework treats measurable boundaries between automated action and human authority as a first-class control, and the AP agent is exactly where that boundary earns its keep. If the vendor cannot show the ledger-write isolation in the benchmark environment, the thresholds above do not matter.

Run the Benchmark the Way Production Will Run

Static scoring misses operational failure modes. Run the labeled sample through the agent under production conditions: the same connectors to your vendor master, chart of accounts and PO system; the same approval routing; the same observability. Measure wall-clock latency per invoice, cost per invoice (API, human review minutes, rework), and the rate at which the agent correctly escalates. Compare against the same sample processed by your current workflow over the same window.

Two patterns to watch. First, accuracy on week one is not accuracy on week six; vendor masters drift, new suppliers arrive, tax rates change. Build a weekly resample into the pilot and track whether thresholds hold. Second, the cost of a miss is asymmetric. A missed duplicate payment runs 0.8% to 2% of disbursements in the APQC benchmarks cited below, and recovering it costs more than preventing it. Weight your composite score accordingly.

The structure of a two-week AP pilot is where this protocol lives in practice; the benchmark is what makes the pilot evidence rather than impression. If you want a shaped version of this run against your own invoice set, an assessment of your AP workload is the fastest way in.

The Threshold That Decides Go-Live

Ask the vendor: run your agent against our 500-invoice benchmark, publish stage-level accuracy, latency and escalation rates against our rubric, and show the ledger-write isolation during the run. A good answer is a shared results table that reads like the one your own team would produce, with the adversarial cases scored separately and the controller's audit trail attached. A bad answer is a demo environment, a blended accuracy number, and a pricing page.

Samuel Edwards — Chief Marketing Officer

Samuel Edwards writes for the person on the buying side of the demo. As Chief Marketing Officer at erp.io, he is responsible for how the product is described, and under the site's editorial policy that includes saying plainly what erp.io does not do.

He has spent 15+ years in technical SEO, content strategy and demand generation for organizations ranging from venture-backed startups to Fortune 500 companies, and he has spoken at the Search Marketing Expo series and on the TEDx stage. That work taught him how business software actually gets evaluated. Finance and operations buyers search for the exact failure they hit last quarter, and they keep reading until someone describes it accurately.

His posts are about evaluation: scoring an RFP without rewarding vendor theater, what belongs in the contract before you sign, the reference-call questions a customer cannot rehearse, and comparing costs line by line instead of by headline.

Who you actually work with is on the team page.

Keep reading

Other posts.

When Budget vs Actuals Outgrows the ERP for FP&A

A sober test for finance leaders deciding whether budget vs actuals belongs inside the ERP or needs Adaptive, Pigment or another dedicated FP&A tool.

24 November 2026 · Read →

Avalara, Vertex or Native Tax Calculation Inside an Agentic ERP

Comparing Avalara, Vertex and native tax calculation for an AI ERP, including latency, nexus logic, returns filing, audit trail and total cost of ownership.

23 November 2026 · Read →

Running a Shadow Ledger Before Cutover, How Long to Parallel Run and What to Compare

How long to run a shadow ledger in parallel with your legacy ERP before cutover, which balances and subledgers to reconcile, and the exit criteria to sign.

20 November 2026 · Read →

Everything else we publish.

Primary research with stated sample sizes, buyer guides, and comparisons scored on published weights.