Staff open Integrations in Leviathan Office and choose connect. They are sent to Xero to sign in and approve access, then return to Leviathan Office (OAuth 2.0 authorisation code). The access tokens are kept on the server, never in the browser.
Before first use, staff map a Xero account code and tax type for a sales line and for a commission line, and optionally a tracking category. Until a tracking category is set, a default is used.
Everything runs on demand, when someone triggers it. Sales invoices and bills are created in Xero. Contacts, accounts, tax rates, tracking categories and organisation details are read from Xero, for picking a contact and for the mapping screen, and so is the list of invoices and bills with status, totals and amount due. Nothing is written back into Leviathan Office records.