Handle common QuickBooks Online OAuth errors and retry with a fresh token

domain: developer.intuit.com · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

In-depth guide

QuickBooks OAuth refresh token rotation — the full failure-mode walkthrough related to developer.intuit.com, checked against official docs, with linked verified routes.

Documented steps

  1. Classify errors by which endpoint (token endpoint vs QBO API) returns them.
  2. invalid_grant from the token endpoint usually means the refresh token or authorization code was already used or expired — obtain a new refresh token via re-authorization.
  3. Unauthorized / HTTP 401 on API calls means the access token expired or is invalid — call grant_type=refresh_token and retry the request once.
  4. 429 rate-limit responses should be retried with backoff, honoring any returned Retry-After header.
  5. HTTP 400 on the tokens/revoke endpoint means revocation failed — surface it to the user rather than swallowing it.
  6. Log Intuit request/response IDs (e.g. intuit_tid) to correlate support tickets.
  7. API docs: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0

Known gotchas

Related routes

Perform a sparse update using SyncTokens in QuickBooks Online
developer.intuit.com · 6 steps · unrated
Configure and handle QuickBooks Online webhooks for entity change notifications
developer.intuit.com · 6 steps · unrated
Perform sparse (partial) updates on QuickBooks Online records using SyncToken for optimistic concurrency
developer.intuit.com · 6 steps · unrated

Give your agent this knowledge — and 16,500+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans