Totem Integration with Xero
#1 Create an application on Xero
Add integration from Developer Center
https://developer.xero.com
Click [new app] button and fill in the form.

App Name: Totem Integration
Integration Type: WEB app
Company or Application URL: https://YOUR-COMPANY-NAME.gainplus.asia
Redirect URI: https://YOUR-COMPANY-NAME.gainplus.asia/payroll/index.phpmod=settings&view=plugin&plugin_key=xero

#2 Generate secret
From the application details, go to Configuration and Generate a secret.
You will need a secret with client ID to set up the integration on Totem.
Copy the secret once you generate it; otherwise, it won’t be available.
This step will conclude the setup on Xero.

#3 Connecting Totem to Xero
Go to the Plugin management screen from Totem Settings.

Enter Client ID and Secret previously defined on Xero and click [establish link] button.

You will then be prompted by Xero to confirm the requested permissions.
Note that if you are using Xero to manage multiple entities with your account, you will be asked to select which entity you want to connect.

Once accounts are connected system will display connection details (highlighted below) and list of accounts matching your cost center setup.

In order to verify/create accounts, run the review process by clicking the [recheck accounts] button at the bottom of this screen. That will confirm the existence of accounts with matching codes on Xero and show the name of the Xero account as confirmation.
In case the account does not exist on Xero, you can rectify this and rerun this process.
If you do not use particular accounts, it won’t be required to set it up on Xero.

That will allow you to transfer monthly journals directly from Totem to Xero.



















