Letting an AI agent write to your ERP: six rules for NetSuite, Intacct, QuickBooks and Xero
By Donna Shay · November 5, 2026
Category: software-integration
Reading from an ERP is easy to approve. Writing to it is where the risk sits. Here are six rules for write access that hold across NetSuite, Sage Intacct, QuickBooks and Xero.
Key takeaways
The problem Teams approve an AI integration by looking at what it can read, and the damage comes from what it can write.
Core insight Write access needs its own design: drafts first, one identity per agent, safe retries, and a way to undo.
Practical outcome Apply six rules to any ERP connection and check each against the vendor's current developer documentation before go-live.
An integration review usually asks what data the agent can see. A better first question is what it can change, and whether a change can be undone. Read access leaks. Write access posts.
We covered one ledger in before you connect an AI agent to your Sage ledger. This piece sets out rules that hold across the four ledgers finance teams ask about most: NetSuite, Sage Intacct, QuickBooks Online and Xero.
The problem behind the rules
All four expose an API for reading and writing records. NetSuite's SuiteTalk REST web services, Sage Intacct's developer platform, the Xero developer documentation and the Intuit developer site for QuickBooks Online each let a program create bills, journals and payments. An agent that holds those permissions can do what a bookkeeper can do, faster. The platform will accept a wrong entry as readily as a right one.
We do not quote rate limits or field names here. They change, and some of those pages render in the browser, so we could not confirm exact numbers for this piece. Check each vendor's current documentation for limits, retry guidance and supported operations before you build.
Principles we apply
- The agent proposes. A separate step posts.
- Every write is safe to repeat, or it is not allowed.
- Every write can be traced to one identity and one reason.
- Every write has a known way to reverse it.
Six rules, in order
1. Start in a sandbox with copied data
Run the first weeks against a non-production company file or a sandbox, with data that mirrors your real chart of accounts and dimensions. Most differences between ledgers show up in how they treat classes, departments, entities and custom fields. Test those on purpose.
2. Write drafts, not postings
Where the ledger supports a draft or pending state, use it. The agent creates the bill or journal as a draft with the source document attached, and a person or a separate identity posts it. Where a ledger has no draft state for a record type, hold the proposal in a queue outside the ledger.
3. Give the agent its own user and role
Create a named integration user for each agent, and give the role only the record types it needs. Do not borrow an administrator token. This is the same split described in segregation of duties for AI agents.
4. Make retries safe
Networks fail halfway. An agent that retries a payment creation can create it twice. Before go-live, find out how each API lets you detect a repeat: a unique external reference, a lookup before create, or a documented idempotency feature. Store your own reference on every record the agent creates, and look it up before writing.
5. Respect limits and queue the work
Every ledger throttles. Design for the slow path: batch where the API supports it, back off on throttling errors, and treat a throttled run as normal. A close-week job that fails because it hit a limit should resume cleanly, not start over.
6. Plan the reversal before the first write
For each record type, write down how you would undo a bad one: void, credit note, reversing journal, or delete if the ledger allows it before posting. Test that path once. Agree who may run it.
How we check the result
After each run, compare what the agent says it wrote with what the ledger holds. Count of records, sum of amounts, and the references. A mismatch stops the next run until a person looks. Keep the comparison in the log described in how to audit what an AI agent did in your books.
What to do next
For the ledger you use, fill in a small table: record types the agent writes, state it writes them in, how repeats are detected, and how a bad one is reversed. If any cell reads "not sure," that is the work to finish before production. Your ERP administrator and implementation partner own the final answer, so bring them in at the start.