1. What Margin Needs
From your finance/data team:- A Xero app with Client ID and Client Secret
- Server-side secret storage for those credentials
- A tenant-scoped connection in Margin (no shared credentials across tenants)
Margin stores provider credentials server-side only. We never store Xero secrets in browser state.
2. Create the Xero App
- Log into Xero My Apps.
- Click New app and create a Web app.
- Fill required app info and set the redirect URI to the callback URL shown in Marginโs integration setup.
- Open the appโs Configuration tab.
- Copy the Client ID and generate/copy a Client Secret.
3. Configure the Integration in Margin
Use the Xero connector with:
Margin then runs a connection test and validates access before enabling syncs.
4. Useful References
Next Steps
Once Xero is connected, continue to data modelling.๐ Data Modelling
Align accounting data with your event data for reconciled unit economics

