QuickBooks connection keeps dropping: "invalid_grant" / refresh token failed
Updated
Your app or automation suddenly stops posting to QuickBooks Online, with {"error":"invalid_grant"}, "Refresh OAuth 2 Access token with Refresh Token...
Your app or automation suddenly stops posting to QuickBooks Online, with {"error":"invalid_grant"}, "Refresh OAuth 2 Access token with Refresh Token failed", or a prompt to reconnect.
| What we checked | Where |
|---|---|
| Intuit OAuth 2.0 FAQ (token lifetimes and rotation) | developer.intuit.com |
| Real report: refresh token failed, invalid_grant | stackoverflow.com |
| Real report: refresh token expiring after 1 day | stackoverflow.com |
Check it yourself
- Write down the date and time of the last record that synced. That's where the gap starts.
- QuickBooks access tokens last one hour. Refresh tokens rotate: each refresh can return a new one, and the old one stops working. If two copies of an automation (an old workflow and a new one, staging and live) share one connection, each invalidates the other. Find and turn off the duplicate.
- A connection also breaks when the QuickBooks user who authorised it loses admin rights, or someone disconnects the app under Apps in QuickBooks. Ask who changed users or apps around the gap date.
- Reconnect once, from one place, as a QuickBooks admin. Then backfill only the gap: pull the source records between the gap start and now, and check each against QuickBooks before posting, so nothing posts twice.
Still failing?
Email the full error text and one record reference to money@iftodo.ai for a free first look. Remove customer names, amounts and credentials, and never send your accounting password. We'll tell you what the error points to and whether we can help.
Weekly sync checks for €29 a month
For one Shopify or Square to QuickBooks workflow, we check weekly exports for missing or duplicate records and email you when we find a mismatch. We run a sample first to see whether the two exports have matching references.
Ask for a sample check. We agree how to share exports before starting billing. Cancel by email before your next renewal.