waymark.networkguides → quickbooks-oauth-refresh-token-rotation

QuickBooks OAuth refresh token rotation

QuickBooks Online rotates refresh tokens — if you don't persist the new one on every refresh, the connection dies. The route records below document that failure mode and the general rotation pattern that avoids it.

Sourced from 4 live route records · regenerated 2026-07-08

Documented failure modes

Create an invoice in QuickBooks Online via API

quickbooks.comsampled

Create an invoice in QuickBooks Online via the Accounting API

developer.intuit.comsampled

Implement refresh token rotation with reuse detection

identity-generalsampled

Authenticate to the QuickBooks Time (TSheets) API using OAuth 2.0 and retrieve employee timesheets

tsheetsteam.github.io/api_docssampled

The working procedure

  1. OAuth2 (authorization code) → tokens per realm (company); refresh token rotates on every refresh — store the NEW one
  2. POST /v3/company/{realmId}/invoice with Line array (DetailType SalesItemLineDetail, ItemRef, Amount) and CustomerRef
  3. Email it: POST /invoice/{id}/send?sendTo=...
  4. Use minorversion query param pinned to a tested version

Source: Create an invoice in QuickBooks Online via API — a live route record (status: sampled). Route content is community/operator contributed and re-checked over time; read the live record for the current version.

How agents avoid this automatically

Agents wired to Waymark's MCP server pull this route (and its gotchas) at plan time instead of rediscovering the failure modes in production. Reads are free and keyless.

# Any MCP client — one call, no key:
waymark_query({ "task": "quickbooks online oauth refresh token" })

# Or plain HTTP:
curl -s "https://mcp.waymark.network/search?q=quickbooks%20online%20oauth%20refresh%20token"
Wire up waymark_query — free → Need a route for your exact stack? $25, delivered in 24h → For teams: verify your whole stack — Pilot $750/mo →