Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

Creating an OAuth 2.0 App

Started by Tich Wadi -   in API Authentication

Good day, I am new with Xero API.
I am trying to generate access token using postman web application, but I am getting Error code: 500
Error: unauthorized_client : Invalid redirect_uri

Redirect URI I am using is https://developer.xero.com as given on this read https://github.com/XeroAPI/xero-postman-oauth2

Can anyone assist with the correct redirect_uri to use.
Best Reply as chosen by Tich Wadi (Original Poster)
Please can you either use the Postman desktop app or change the redirect uri in your app configuration screen to https://oauth.pstmn.io/v1/browser-callback.

The web version of Postman does not allow you to change the redirect uri , instead it sets it as https://oauth.pstmn.io/v1/browser-callback and Xero's API needs the uri in the call and in your app configuration to match.
 

Sally C (Community Manager)