Table of contents
Book a Maia Demo
Enjoy the freedom to do more with Maia on your side.
Dark green abstract background with subtle gradient shapes and rounded corners.

How to load hundreds of QuickBooks Online companies without renewing OAuth tokens by hand

December 2, 2026
Connector auth
4 mins
2 refreshes
automatic token refreshes from one authorization, in testing
Summarise with AI
Article details
AuthorBen Bajek, Principal Forward Deployed Engineer
Published / updated30 November 2026
CustomerHealthcare management, under 1,000 employees, United States
Platform and toolsQuickBooks Online; Maia runner, QuickBooks Online Load, Intuit OAuth connection
Reading time4 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] ApplicationAuthorizationFailed

Why 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?

  1. Built QuickBooks Online Load, a component that reads QuickBooks Online objects such as Customers into your warehouse.
  2. Added an Intuit OAuth connection (authorization code flow) with four fields: Client ID, Client Secret, Company ID, and Use Sandbox.
  3. 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.
  4. 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?

MeasureBeforeAfterTimeframe
Native QuickBooks Online connector in MaiaNoneQuickBooks Online Load on runner 12.262.0 or laterApproved 10 November 2026
Samples from one authorization, sandbox companyNo connector to sample4 samples over 67 minutes, 2 automatic token refreshes, rows every time11 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

Does Maia have a QuickBooks Online connector?

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.

Do I have to re-authorize QuickBooks Online connections in Maia when the token expires?

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.

Why does QuickBooks Online return [120] Authorization Failure?

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.

What does [3100] ApplicationAuthorizationFailed mean for QuickBooks Online?

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.

Last updated
December 2, 2026

Featuring

Ben Bajek
Principal Forward Deployed Engineer, Matillion
We go after the problems that stop customers from getting value from their data, and we solve them so they stay solved: in the product, in shared tooling, or as context Maia and our teams can build on. My favourite engagements are the ones where fixing it for one customer quietly unlocks it for the next ten.

Data management
made effortless

Enjoy the freedom to do more with Maia on your side.
Abstract dark teal geometric shapes background with diagonal lines and subtle gradients.