# Xero (prebuilt connector)

## Description

**Xero** provides cloud-based accounting software for small businesses.

## API documentation

API documentation for **Xero** (used to build this connector) can be found via the link below:

{% embed url="<https://developer.xero.com/documentation/api/accounting/overview>" %}

## Authentication&#x20;

When adding connector instances for **Xero**, the following authentication methods are supported:

* [OAuth 2 (client credentials)](#oauth-2-authorisation-code)

### OAuth 2 (client credentials)

When a user chooses to [add a connector instance](https://doc.wearepatchworks.com/product-documentation/connectors-and-instances/working-with-instances/adding-an-instance) using **OAuth 2 (client credentials)** authentication, the credentials below are prompted:

<table><thead><tr><th>Credential</th><th data-type="checkbox">Required?</th><th>Notes</th></tr></thead><tbody><tr><td><code>Base URL</code></td><td>true</td><td>Leave as the default setting.</td></tr><tr><td><code>Client ID</code></td><td>true</td><td>Enter your client id for Patchworks access to your Xero data. You can generate your API credentials from the Xero dashboard. For information please see <a href="https://developer.xero.com/documentation/guides/oauth2/client-credentials/">this Xero guide</a>.</td></tr><tr><td><code>Client Secret</code></td><td>true</td><td>Enter your client secret for Patchworks access to your Xero data. You can generate your API credentials from the Xero dashboard. For information please see <a href="https://developer.xero.com/documentation/guides/oauth2/client-credentials/">this Xero guide</a>.</td></tr></tbody></table>
