
Accounts payable automation in a mid-market company usually breaks at the same point: the invoice is read correctly, then stalls because nobody trusts the coding or the approval path. This article explains how AI agents handle accounts payable automation inside NetSuite or Dynamics 365, capturing invoices, coding them to the right account and entity, and routing them through the approval workflows your auditors already test. You will see where the agent's work stops and a person's starts, which controls must stay in the ERP, and the mistakes that turn a promising pilot into a parallel system nobody wants to maintain.
1. What is accounts payable automation in a mid-market ERP?
At its simplest, accounts payable automation means vendor invoices move from receipt to an approved, posted bill without someone retyping them. Most mid-market teams already have pieces of this: an OCR add-on, a shared AP mailbox, a vendor bill approval workflow. What they usually lack is judgment in the middle. Somebody still decides which GL account a freight invoice belongs to, whether a variance against the purchase order is acceptable, and which subsidiary should carry a shared software bill. AI agents take on that middle layer of AP invoice processing, working inside the ERP rather than beside it.
The mid-market version of the problem has its own shape. A company running NetSuite OneWorld or Dynamics 365 Finance often has a small AP team covering several legal entities, vendors across multiple US states and often Canada, invoices in USD and CAD, 1099 vendors mixed with corporate suppliers, and a controller who also owns the close. There is rarely a dedicated AP systems analyst. That makes standalone AP platforms with their own approval engines and vendor portals expensive to run, because every rule has to be maintained twice. Agents that read and write through the ERP's own records avoid that duplication.
2. How do AI agents capture and read vendor invoices?
Capture starts wherever invoices arrive: the shared AP inbox, a vendor portal export, EDI from larger suppliers, and scanned paper that still trickles in from smaller vendors. The first agent classifies each document before extracting anything. An invoice, a credit memo, a vendor statement, a W-9 and a past-due reminder can all land in the same mailbox, and treating them identically is how duplicates get created. Once a document is classified, the agent extracts header fields and line items, then checks the vendor against the vendor master: legal name, tax ID on file, remit-to address and whether bank details on the document differ from the record.
That last check matters more than extraction accuracy. Payment fraud through altered remittance details is a well-known AP risk, and an agent should never update bank information from an invoice. It flags the mismatch and routes it to whoever owns vendor master changes, outside the AP queue. Duplicate invoice detection belongs at this stage too, and it works best when the agent compares more than invoice number and amount: the same vendor billing under two vendor records, a reissued invoice with a suffix added, or a statement line already paid on a different bill. Template-based OCR struggles with these cases because it reads fields, not context.
3. Invoice coding automation: GL accounts, entities and the three-way match
For PO-backed spend, coding is mostly inherited. The agent matches the invoice to the purchase order and to the receipt record, an item receipt in NetSuite or a product receipt in Dynamics 365, and runs the three-way match the ERP already supports. Its value shows up in the near misses. A price variance inside tolerance, a partial receipt, or a quantity split across two receipts can be explained and resolved with a proposed action rather than dumped into an exceptions queue with a generic error code. An AP invoice verification agent built this way stops duplicates before payment and tells the reviewer exactly why an invoice did not clear.
Non-PO invoices are where invoice coding automation earns its keep, and where it can go wrong. Utilities, professional fees, software subscriptions and facilities costs need a GL account, department, class or cost center, location and, in a multi-entity group, the correct subsidiary or legal entity. The agent proposes coding from vendor history, contract terms and the invoice description, and it shows the evidence behind each proposal. It should also flag items your tax team wants to see, such as vendors with 1099 status or invoices where sales tax treatment looks inconsistent with the vendor's history, without trying to make the tax call itself.
Take a PE-backed distributor with entities in Texas, Ohio and Ontario on NetSuite OneWorld. A single logistics vendor bills all three, partly in CAD. A useful agent recognizes the vendor, assigns each invoice to the right subsidiary based on ship-from location and currency, and proposes the freight account the controller has used for that lane before. A poor setup posts everything to the parent entity and leaves the intercompany cleanup for month-end, which is exactly the work the team hoped to remove.
4. Routing approvals inside NetSuite and Dynamics 365 workflows
The most important design decision in any accounts payable automation project is that the agent does not own approval authority. It prepares the bill, attaches the evidence and submits it into the approval workflow the ERP already runs: a SuiteFlow vendor bill approval in NetSuite, the vendor invoice workflow in Dynamics 365 Finance, or purchase invoice approval workflows in Business Central. The delegation of authority matrix, approval limits and approver hierarchy stay where they are, maintained by the same people and tested by the same auditors. Nothing about who can commit company money changes.
Segregation of duties follows from that. The agent's service account should be able to create and edit draft bills and add notes, and nothing beyond that: no approval rights, no ability to release payments, no access to vendor bank fields. When an invoice falls outside policy, the agent routes it with the reason stated in plain language, for example a missing receipt on a high-value line or a new vendor that has not completed onboarding, so the approver can act without reopening the PDF. Well-designed finance AI agents work this way generally: a defined role, decision rights and escalation logic, with people approving the exceptions.
5. Keeping the AP audit trail ready for SOX and external audit
For a public company, or a PE-backed one preparing for an IPO, AP controls sit inside ICFR, and auditors will want to understand any automated step that touches a bill before it is approved. That means the agent's work has to be reconstructable. For every invoice, the log should show the source document, the extracted values, the matching result, the coding proposal and its basis, any edits a person made, and who approved it in the ERP. If the evidence lives only in a vendor's closed dashboard, control testing gets harder rather than easier.
Treat the agent like any other system component in scope for IT general controls. Document what it does and does not do, put prompt and rule changes under change management, review its access the same way you review user access, and keep a sample-friendly record that internal audit can pull without engineering help. Storing those logs alongside ERP data on a governed data layer, rather than in a separate application, also makes it easier to answer the auditor's follow-up question about population completeness and to show that no bill bypassed the workflow.
6. Why accounts payable automation projects stall, and what to do first
Most stalls trace back to three choices. Teams automate on top of a messy vendor master, so the agent inherits duplicate vendors, stale addresses and missing 1099 flags. They chase a touchless invoice processing rate before agreeing match tolerances and coding rules with the controller, so finance stops trusting the output. Or they buy a tool that rebuilds approvals outside NetSuite or Dynamics 365, then spend the next year reconciling two workflows. Clean the vendor master first, write down tolerances, and keep approvals native. A narrow scope, such as PO-backed invoices for one entity, is a better starting point than every vendor at once.
The payoff extends past AP. Accurate, timely bills mean fewer manual accruals at period end, cleaner inputs for an agentic month-end close, and better payables data for cash forecasting. AITHENTIC has published 70%+ touchless accounts payable, and in North America works with its partner Intellence in Austin, Texas, using agents that operate inside existing ERPs such as NetSuite and Dynamics 365 with a full audit trail on every action. Whether you build or buy, hold every option to one test: the ERP must remain the system of record for approvals.
Key challenges
- Invoices arrive through inboxes, portals, EDI and paper, mixed in with statements, credit memos and W-9s.
- Non-PO invoices need GL, department, location and subsidiary coding that often depends on one person's knowledge.
- Standalone AP tools duplicate approval rules outside the ERP and complicate SOX testing.
- Vendor master problems, such as duplicate vendors and changed bank details, create fraud and duplicate payment risk.
- Multi-entity groups with US and Canadian subsidiaries struggle with entity assignment and USD and CAD invoices.
The framework
A practical operating model splits AP into four lanes with clear owners: capture, code, route and record. In capture, an agent classifies and extracts every incoming document and validates the vendor against the master record. In code, the agent matches PO-backed invoices to orders and receipts and proposes coding for non-PO spend, with the evidence attached. In route, bills enter the ERP's native approval workflow, and exceptions go to named owners with a stated reason. In record, every action, edit and approval is logged where internal audit can sample it. People own policy, tolerances, approvals and payment release; agents own preparation and explanation.
How to implement it
- Clean the vendor master by merging duplicates, confirming 1099 status and moving bank detail changes into a separate controlled process.
- Document match tolerances, non-PO coding rules and entity assignment logic with the controller before configuring any agent.
- Connect the agent to the AP inbox and the ERP through a service account limited to creating draft bills and adding notes.
- Route every prepared bill into the native NetSuite or Dynamics 365 approval workflow, leaving the delegation of authority matrix unchanged.
- Pilot on PO-backed invoices for one entity, review exception reasons weekly, and tune rules before widening scope.
- Walk internal audit and the external auditor through the logs and control design before extending to further subsidiaries.
Frequently asked questions
What is accounts payable automation?
Accounts payable automation is the use of software to move vendor invoices from receipt to an approved, posted bill with minimal manual entry. Current approaches use AI agents to classify documents, extract data, match invoices to purchase orders and receipts, propose GL coding for non-PO spend, and route bills into the ERP's existing approval workflow. People still approve exceptions and control payment release.
Can AI approve invoices in NetSuite or Dynamics 365?
In most sound control designs, it should not. A well-governed agent prepares the bill, attaches evidence and submits it into the native approval workflow, such as SuiteFlow in NetSuite or the vendor invoice workflow in Dynamics 365. Approval authority stays with named people under your delegation of authority matrix, which keeps segregation of duties intact and gives auditors a familiar control to test.
How does three-way matching work with AI agents?
The agent compares the invoice with the purchase order and the receipt record in the ERP, checking quantities, prices and totals against your agreed tolerances. Clean matches move straight to approval. For near misses, such as a partial receipt or a small price change, the agent explains the variance and proposes an action, so the reviewer can resolve it quickly instead of investigating from scratch.
Is AP automation compatible with SOX controls?
Yes, when it is designed for it. Accounts payable automation fits within SOX and ICFR when approvals remain in the ERP, the agent's access is restricted, changes to its rules follow change management, and every step is logged with the source document, extracted data, coding basis and approver. Review the design with your auditors and advisors before go-live.
Where should a mid-market company start with AP automation?
Start with the vendor master and a narrow scope. Remove duplicate vendors, confirm 1099 status and lock down bank detail changes, then agree match tolerances and coding rules with the controller. Launch on PO-backed invoices for one entity, track exception reasons, and extend to non-PO spend and additional subsidiaries once the team trusts the output.
