Connect Xero to Rig
Sync your Xero accounting data into Rig, so your AI tools can answer finance questions about invoices, payments and cash alongside the rest of your data. There are two ways to connect Xero: a one-click Authorize with Xero sign-in, which we always recommend, and a manual Xero Custom Connection for organisations that block the one-click flow. Both sync the same data.
Which connection to use
- Authorize with Xero (Option A): a one-click authorisation. It is free and needs no developer setup or pasted keys. This is the right choice for almost everyone.
- Xero Custom Connection (Option B): a machine-to-machine link set up in Xero's developer portal. It's a paid Xero add-on, billed per organisation, and needs a Client ID and Client Secret.
Option A: Authorize with Xero
The fastest way to connect. You authorise Rig against your Xero organisation in a popup, and there are no keys or developer setup involved.
Adding a source needs a workspace owner, or a role with the Manage connections permission, on a workspace where you manage your own connections. If the Connectors tab says “Data ingestion for this workspace is managed by Rig”, ask an owner or Rig support to add the source.
- In Rig, open
Connections, choose theConnectorstab and go toSources & actions. - Search for Xero (it's under Finance), open the card labelled simply Xero and click
Connect. - Label (optional): if you'll connect more than one Xero organisation, give each a label such as "UK Ltd" so Rig can keep them in separate datasets. Once one Xero connection exists, the field is called Account label and is required.
- Xero tenant ID (optional): leave blank. Rig discovers it automatically, and you only need it if you authorise more than one organisation in a single connection.
- Click Authorize with Xero. A Xero popup asks you to sign in and choose the organisation to connect, then approve the access Rig requests.
- Back in Rig, choose which streams to sync and click
Save selection, orKeep everythingto sync them all. - The source then syncs on its schedule, which is nightly unless you change it. To load data straight away, click
Syncon its row;Testpulls a small sample first if you want to check the connection.
Xero handles the sign-in
Rig authorises through Xero's hosted login, so there's nothing to configure in Xero's developer portal and no secret to store. Rig keeps the connection alive as long as it syncs regularly.
Option B: Xero Custom Connection
A Custom Connection is a machine-to-machine link that keeps syncing in the background without anyone needing to log in again. It's a paid Xero add-on, so use it only if Option A doesn't fit your setup.
Before you start
- A Xero login that can authorise the organisation you want to connect (a Standard or Adviser user on that organisation).
- Access to Xero's developer portal at
developer.xero.comto create the Custom Connection. Custom Connections are a paid Xero add-on, billed per connection, and each one is tied to a single organisation. - By the end you'll have two values to paste into Rig: a Client ID and a Client Secret.
Step 1: Create a Xero Custom Connection
- Sign in at
developer.xero.com, openMy Appsand clickNew app. - Choose Custom Connection as the integration type and give it a name such as "Rig".
- Enter the authorising user: the email of the person in your Xero organisation who will approve the connection.
- Select the read scopes Rig needs. Xero presents these as tick boxes, and a read-only sync needs all four:
accounting.transactions.readaccounting.contacts.readaccounting.settings.readaccounting.journals.read
- Create the connection. The authorising user receives an email from Xero and approves it for one organisation.
- Open the connection's
Configurationtab. Copy the Client ID, then generate a Client Secret and copy it straight away. Xero only shows the secret once.
Your scopes set the ceiling
Rig can only request scopes you granted when creating the Custom Connection. If Rig later asks for a scope the connection wasn't created with, Xero rejects the token. Pick all the read scopes you might want up front.
Step 2: Connect it in Rig
- In Rig, open
Connections, choose theConnectorstab and go toSources & actions. - Search for Xero, open the Xero (Custom Connection) card and click
Connect. - Client ID: paste the Client ID.
- Client secret: paste the Client Secret.
- Scopes (optional): leave blank to inherit the scopes your Custom Connection was created with, which is the recommended setting. To set them explicitly, the field takes a space-separated list, so paste this:Anything you paste here must be a subset of what the authorising user granted in Xero, or the sync fails with an invalid-scope error.
accounting.transactions.read accounting.contacts.read accounting.settings.read accounting.journals.read - Xero tenant ID (optional): leave blank. Rig discovers it automatically, since a Custom Connection has exactly one organisation.
- Click
Continue. Rig checks the credentials and lists the streams it can reach, so choose the ones you want and clickConnect. - The source then syncs on its schedule, which is nightly unless you change it. To load data straight away, click
Syncon its row;Testpulls a small sample first if you want to check the connection.
What Rig pulls in
Whichever way you connect, Xero lands in its own xero schema in your warehouse, covering your core accounting records from the Accounting API:
- Invoices, contacts, payments, bank transactions and credit notes
- Manual journals, purchase orders, overpayments and prepayments
- Accounts (chart of accounts), items, tax rates and tracking categories
- Organisation details and the full journals feed
Good to know
- Each connection covers one Xero organisation. To sync more than one, connect Xero again per organisation (add a label so Rig keeps them in separate datasets).
- A Custom Connection uses machine-to-machine authentication, so the nightly sync never needs anyone to sign in again. There's no token to refresh by hand.
- With a Custom Connection, treat the Client Secret like a password. If it leaks, generate a new one on the connection's
Configurationtab in Xero. Then paste it into Rig with the pencil icon on the source's row, whose tooltip reads “Edit credentials / folder list”. - To disconnect, click the bin icon on the source's row under
Sources & actionsin Rig. Only whoever connected the source or a workspace owner can do this, and data already synced stays in the warehouse. Remove a Custom Connection in Xero underMy Apps.
Write back to Xero
Claude and Rig workflows can also make changes in Xero through Rig, within the roles and approvals you set. See write actions for what agents can change and how to control it.
What people use this for
- Monitor cash position and bank movements
- Manage receivables and customer payment behaviour
- Analyse revenue and expenses by account