---
title: Integrating with Xero
slug: integrating-with-xero
docTags: 
createdAt: 2020-04-16T11:36:53.000Z
---

Pathfix allows you to easily add end-user OAuth based integration, handling authorization and enable communication between your app and Xero in just a few minutes.

Before proceeding, you will first need to register your application with Xero. Please refer the developer documentation provided by Xero here: [https://developer.xero.com/myapps](https://developer.xero.com/myapps).

Please note: You will need to create an account with Xero to access this.



## Enable OAuth in Xero

Access your Application on Xero

Once you have added your application, you will need to navigate to Credentials

- Select the App you want to enable the connection
- Navigate to `Details` section



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/6pS4Kb9BIjU1Kz82J6BY3_image.png)



- Navigate to `OAuth 2.0 credentials` and add the Pathfix Redirect URI `https://labs.pathfix.com/integrate/command` under the Redirect URI section



::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/qN1M7tIKvWzXcvN8VEq7g_Xero2.png" size="70" position="center" showCaption="false"}





- Copy the `Client ID` and `Client Secret`

::Image[]{src="https://api.archbee.com/api/presign/E6H_--BmYJWG_yGaOUOxt/NszQce21yRDBNXSgpAQR7_Xero3.png" size="70" position="center" showCaption="false"}



## Setup in Pathfix

- Login to your Pathfix account and click on `Add Application`
- Add the name of your SaaS and hit `Save`
- Select Xero from the list of providers to integrate with. You can change the Display `Name` and `Description`.&#x20;
- Enter the `Client ID` and `Client Secret` generated from Xero
- You can modify the scopes to add scopes you want to access and hit `Save`



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/cyNq98e8ovcXKQ_XX77LS_image.png" size="82" width="1168" height="960" position="center" showCaption="false"}



- Click on `Test Connection` and Connect an account to test the setup
- Once connected successfully, you will be able to choose a sample API from the dropdown to run test API calls
- Select a sample API from the dropdown and click on Send



## Adding Integration To Your SaaS

There are 2 steps to adding the integration to your SaaS

1. [End-user authorization](docId\:MsCMNgUGRsGrzSCMLCiXf)
2. [Enable pass-through API](docId\:JiDAxEPNR2Owz8w4_JpBK)



To add the integration to your Bubble app, please follow this documentation [Bubble.io Setup](https://docs.pathfix.com/bubble)



Need help? Reach out to us at support\@pathfix.com and we would be happy to assist!



