Skip to content

Xero “unauthorized_client : Invalid scope for client” at consent

Updated

Xero stops at consent with “Invalid scope for client”. Check which scope was added to the authorization link.

In the linked report, Xero accepted the original scope list and rejected the request after two scopes were added. Start by checking the scope list actually sent to Xero.

What we checkedWhere
Report after adding budget and 1099 scopesstackoverflow.com
Xero scope names, resources and access requirementsdeveloper.xero.com
Xero granular scope transitiondeveloper.xero.com
Tenant types and separate authorization flowsdeveloper.xero.com

Check it yourself

  • Read the scope parameter on the failed authorization request. If consent worked before a change, compare that list with the last one that worked.
  • Look up the added scope in Xero’s scope table and check that it is available to your app. For example, an app reading invoices with granular scopes uses accounting.invoices.read.
  • Request only the scopes the app needs for that connection. If you need both Accounting and Practice Manager, send the user through separate consent flows for those tenant types.

Still failing?

Send the error and the scope names you requested to money@iftodo.ai. Leave out codes, credentials and tokens.

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.