
| Article details | |
|---|---|
| Author | Ben Bajek, Principal Forward Deployed Engineer |
| Published / updated | 30 November 2026 |
| Customer | Healthcare management, under 1,000 employees, United States |
| Platform and tools | QuickBooks Online; Maia runner, QuickBooks Online Load, Intuit OAuth connection |
| Reading time | 4 min |
Loading hundreds of QuickBooks Online companies into a warehouse breaks down when each company's OAuth tokens have to be renewed by hand. Maia's QuickBooks Online Load fixes that: each company is approved once, and the runner refreshes the token and stores Intuit's rotated refresh token as it runs. In sandbox testing, one authorization gave 4 samples over 67 minutes, with 2 automatic token refreshes and rows every time.
Why do QuickBooks Online OAuth tokens break at scale?
A US healthcare management company keeps its books in hundreds of separate QuickBooks Online companies, and wanted all of them loading into its warehouse. Intuit's QuickBooks Online API uses OAuth 2.0, and every company is a separate authorization: one person approves access once, and the app gets tokens for that company alone.
The access token lasts an hour, and the refresh token rotates about once a day, so you have to keep the newest one. A refresh token unused for 100 days expires, and the company has to approve access again.
Two Intuit errors don't say which setting is wrong. A Company ID that doesn't match the company that approved access returns [120] Authorization Failure; a sandbox company read as production, or the reverse, returns [3100] ApplicationAuthorizationFailed.
[120] Authorization Failure
[3100] ApplicationAuthorizationFailedWhy did it matter?
With one QuickBooks Online company, a person can keep up with token renewal. With hundreds, any tool that doesn't store the rotated refresh token on every run turns into a queue of broken connections. Maia had no native QuickBooks Online connector to move these loads onto.
What did we build for QuickBooks Online?
- Built QuickBooks Online Load, a component that reads QuickBooks Online objects such as Customers into your warehouse.
- Added an Intuit OAuth connection (authorization code flow) with four fields: Client ID, Client Secret, Company ID, and Use Sandbox.
- Connected it to the runner's existing token refresh, which renews the access token when it expires and writes Intuit's rotated refresh token back to the connection's secret.
- Reworded the
[120]and[3100]errors to name the field to check, Company ID or Use Sandbox, keeping Intuit's code and message.
We didn't build a new token store, because the runner already refreshed authorization code tokens and saved the rotated one. The provider is named Intuit, not QuickBooks, and Company ID is typed in from QuickBooks.
What was the result?
| Measure | Before | After | Timeframe |
|---|---|---|---|
| Native QuickBooks Online connector in Maia | None | QuickBooks Online Load on runner 12.262.0 or later | Approved 10 November 2026 |
| Samples from one authorization, sandbox company | No connector to sample | 4 samples over 67 minutes, 2 automatic token refreshes, rows every time | 11 to 23 November 2026 |
We ran these tests against an Intuit sandbox company. One sample came after the runner was recreated and read the refreshed token back from storage, and a re-test under the Intuit provider returned the same 29 Customers records with all 67 columns.
When does this apply to you?
This applies to any SaaS source with many tenants, each its own OAuth authorization: consent once per tenant, then let the runner own refresh. For another OAuth gap we closed in Maia, see how we added native OAuth client credentials to OData.
To set it up, create an Intuit developer app with the QuickBooks Online accounting scope and add the Maia callback URL for your region to its redirect URIs. Development keys work only with sandbox companies; production keys need Intuit's approval. Then add one Intuit connection per company and authorize each once.
This is the wrong choice for writing back to QuickBooks or reading QuickBooks Desktop, since QuickBooks Online Load does neither. A connection left idle past Intuit's refresh-token window needs approving again, and our tests used a sandbox company only.
Frequently Asked Questions
Yes: QuickBooks Online Load reads QuickBooks Online data through an Intuit OAuth connection, on runner version 12.262.0 and later. It reads only, and doesn't support QuickBooks Desktop.
No, as long as the connection keeps running: the runner refreshes the access token itself and stores the refresh token Intuit sends back. Each company still needs one approval, which is Intuit's rule.
In our testing it meant the Company ID didn't match the company that approved access. Maia's connector rewords the error to name Company ID, and keeps Intuit's code and message.
In our testing it meant the connection pointed at the wrong environment, a sandbox company read as production or the reverse. Maia's connector rewords the error to name Use Sandbox.
Featuring
Our latest resources
Data management



