- Read and manage contacts, including customers and suppliers
- Create, update, and read sales invoices and bills
- Record and read payments and bank transactions
- Read organisation settings, currencies, and tax rates
- Read financial reports such as profit and loss, balance sheet, and aged receivables and payables
Common use cases and example apps
Use Xero when your Lovable app needs live accounting data such as contacts, invoices, bills, payments, or financial reports from your Xero organisation.How to connect Xero
Who can create Xero connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors. You can create multiple Xero connections using different Xero apps or accounts, which is useful for separating environments or managing multiple businesses. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting Xero, make sure you have:- A Xero account with access to the organisation you want to connect
- A Xero app with a client ID and client secret (you create this in Step 1)
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All API requests made through this connector run against your own Xero app and count toward Xero’s rate limits. Billing and quota are handled directly by Xero, not Lovable.
Step 1: Create a Xero app
The connector authenticates through OAuth using your own Xero app, so you need a client ID and client secret before connecting. To create a Xero app:1
Open the Xero developer portal
Sign in to My Apps with your Xero account.
2
Create a new app
Click New app, name it (for example,
Lovable integration), and choose Web app as the integration type.3
Set the redirect URI
In the app’s OAuth 2.0 configuration, set the redirect URI to exactly:If the redirect URI doesn’t match exactly, Xero fails the authorization with an “Invalid redirect_uri” error.
4
Enable the scopes your connection needs
On the app’s Configuration page, enable every scope you plan to select in Lovable. Xero apps created after March 2026 support only granular scopes, and Xero rejects the entire authorization if Lovable requests a scope that isn’t enabled on the app.
5
Copy the credentials
On the Configuration page, copy the Client id (a 32-character code) and generate a Client secret. Copy both and store them securely. You need them in the next step.
Step 2: Connect Xero to Lovable
You can create multiple connections using different Xero apps.1
Open Xero in Connectors
Open Connectors and select Xero. For the other places to open the catalog from, see Where to find connectors.
2
Add a connection
Click Add connection.
3
Configure the connection
- Display name: name the connection, for example
Xero Prod. This name is only used inside Lovable to identify the connection. - Client ID: paste the client ID from your Xero app.
- Client Secret: paste the client secret you generated.
4
Review scopes (optional)
Expand Advanced settings to review the permissions your app will request. Default scopes are pre-selected for common use cases.
For full scope documentation, see Xero’s scope reference.
5
Choose who can use this connection
Under Who can use this connection, decide who in your workspace can use the connection. You start as the only person with access:
- Only you (default): leave the access list as is; only you can use the connection and its associated data.
- Invite specific people: add workspace members by email; only you and the people you add can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
6
Connect to Xero and authorize
Click Connect. The Xero authorization window opens, so make sure your browser doesn’t block pop-ups. If it does, Lovable redirects you instead.Sign in to Xero if prompted, choose the organisation you want to grant access to, and click Allow access.You’ll be redirected back to Lovable with a confirmation.
Limitations
The Xero connector cannot:- Write data outside the scopes selected on the connection. The report scopes are read-only.
- Use Xero’s umbrella scopes such as
accounting.transactionsoraccounting.reports.read. Select the granular scopes instead. - Support per-end-user Xero login. Each connection represents a single Xero account shared across all projects linked to it.
Troubleshooting
If connecting to Xero fails, the sections below cover the most common errors and how to resolve them.Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.