Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Getting Bad Request while making token refresh calls

Started by Kevin Kong -   in API Endpoints

Hi,
We are getting Bad Request "Your browser sent a request that this server could not understand.<P>
Reference&#32;&#35;7&#46;15f04f17&#46;1564881304&#46;0" error while making the token refresh calls, can you please let me know how this can be avoided.
We are making a CURL request to refresh tokens and not doing it by a browser.
Response details:
This code is provided by the developer community - Xero does not warrant it in any way
Getting the same error. Have successfully authenticated, but it errors when I try to call an Accounting API endpoint (like Items). I only get the error when using oauth2. oauth1 works fine.
 

Reuben Cummings  

Turns out it was a scopes issue.

https://developer.xero.com/documentation/oauth2/scopes
 

Reuben Cummings