Skip to main content
Margin connects to Xero using OAuth client credentials.

1. What Margin Needs

From your finance/data team:
  1. A Xero app with Client ID and Client Secret
  2. Server-side secret storage for those credentials
  3. 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

  1. Log into Xero My Apps.
  2. Click New app and create a Web app.
  3. Fill required app info and set the redirect URI to the callback URL shown in Marginโ€™s integration setup.
  4. Open the appโ€™s Configuration tab.
  5. Copy the Client ID and generate/copy a Client Secret.

3. Configure the Integration in Margin

Use the Xero connector with:
FieldValue
Client IDXero app client ID
Client SecretXero app client secret
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