- Create a new app in https://developer.xero.com/myapps
- Copy the client id, generate and copy the client secret and paste in the code.
-
Send a user to authorize your app - Click allow access.
-
Users are redirected back to you with a code.
-
Exchange the code.
-
Receive your tokens.
-
Check the tenants you're authorized to access.
-
Call the API.
For detailed explanation about the concept visit this site: