The step of setting up a connection from postman to Xero development program. -1 Import the Xero OAuth 2.0 collection and Xero environment into Postman. -1a Click "Run in postman" in this webpage. https://developer.xero.com/documentation/sdks-and-tools/tools/postman/ -1b Choose Workspace. -2 Create an OAuth2 app on https://developer.xero.com/app/manage/ -2a Add new App name. Select "Web app" from Integration type. -2b Add Company or application URL ex: https://myapp.com -2c Add Redirect URI ex: https://myapp.com -2d Click "Create app". -2e Click Configuration from the left hand side of the screen -2f Click Generate a secret -2g Keep the page open -3 Add your first set of environment variables in Postman. -3a On the right above, make sure to select the "OAuth 2.0" environment. -3b Copy the Client id, Client secret and OAuth 2.0 redirect URI from the My Apps screen into the environment variables in Postman. -3c Set the scope and add a state in the environment. Scope: offline_access accounting.transactions openid profile email accounting.contacts accounting.settings State: 123 Make sure to save it once you fill out. -4 Generate an accessToken. -4a Click on the GET Get Started request under the Xero OAuth 2.0 Collection. -4b Click the "Authorization" and Edit "Configure new token" . -4c Fill out "Token Name", "Callback URL", "Auth URL", "AccessToken URL", "Client ID", "Client Secret", "Scope",and "State" Token Name: You can set the token name. Callback URL: Redirect URL which is set in a postman. AuthURL : https://login.xero.com/identity/connect/authorize AccessTokenURL: https://identity.xero.com/connect/token Client ID, Client Secret, Scope, State: Copy and paste from the environment. -4d Click "Get New Access Token". -4e Login your Xero account. -5 Set the AccessToken. -5a Highlight the Access Token Right-click on it Select Set: OAuth 2.0 > access_token Scroll down the Manage Access Tokens pop up and follow a similar process for the Refresh Token: -5b Highlight the Refresh Token Right-click on it Select Set: OAuth 2.0 > refresh_token -6 Find out which tenants (organisations) we are connected to -6a Click on the GET Connections request -6b Click Send (If this results in an error you may need to run the Token Refresh call first) -6c Like we did for the Access and Refresh Tokens, highlight the tenantId from the response, right click and select Set > OAuth 2.0 > xero-tenant-id -7 Make your first API call! -7a Click to load the GET Invoices request -7b Ensure No Auth is set on the Authorization tab -7c Click Send -8 Refreshing the token -8a Click to load the POST Refresh token request -8b Ensure No Auth is set on the Authorization tab -8c Click Send The step of setting up a custom connection. -1 Import the Custom Connections collection and Xero environment into Postman. -1a Click "Run in postman" for a custom connection this webpage. https://developer.xero.com/documentation/sdks-and-tools/tools/postman/ -1b Click "Fork Collection". -1c Add "Fork Label" and "Workspace". -1d Click "Fork Collection". -2 Create a Custom Connection. -2a Login https://developer.xero.com/app/manage. -2b Click "New app" on right above. -2c Set an App name, select a "Custom connection", set "Company or application URL". -2d Click "Create app". -2e Select the scopes your integration needs ex: accounting.transactions, accounting.setting, accounting.contacts. -2f Select yourself as the user that will authorise the custom connection. -2g Click Save and Connect. -2h Check your email, then, Click "connect" on the email. -2i Select "Demo Company", Click "Allow Access". -2j Back to a configuration tab in https://developer.xero.com. -3 Set up your environment variables in Postman. -3a Copy the client id and client secret from the configuration tab into the environment variables in Postman. Make sure you select the environment which you just created. -3b Add a Scopes, which is the same as the one you set in https://developer.xero.com/app/manage in the enviroment. -4 Make a AccessToken request! -4a Click on the POST Connections request -4b Click Send -5 Make your first API call! -5a Click to load the GET Invoices request -5b Click Send