This guide covers Xero OAuth 2.0 authentication, permission scopes, organization binding, token lifecycle, and disconnection for Flyweel. Once Xero is authorized here, see Xero Invoice Sync Feature for daily 02:00 UTC Meta invoice matching behavior, contact mapping, and reconciliation rules.
Prerequisites Link to this section
- An active Flyweel workspace with permission to manage integrations.
- Standard, Advisor, or Administrator user role with the Connected Apps permission in the target Xero organization.
- Access to the specific Xero organization where you record paid advertising bills.
Connect Xero via OAuth 2.0 Link to this section
Open Integrations
Go to Settings -> Integrations in Flyweel.
Start OAuth Authorization
Select the Xero card and click Connect Integration. Flyweel redirects you to Xero’s official OAuth 2.0 consent screen.
Choose One Xero Organization
Select the single Xero organization you want to link on Xero’s consent screen. If multiple organizations are ticked during consent, Flyweel binds to the first authorized tenant.
Approve Scopes and Return
Review the requested permissions and approve access. Flyweel stores the encrypted OAuth token pair and returns you to Settings -> Integrations with a Connected status.
Authorization completes in under two minutes.
OAuth Scopes and Access Boundaries Link to this section
Flyweel requests only the Xero accounting scopes needed to create ad spend bills and attach billing PDFs:
| Xero Resource | Access Level | How Flyweel Uses It |
|---|---|---|
| Contacts | Read and create | Look up an existing Meta vendor contact or create a new contact if you choose Create New Contact. |
| Invoices / Bills & Attachments | Read and create | Verify existing references to prevent duplicates, create approved bills for Meta Ads spend, and attach the Meta invoice PDF. |
| Organization Settings | Read only | Confirm organization name, currency, and chart-of-accounts metadata during configuration. |
Explicit Restrictions Link to this section
- Flyweel never edits or deletes existing bills, invoices, contacts, or manual journal entries in Xero.
- Flyweel does not access Xero Payroll, employee records, or bank feed credentials.
Read and Create Only: Flyweel writes new advertising bills with Meta transaction references and never alters existing accounting records in your Xero ledger.
Security and Credential Handling Link to this section
- OAuth 2.0 delegated access: Your Xero username and password are never entered into or stored by Flyweel.
- Encrypted transport and storage: All API requests run over TLS 1.3, and OAuth refresh tokens are stored encrypted at rest.
- One-org binding: Each Flyweel workspace links to one Xero organization at a time. To switch organizations, disconnect and re-authorize with the intended tenant selected.
60-Day Token Expiry and Re-Authorization Link to this section
Xero OAuth 2.0 refresh tokens automatically expire after 60 consecutive days of inactivity (or immediately if revoked inside Xero or if the authorizing user loses organization permissions).
If your Xero connection expires:
- Open Settings -> Integrations -> Xero in Flyweel.
- Click Disconnect, then select Connect Integration.
- Sign in to Xero, select the same Xero organization, and approve the consent prompt.
Re-authorizing restores automated syncing without duplicating previously synced bills.
Disconnect or Revoke Access Link to this section
You can revoke Flyweel’s OAuth connection from either side at any time:
- From Flyweel: Go to Settings -> Integrations -> Xero and click Disconnect.
- From Xero: Log in to Xero, open Settings -> Connected Apps, locate Flyweel, and click Disconnect.
Disconnecting halts future bill creation immediately while leaving all previously created bills and PDFs untouched in Xero.
Connection Troubleshooting Link to this section
- Consent screen fails or loops: Confirm your Xero login holds a Standard, Advisor, or Administrator role with the Connected Apps permission, check that the Xero organization is active (not suspended), and retry in an incognito window to rule out stale session cookies.
- Connected to the wrong Xero organization: Click Disconnect in Flyweel, click Connect Integration, and tick only the intended organization on Xero’s consent screen.
- Need multi-organization mapping? Contact team@flyweel.co.
Related Guides Link to this section
- Xero Invoice Sync Feature: Daily 02:00 UTC Meta invoice sync rules, plan limits, and reconciliation troubleshooting
- Xero Integration Overview: Product overview on flyweel.co
- Automated Ad Invoice Reconciliation: How Flyweel reconciles ad spend across finance and media teams
- Meta Ads Setup Guide: Connecting the Meta ad accounts whose invoices sync to Xero