Created: November 24, 2026
Automated Invoice Processing: How to Pilot Invoice Capture and ERP Posting

A supplier invoice is read correctly, yet reaches the ERP before anyone checks whether the goods arrived. Another submission times out after the ERP accepts it. The capture dashboard looks healthy; Accounts Payable cannot establish whether the liability is correct or whether retrying will create a duplicate.
An automated invoice processing pilot must test those gaps between reading a document, authorising its treatment and confirming its accounting result. This guide follows a hypothetical distributor receiving PDF invoices through a shared email inbox. Every invoice and outcome in that example is illustrative. Use the acceptance plan to decide which invoices can post automatically, which need review and what evidence your AP and ERP teams need before expanding.
Key takeaways
- Limit the pilot to one incoming stream, one legal entity and one accounting system, with a representative control sample.
- Give PO invoices and non-PO invoices separate matching, approval and exception routes; extraction confidence cannot authorise either route.
- Confirm posting through an identifiable ERP record and its accounting status, including after a lost response.
- Launch only the invoice group that passes the agreed risk controls. Keep exceptions visible, assign reconciliation and pause posting when evidence becomes unreliable.
Choose the first invoice stream
Start with the distributor's shared mailbox, one UK legal entity and an agreed supplier list. Exclude other channels and entities explicitly. Keep payments, ERP selection and tax-policy design outside this pilot. For extraction fundamentals, see Mad Devs' intelligent document processing overview; here, the evaluation begins with whether captured data can support a controlled AP decision.
Map the invoice processing automation flow: intake, extraction, coding, approval, ERP submission and confirmation. At each handover, name the owner and the evidence retained. Preserve the original PDF alongside corrected values so reviewers can distinguish a reading error from an incorrect mapping or approval rule.
Prioritise fields by financial consequence: supplier account, invoice number, legal entity, currency, net and gross amounts, tax amount, PO reference and line quantities. Agree required cost-centre and account coding with Finance. A readable invoice with the wrong supplier account still fails.
The AP lead approves business rules and tolerances; the ERP analyst confirms field mappings and posting states. Build a control sample from recent supplier documents, including clean matches, partial receipts, service invoices, duplicates and poor scans. Have AP verify expected outcomes independently, and reserve unseen documents for acceptance.
Integration effort belongs in scope. Rossum's Adyen case reports that, after Adyen implemented Coupa in 2025, a new flow was designed, tested and implemented in three months. That is evidence of integration work, not a timetable or performance promise for this distributor.
Set matching and approval rules
For AI invoice processing, define the route before choosing an extraction-confidence threshold. In this example, invoice A references an approved purchase order and fully received goods. Invoice B bills more units than the warehouse has recorded. Invoice C covers services without a PO. Reading all three accurately does not make their accounting treatment equivalent.
Match PO invoices against the receipt
For goods in scope, compare invoice lines with both the purchase order and goods receipt. SAP Concur's three-way match description distinguishes these three records. Test line identifiers, units, quantities, prices and previously invoiced quantities against the customer's actual purchasing records.
AP and Procurement should document permitted price and quantity differences, rounding treatment and cumulative limits across partial invoices. Use the customer's approved policy; there is no universal safe tolerance. For invoice A, automatic posting requires every mandatory check to pass. For B, a quantity shortfall creates an exception for the receiving owner, even when the PDF was extracted perfectly.
Do not silently reduce B to the received amount or infer that the remaining goods arrived. The owner must resolve the receipt or arrange a corrected invoice under the agreed process. Record the decision and rerun matching against the resolved records before submission. SAP's PO-based invoice lifecycle likewise places exception resolution before submission; its later payment stages fall outside this pilot.
Approve non-PO invoices explicitly
Invoice C needs a valid supplier, approved coding, a cost centre and an authorised approver. Require evidence that the service was accepted, such as a confirmation tied to the invoice. Missing coding or an unavailable approver must leave the invoice waiting; absence of a rejection is not approval.
| Invoice type | Check | Decision | Exception owner |
|---|---|---|---|
| A: matched PO | PO, receipt, billed quantity and price agree | Eligible for automatic posting | AP lead for rule failure |
| B: receipt mismatch | Billed quantity exceeds recorded receipt | Hold for resolution and rematch | Receiving owner |
| C: non-PO service | Coding, service confirmation and approval present | Submit after recorded approval | Budget owner |
| Any invoice: supplier unresolved | Supplier account valid in master data | Hold until identity is verified | Supplier master-data owner |
Supplier validation is a separate control from extraction. A confidently read name cannot establish an active account or approve a requested master-data change. Test an invoice with plausible details that conflict with the supplier master: it must stop for verification. Apply duplicate checks to every route before ERP submission.
Handle duplicates and uncertain ERP posting
Keep a durable correlation reference linking the original document, approved data version, submission attempts and ERP record. Give retries of the same approved operation the same identity. A file hash can detect an identical attachment, but a supplier may resend the invoice as a different PDF. Add business-level duplicate invoice checks using the legal entity, supplier account and invoice number, with agreed handling for formatting variations and legitimate number reuse.
A duplicate candidate should link to the earlier invoice and enter review rather than create another liability. Test simultaneous deliveries and a restart between submission and confirmation. Confirm that duplicate protection survives both; a check performed only in a worker's memory is insufficient.
Retry safety depends on the receiving API's contract. AWS's guidance on idempotent APIs explains how caller-provided request identifiers support safe retries and why identical parameters alone may not establish intent. Verify the selected ERP's documented identifier, retention window and repeat behaviour. Do not assume every connector supports them.
Resolve a lost response before resubmitting
Suppose A passes matching and the ERP posts it, but the response disappears. The integration records posting outcome unknown, retaining the operation reference and approved payload. It must not display success or immediately repeat the create request.
Search the ERP by the stored external business reference or inspect the documented operation status. Compare the recovered record with the approved invoice, then follow one of three paths:
- Record found: verify supplier, legal entity, invoice number, amount, currency and posted status. Save the ERP identifier and close reconciliation only when they agree. A mismatch remains an exception.
- Record absent: establish that processing has finished and the lookup is authoritative. Retry only under the verified safe-repeat contract. An empty search during processing or indexing delay does not prove absence.
- Result still unknown: quarantine the operation for the ERP analyst. Block automated resubmission until the analyst establishes the result or approves a documented safe recovery.
A successful HTTP response, a created draft and a posted accounting document are distinct outcomes. A draft remains open until an authorised route posts or cancels it. Agree which ERP state establishes the liability and retrieve evidence of that state. Mad Devs' ERP integration guide by Pavel Zverev examines related lost-response recovery for sales orders; this pilot applies acceptance to supplier invoices and AP records.
Build a pilot acceptance matrix
Use the following matrix as a proposed acceptance tool for this single stream. It is not an industry benchmark. AP supplies expected business decisions; the ERP analyst specifies observable accounting results. For each run, retain the source document, approved values, rule version, route history and ERP evidence under one test reference.
| Scenario | Expected route | ERP result | Evidence | Blocking defect | Owner |
|---|---|---|---|---|---|
| A: PO match | Automatic after all checks | One correct posted invoice | ERP ID, posted state, supplier, totals and currency agree | Missing, duplicate or incorrect posting | AP lead |
| B: receipt mismatch | Hold, resolve, rematch | No posting while unresolved | Receipt comparison, hold record, decision and successful rerun | Posting despite unresolved shortage | Receiving owner |
| C: approved non-PO | Approval before submission | One correctly coded posting | Service confirmation, approval, coding and ERP record | Missing approval or incorrect coding | Budget owner |
| Duplicate delivery | Link and review | No additional posting | Original reference, duplicate decision and ERP record count | Second liability created | AP operations |
| Unknown outcome | Reconcile before retry | One verified posting, or held unresolved | Timeout log, lookup results and final disposition | Blind retry or false success | ERP analyst |
| Incorrect amount | Hold and correct | No incorrect posting | PDF comparison, correction approval and verified rerun | Wrong amount reaches posted state | AP lead |
Do not stop at screenshots of a green integration dashboard. Open or retrieve the ERP records and compare their business fields. Test the incorrect-amount row with a deliberately altered extracted total and, separately, with a mapping error introduced after approval. Both must be caught before posting; a document-level extraction check cannot detect every downstream defect.
For recovery tests, lose the response after the ERP write succeeds, then restart the integration. Reconcile the operation and count resulting records. Also test a definitive rejection, a still-pending operation and an unavailable status lookup. These exercise different decisions and should produce distinct evidence. For an incorrect posted record, require an authorised accounting correction and a rerun; merely fixing the capture screen does not close the defect.
Measure routing without intervention separately from posting correctness. Report invoices reaching their expected route without human intervention divided by eligible invoices tested, with counts by scenario. Measure confirmed posting errors against attempted postings, and report the number of attempts and unresolved outcomes separately; do not count unknown outcomes as correct. Approval-dependent non-PO invoices should not inflate a touchless-processing claim. Correctly holding B is a control success even though it requires work.
Set release thresholds before testing according to customer policy and financial risk. An observed zero-error sample does not guarantee future accuracy. Any blocking defect needs correction, regression evidence and owner sign-off.
Finally, demonstrate the same cases in a configured tool. Record which settings cover each requirement. Commission a focused integration only for a demonstrated gap, such as reliable posting reconciliation, after checking the ERP API. Include maintenance ownership and recovery testing in that comparison.
Decide which invoices can go live
For the hypothetical distributor, the first wave admits only approved suppliers' PO invoices that match the order and recorded receipt, pass duplicate checks and remain within Finance's agreed value and tolerance limits. Invoice A qualifies only after its matrix tests pass. B remains in the receipt-exception queue. C keeps its human approval route and is excluded from automatic posting in this first wave.
The AP operations lead owns daily reconciliation of received documents, holds, submissions and ERP postings. The ERP analyst owns investigation of unknown outcomes. Agree a reconciliation deadline and escalation path before launch. Retain each unresolved operation until evidence closes it; do not clear the queue simply because a new processing day begins.
Pause automatic posting for a duplicate liability, an incorrect posted supplier or amount, or an inability to reconcile outcomes within the agreed deadline. Continue capturing documents into review queues while investigating. Preserve pending operation identities so restarting cannot turn them into new submissions.
Before resuming, establish the affected invoices' accounting state, complete authorised corrections, fix the cause and rerun the failed scenario plus restart and duplicate tests. AP and the ERP owner approve the restart from that evidence. Expand suppliers or invoice types only after a fresh sample demonstrates their rules, rather than extrapolating from A's clean match.
Conclusion
Choose one invoice stream and ask AP and the ERP team to agree the evidence required for every outcome. Attach a source document, expected route and accounting-state check to each acceptance case before testing tools or commissioning integration work. For this distributor, the decision is a limited PO-only first wave, with receipt discrepancies and non-PO approvals kept under review. Posting pauses when duplicates, incorrect liabilities or overdue unknown outcomes break the agreed controls. That gives the next pilot review a concrete decision to revisit.
Accounts payable automation Build a pilot around your invoice rules We can test invoice capture against your supplier documents, map purchase order and approval rules, and connect a limited flow to your accounting system. Your team gets the test results, a queue for exceptions, and criteria for deciding which invoices can be posted automatically. Discuss your invoice pilot → |
