Skip to content
New: a sample workflow audit report
Scenox Studios

Accounts payable automation: the complete guide for finance teams

Accounts payable automation, stage by stage: capture, coding, matching, approval and payment, what AI, rules and people each do, ERP notes, and build vs buy.

By the Scenox Studios engineering team

10 min read

How we research and update articles
On this page
  1. The AP cycle in five stages
  2. Stage 1: Capture
  3. Stage 2: Code
  4. Stage 3: Match
  5. Stage 4: Approve
  6. Stage 5: Pay, and payment automation
  7. AI in accounts payable: where AI, rules and people each belong
  8. ERP notes
  9. Build vs buy
  10. What to measure
  11. Rollout checklist
  12. When automation is not worth it
  13. Frequently asked questions

Accounts payable automation uses software to run the repeatable parts of the AP cycle: capturing invoices, coding them, matching them to purchase orders and receipts, routing approvals and preparing payments. AI reads documents and suggests codes, rules enforce your policy, and people approve and handle exceptions. The goal is fewer touches per invoice with the same or better control.

The AP cycle in five stages

Whatever software it runs on, every AP process moves through the same five stages. Automation changes who or what does the work at each one.

StageWhat happensBest handled by
CaptureInvoices arrive by email, portal, EDI, e-invoice or paper and become structured recordsAI extraction plus rules
CodeEach invoice gets a supplier, GL account, cost center, tax code and entityAI suggestion, human confirmation on new patterns
MatchInvoice is compared to the PO and the goods receiptRules, with AI for line mapping
ApproveThe right person signs off based on amount, cost center and supplier riskRules route it, people decide
PayApproved bills enter a payment run, with bank checks and release approvalRules and people, never AI alone

We use this model because it maps onto ERP objects. Each stage ends with a record in the ERP or an entry in an exception queue, so you can measure it on its own.

Stage 1: Capture

Invoices come through more doors than most finance teams count. There's the shared AP mailbox, the supplier portal, structured e-invoices, scanned paper, and PDFs forwarded by an employee who was billed directly. Point all of them at one intake. Before extraction starts, classify the document (invoice, credit note, statement, payment reminder), split files that hold several invoices, and flag exact duplicates.

Extraction is where AI changed the economics. Older OCR tools needed a template per supplier and broke when a layout changed. Current document models read an unfamiliar layout and return header fields and line items with a confidence score per field. They still struggle with poor scans, handwriting and invoices that show several totals. A review queue for low-confidence fields belongs in the first design.

Structured e-invoices need no extraction. If a supplier can send one, take it.

Stage 2: Code

Coding is often the slowest step for AP clerks, because it depends on knowing the business. A utility bill goes to facilities. A SaaS renewal goes to whichever department owns the tool. A freight invoice might split across three cost centers.

A model can learn how past invoices from each supplier were coded and suggest the same treatment. That works well for recurring suppliers and poorly for one-off purchases. Our usual design suggests a code and shows the reason ("coded to 6410 Software on the last 11 invoices from this supplier"). The approver confirms or changes it, and corrections feed back into later suggestions.

Stage 3: Match

Matching stops you paying for things you didn't order or didn't receive. Two-way matching compares invoice to PO. Three-way matching adds the goods receipt. Tolerances, exception types and line-level mapping are in our guide to three-way matching, so here is only the split of responsibilities.

Rules decide whether quantities, prices and totals fall inside agreed tolerances. AI maps supplier line descriptions to PO lines when the wording differs. People resolve whatever falls outside tolerance: the buyer owns price variances, and the requester or warehouse owns quantity variances.

Non-PO invoices (rent, utilities, professional fees) skip matching. They lean on coding and approval instead.

Stage 4: Approve

Approval is a policy problem before it is a software problem. If your delegation of authority lives in a PDF nobody has touched since 2021, automation will faithfully enforce the wrong rules.

Encode the matrix first. That means amount bands per approver level, cost center owners, supplier categories that need extra sign-off, and a second approver for new suppliers. Then send requests where people already work, usually email, Slack or Teams, with the invoice image, extracted fields and match result attached. Add reminders, escalation after a set number of days and out-of-office delegation.

