Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

How to add scopes to Xero token

Started by Tony Carter -   in API Authentication


I had a Web App to extract some reports such as Balance Sheet and P&L using machine to machine connection. I've built a token using xoauth and Insomnia, saved it in a database and kept refreshing it at least once every two months so I don't have to manually authorise the connection. At the time of configuration I had the following scopes configured:

Now I need to pull out accounts and need the following scopes in addition to the above:

How can I do this without re-doing all the work of generating the tokens?

Figured it out. I had to disconnect the app from the entity. Create new token with new scopes and save it to the database.

Tony Carter