# How to Integrate Xero V2 with Daton

### Prerequisites

Before we get started, make sure you have an active Daton and Xero account.

### Integrate Daton with Xero v2&#x20;

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for Xero v2 in the list of Connectors, then click **Configure**.
2. Enter the following details and click **Authenticate**:&#x20;

   * Integration Name&#x20;
   * Replication Frequency&#x20;
   * Replication Start Date&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F3Qqr64DyfeFsBjpfVv4o%2F1xerov2.png?alt=media&#x26;token=bc1d7e67-9f1c-417b-85a7-24226dcee587" alt=""><figcaption></figcaption></figure>

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.
3. Provide the Xero user email and password to **authenticate** the integration.&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FQ4xrHMF8Y2Z1ipAIAfI9%2F2xerov2.png?alt=media&#x26;token=e1e72f4f-2589-48fa-adbd-5bc36ed4f085" alt=""><figcaption></figcaption></figure>
4. You will now be prompted to choose accounts associated with a Xero tenant-id from the list. Select the required accounts and click **Next**.

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fv0PNZ22KWHJQPWMq5jZ5%2FScreenshot%202023-09-30%20at%201.25.52%20AM.png?alt=media&#x26;token=3f0bf3cc-7113-436d-a4fb-ef08e1a9c51d" alt=""><figcaption></figcaption></figure>
5. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F7reAKVr0J6BSQyPMbDnZ%2F3xerov2.png?alt=media&#x26;token=43064f28-c089-46eb-811c-a20b93d1f2b6" alt=""><figcaption></figcaption></figure>
6. Select the required fields for each table and click **Submit.**&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FiMg9lD0wzZPN6FlrTFHb%2F4xerov2.png?alt=media&#x26;token=2c20a51e-a5e7-47d4-af83-7e28e498d464" alt=""><figcaption></figcaption></figure>

   **Note** that you will be prompted to select the destination for your account.
7. Select the destination for your Xero data and click **Confirm**. An integration successful message will be displayed.

## Important Note

* Integrations would begin in the Pending state and change to the Active state once the first job successfully loaded data into the configured warehouse.&#x20;
* Users can check job status and process logs from the integration details page by clicking on the integration name in the active list.&#x20;
* Users can Re-Authenticate, Edit, Clone, Pause, or Delete the integration at any moment by clicking on settings. You can also adjust the frequency and history of the integration.&#x20;
* On the Sources page, click Integration to access each table in your integration. The page also shows the state of each table, the last replicated time, and the Reload access buttons.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/saas-integrations/xero-v2/how-to-integrate-xero-v2-with-daton.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