Segregation of duties belongs in the rules. The person who raised the PO shouldn't approve the invoice, and nobody should approve a payment to a supplier whose bank details they just edited.

Stage 5: Pay, and payment automation

Most teams automate this stage least, and that's usually right. Posting approved bills to the ERP can be fully automated. Releasing money should stay behind your existing payment run, with its own approval.

Payment automation, in practice, is checking rather than auto-release. Before a run it can compare bank details against the vendor master, flag bills due soon, surface early-payment discounts and block invoices with open exceptions. A person still releases the batch.

Key point: Automate everything up to the payment run, then add checks around it. Changing bank details and releasing payments are the highest-risk decisions in AP, and both should stay with named people.

AI in accounts payable: where AI, rules and people each belong

The common mistake is using AI for everything because it's new. Use the cheapest tool that is reliable for the job.

TaskRulesAIPerson
Arithmetic check on totalsYesNoNo
Duplicate detectionYesFuzzy matching helpsReviews flagged pairs
Reading an unseen invoice layoutNoYesReviews low confidence
Suggesting GL codeSimple casesYes, from historyConfirms
Applying tolerancesYesNoHandles exceptions
Approving an invoiceRoutes itCan summarize itDecides
Changing vendor bank detailsBlocks itCan flag odditiesVerifies with the supplier

Rules are cheaper, faster and easier to audit. AI earns its place where input is messy, such as scanned documents and free-text line descriptions. If you can write the logic as an if statement, write it as one.

ERP notes

Most ERPs can accept supplier bills through an API or an import file. The differences are in what exists around the bill.

  • NetSuite. Vendor bills, purchase orders and item receipts are native objects, so full three-way matching is possible. We post through the REST or SOAP web services and link the bill to the PO and item receipt. NetSuite also has its own bill capture and approval options, so check what you already license before building around them.
  • QuickBooks Online. Bills and purchase orders are in the API, but there's no goods receipt object. Receipt confirmation has to come from another system or from a requester approving the invoice. Fine for two-way matching, awkward for three-way.
  • Sage Intacct. AP bills and a purchasing module with receiving documents support PO matching. Dimensions (department, location, project) make coding richer, so build the suggestions around them.
  • SAP. S/4HANA exposes supplier invoice APIs, and older ECC systems use BAPIs or IDocs. SAP's own invoice verification already does three-way matching, so automation here usually sits in front of it, handling capture, coding and exception routing.
  • Xero. Bills and purchase orders are available through the Accounting API. Like QuickBooks there's no receipt object, which is usually tolerable at smaller volumes where simpler matching is enough.

On all five, attach the source PDF to the posted record and make posting idempotent, so a retry can't create a duplicate bill. Store the ERP record ID against the invoice in your audit log. Check each vendor's current API documentation before you commit to a design, since limits and endpoints change.

Build vs buy

AP automation software is a mature category. Buying is the right answer more often than people selling custom work like to admit.

Buy a packaged product when your process is close to standard: PO or non-PO invoices, one ERP, a typical approval chain. It also makes sense if you want to be live in weeks without engineers to maintain a system, and if the vendor supports your ERP plus your regions' tax and e-invoicing formats.

Build or customize when something about your setup doesn't fit a package:

  • Your approval logic is unusual, such as project-based approvals, intercompany rules or supplier-specific contract terms.
  • You run more than one ERP, or a legacy system with no packaged connector.
  • Per-invoice pricing at your volume costs more than running your own pipeline.
  • Data has to stay in your environment, which may call for a privately hosted model instead of a vendor's cloud.
  • AP is one piece of a wider procure-to-pay flow touching purchasing, receiving and vendor onboarding, and you want one system across it.

A middle path often works best. Keep a packaged tool for capture and approvals, and build what it lacks, such as a custom matching rule or an ERP integration. The control model stays the same either way: AI suggests, rules enforce, people approve.

What to measure

