Xero
Xero connects with OAuth 2.0 through a Xero app you create, then you pick the organisation to connect.
Install the Xero integration
Install Xero from Available integrations in each environment you connect accounts from.
When you click Install, the second step shows the Redirect URL to add to your app and asks for its Client ID and Client Secret. If you skip it, add them later on the Configuration tab.
Set up your Xero OAuth app
Truto doesn't ship a Xero OAuth app of its own. Before your end users can connect with OAuth, bring yours:
- Create a Web app in Xero's My Apps. Add
https://api.truto.one/connect/xero/callbackas its redirect URL. If you use a redirect URL on your own domain, add that URL instead. - Enter the app's Client ID and Client Secret on the installed Xero integration. See Overriding OAuth credentials.
Until you add them, Xero is left out of the Connect UI. See Until the app is configured.
By default, Truto asks Xero for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.
emailopenidprofileoffline_accessaccounting.transactionsaccounting.reports.readaccounting.reports.tenninetynine.readaccounting.journals.readaccounting.settingsaccounting.contactsaccounting.attachmentsaccounting.budgets.readfilesassetsprojects
Xero apps created on or after 2 March 2026 use Xero's granular scopes, and Xero is replacing the broad accounting.transactions and accounting.reports.read in that list. When you enter the Client ID and Client Secret, replace Scopes with:
email openid profile offline_access accounting.invoices accounting.payments accounting.banktransactions accounting.manualjournals accounting.reports.aged.read accounting.reports.balancesheet.read accounting.reports.banksummary.read accounting.reports.budgetsummary.read accounting.reports.executivesummary.read accounting.reports.profitandloss.read accounting.reports.trialbalance.read accounting.reports.taxreports.read accounting.reports.tenninetynine.read accounting.settings accounting.contacts accounting.attachments accounting.budgets.read files assets projectsAdd accounting.journals.read only once Xero has approved your app for the Journals endpoint, which needs a security assessment, use-case approval and Xero's Advanced tier. See Xero's scopes reference.
Connect a Xero account
- In Integrated Accounts, click Connect Account.

- Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Xero, pick it under Advanced settings → Integration (optional). Click Get connection link.

- Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Xero account. The link works for 7 days, until an account is connected with it.

- Click Get Started if it shows, then select Xero.

- Sign in to Xero and allow access.
- Under Xero Tenant, pick the organisation to connect and continue. Each Truto account connects one Xero organisation, and the organisation's name becomes the account's label. Connect again for another organisation.
- Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.