Custom Integration
Are client credentials still available for machine-to-machine integrations?
Yes. Client credentials is the right model for many machine-to-machine integrations. You can select this when you build a single organisation application
Can a custom connection be connected to multiple organisations?
No, it can only be connected to a single organisation.
Can an organisation have multiple custom connections?
An organisation keeps the Custom Connections it already has, but it can't buy more. Custom Connections don't affect the uncertified app limit. To connect another app to one organisation, build a Single Organisation App. A Single Organisation App counts toward the uncertified app limit.
Can I access journals with a custom connection?
It depends on when you created your connection.
Connections created before 29 April 2026: These have broad scopes and can continue to access journals using the accounting.journals.read scope.
Connections created from 29 April 2026: these use new granular scopes, which don't include journal access.
A new single organisation app can access journals if you move to the Builder plan.
Can I make changes to a custom connection after it’s activated? Can I add more scopes or switch organisations?
Yes. If you choose to make changes to your custom connection it will be deactivated until it is re-authorised. You'll now use granular scopes for custom connections. More information is available here.
However, if you remove a broad scope from an existing connection, you won't be able to re-add it. Any broad scope you remove will be permanently replaced by granular scopes. You can continue to use your existing broad scopes until September 2027, as long as they remain in your configuration.
Do access tokens expire?
Yes access tokens expire after 30 minutes but a new access token can be requested (as above) without user interaction.
Do I need to manage refresh tokens?
No, refresh tokens are not required. An access token can be requested using only the client_id and client_secret.
Do I need to specify the xero-tenant-id header when making API calls?
No, the xero-tenant-id header is not required. Each custom connection can only make calls against one organisation so only the access token is required.
Do I need to write code to handle the authorisation flow?
No. When the developer sets up a custom connection on developer.xero.com they will specify the email address of the authorising user (e.g. their client). That user will receive an email which guides them through the authorisation process.
If the developer is building an integration to an organization they have access to (e.g. for their own company) they can also be the authorising user.
How can I test a Custom Connection?
Custom Connections can be tested using the demo company. There is no charge when using a demo company.
How do I build a machine to machine integration?
For one organisation, create a Single Organisation App that uses Client Credentials. It needs a paid plan, which you choose when you create it. See Single Organisation App plans.
For more than one organisation, use the Web or PKCE code flow. You'll need to request your tokens and handle authorisation outside of your application.
How do I manage my existing Custom Connection subscriptions?
You can manage this in Xero, by going to Settings > Connected apps > App Store subscriptions > Custom Connections. There you can manage your Custom Connection subscriptions or delete them, and update the payment method. Once a subscription is cancelled, it can’t be bought again.
How do I move my existing Custom Connection to a Single Organisation App?
In My Apps, create a new app and choose "Just my organisation". For the app type, choose “Workflow automation, data syncs or AI tools". Since the app uses Client Credentials, you will need to choose a paid plan and complete checkout.
Note: Only the organisation's owner can create the app. If a developer looks after your integration, the owner creates the app and adds the developer as a collaborator
On the app's Configuration page, select the same scopes as your Custom Connection.
Authorise the app once, for the same organisation.
On the Configuration page, copy the client ID and generate a client secret. In your integration, replace the Custom Connection's client ID and client secret with them.
Your Custom Connection subscription doesn't end by itself. To stop paying for it, cancel it in Xero. Cancelling ends every Custom Connection on the subscription.
I have an existing Custom Connection subscription that isn’t connected to an app. What happens?
You have until 15 February 2027 to connect your unused subscription to an app or cancel it.
Connect it: You can still connect unused subscriptions to an existing Custom Connection app until 15 February 2027. Steps to connect an unused subscription to an existing app can be found here.
Cancel it: You can cancel at any time before 16 February 2027. Steps to cancel unused subscriptions are found here.
Do nothing: On 16 February 2027, if you haven’t connected or canceled your unused subscriptions, we’ll cancel them for you, so you stop paying for something you’re not using.
Once a subscription is cancelled, it can’t be bought again.
What happens if I delete a Custom Connection?
A deleted Custom Connection can't be created again.
What happens to my existing Custom Connections?
A Custom Connection that already exists keeps working. It keeps the same API access and daily call limit it has now. From September 2027, all Custom Connections will need to migrate to Single Organisation Apps. We'll share more details in March 2027.
What's changing with Custom Connections?
Xero no longer sells Custom Connections. Existing Custom Connections keep working, but you can't:
Create a new Custom Connection app
Buy a new Custom Connection subscription
Why does the consent page say "Subscription no longer available"?
The organisation has no active Custom Connection subscription, or every Custom Connection on its subscription is in use. You can't buy a new subscription or more Custom Connections. To connect that organisation, build a Single Organisation App.
Will a Custom Connection require the use of scopes?
Yes. The developer selects scopes in the Custom Connection's configuration, and the Xero user sees them during authorisation. Custom Connections created from 29 April 2026 use granular scopes. More information is available here.
Will you support long lived access tokens?
No, we've implemented short-lived tokens with long-lived authorizations as is best practice. All Xero access tokens expire after 30 minutes. Refresh tokens allow your app to obtain new access tokens without involving a user again.
Single organisation apps using client credentials do not have to manage a refresh token. It only requires your client id and client secret to request new access tokens.
Will you support the client credentials grant type?
Yes, single organisation apps built using the Client Credentials grant type provides an alternative way to retrieve information about your connections and users' subscriptions, without requiring the user's access or refresh tokens. You will however need a ClientID and a Client Secret.