Xero - API and Third-Party Integration Error Guide
Xero API Integration Error: Fix Third-Party App Connection Failures
A third-party app connected to Xero is showing "OAuth authentication failed", "Rate limit exceeded", or data is not syncing between Xero and the connected app.
At QuickFix Bookkeeping, Xero API integration errors fall into two categories: authentication failures (the app cannot prove its identity to Xero) and data errors (the app is connected but data does not pass Xero validation). Each has a different fix path.
The QuickFix Bookkeeping Distinction
Xero API errors are either authentication failures or data validation failures -- completely different fixes.
Authentication failure
The third-party app's OAuth token has expired or been revoked. Xero access tokens expire after 30 minutes of inactivity; refresh tokens after 60 days. The app cannot communicate with Xero until re-authenticated.
Data validation failure
The app is authenticated but the data it sends to Xero does not pass validation -- mismatched account codes, missing fields, duplicate invoice references. The HTTP response contains the specific validation error.
Check first: Look at the HTTP response code. 401 = authentication failure (re-authorise). 400 = data validation failure (fix the data). 429 = rate limit (wait and retry). Each code points to a different fix.
What Causes Xero API Integration Errors?
Error code
API ERROR
Xero API - OAuth - Third-Party Integrations
What it means
A third-party app connected to Xero is showing "OAuth authentication failed", "Rate limit exceeded", or data is not syncing between Xero and the connected app.
What Causes This Error?
OAuth Token Expired or Revoked
The OAuth access token issued by Xero has expired (30-minute lifespan) and the refresh token has also expired (60 days) or been revoked. The app must re-authenticate.
API Rate Limit Exceeded (Error 429)
The app is making too many API calls. Xero's limit is 5,000 calls per day per organisation and 60 per minute. Exceeding either produces HTTP 429 errors.
Mismatched Account Codes
The app is trying to post transactions to Xero account codes that do not exist in the connected Xero organisation.
Duplicate Invoice or Bill Reference
The app is trying to create an invoice with a reference number that already exists in Xero. Xero rejects duplicate invoice numbers.
Xero Organisation Permissions Changed
A Xero administrator changed the permission level of the user whose credentials were used to connect the app. The integration fails for data types that user can no longer access.
Xero API HTTP Error Codes
400
Bad request - data validation failure
401
Unauthorised - token expired or revoked
403
Forbidden - insufficient permissions
429
This page -- Rate limit exceeded - too many calls
How to Fix This Error
Related Errors
Xero API Integration Still Failing After Re-Authentication?
QuickFix Bookkeeping Resolves Complex Xero API Integration Issues.
Persistent Xero API errors after re-authorisation usually point to a data mapping problem or permission scope issue requiring examination of the actual API response payload. Our Xero integration specialists diagnose the exact error and fix the integration at the root cause.
Book a Free 30-Minute ConsultationNo obligation. Same-day response.