Pick a few numbers and start tracking before the project does. You need a baseline to show change, and our cost per invoice guide shows how to build one.

  • The touchless rate: invoices posted with no human edit. Report it by supplier group, since a blended figure hides the long tail.
  • Exception rate and reasons. A rising count in one category usually points to an upstream fix, such as buyers not updating PO prices.
  • Cycle time, from receipt to posting and from posting to payment.
  • Silent errors: wrong values on key fields that reached the ERP without anyone seeing them. Auditors care about this one most.
  • Duplicate payments caught and missed.
  • Early-payment discounts taken and late fees paid.

Measure on your own invoices. A vendor's accuracy claim reflects their test data, not yours.

Rollout checklist

  1. Map the current process: channels, monthly volume, approval matrix, exception types, ERP setup.
  2. Gather a test set of a few hundred recent invoices, including bad scans and credit notes, and label the correct values.
  3. Build capture, extraction and validation, then measure per-field accuracy.
  4. Add coding suggestions, matching and approval routing.
  5. Run in shadow mode on live invoices while AP works as usual, and compare invoice by invoice.
  6. Go live with PO-backed invoices from your highest-volume suppliers.
  7. Widen to non-PO invoices and the long tail in stages.
  8. Re-test after any model or rule change.

For the full step-by-step on extraction accuracy, validation checks and go-live criteria, see how to automate invoice processing with AI.

When automation is not worth it

If you process a few dozen invoices a month from a handful of suppliers, the bill capture inside your accounting system is probably enough. Custom work pays off with higher volume, many layouts, PO matching, multiple entities or integration needs a packaged product can't meet. We'd rather say that on a first call than sell you a project you don't need.

If your volume fits, book a strategy call. We'll look at your invoice samples, ERP and approval rules, and tell you which stages are worth automating. Our finance operations page shows how the pieces fit together.

Frequently asked questions

What is accounts payable automation?

It's software that handles the repeatable steps of paying suppliers: capturing invoices, coding them, matching them to POs and receipts, routing approvals and preparing payments. People still make approval decisions and resolve exceptions. The aim is fewer manual touches per invoice and a complete audit trail.

How does AI-powered AP automation differ from traditional AP automation?

Traditional AP invoice automation relies on templates and fixed rules, so it struggles when an invoice layout changes. AI models read unfamiliar layouts, map messy line descriptions to PO lines and suggest GL codes from history. Rules and human approvals stay in place, since AI shouldn't decide what gets paid.

How long does an AP automation project take?

It depends on how many invoice layouts, entities and ERP integrations are involved. A single-entity project with one ERP is usually a matter of weeks for a first live group of suppliers, followed by staged expansion. Shadow mode, where the system runs beside your current process, adds time but is the safest way to prove accuracy.

Do we need to replace our ERP to automate accounts payable?

No. Automation sits in front of the ERP, captures and checks invoices, then posts approved bills through the ERP's API or an import file. Your general ledger and payment process stay where they are.

Should we buy AP automation software or build our own?

Buy if your process is close to standard and a vendor supports your ERP. Build or customize if your approval logic is unusual, you run several ERPs, per-invoice pricing is high at your volume, or data must stay in your environment. Many teams combine both.

Can AI approve invoices on its own?

It shouldn't. AI can extract, check, match and recommend, but approval stays with people under your delegation of authority matrix. Low-value, fully matched invoices can auto-approve under a written policy, as long as the rule is logged and reviewed regularly.

Can AP and AR share one workflow?

Partly. They share data, such as the customer-and-supplier master, bank feeds and the reconciliation process, and a netting rule can offset what you owe a company that is also your customer. The steps differ, though: AP is about approving what you pay, and AR is about collecting and applying what you are owed. We usually build them as two workflows on one set of integrations. Our guide to accounts receivable automation covers collections and cash application.

Get the next article by email

One practical piece a month on automating real operations. No promotions.

One practical article a month. Unsubscribe any time.

All articles

Tell us about the workflow you want to hand over.

A 30-minute call with an engineer. You will leave knowing what a system could do for that workflow and what it would take to build.

What happens next

  1. 1

    Strategy call

    We learn how the workflow runs today and what a good outcome would be.

  2. 2

    Workflow audit

    We map the process and measure where a system would save the most time.

  3. 3

    Proposal

    A written scope, timeline and fixed price for your first system. No obligation to build.