# How to Integrate Braintree Account with Daton

### Prerequisites

Before we start, ensure you have&#x20;

* An active Daton and Braintree account.
* Access tokens (Public key, private key) and Merchant ID

### Task &#x31;**: Generate an Access token** for the Braintree account

* Access your Braintree account by logging in with your credentials.&#x20;
* Locate the **Settings icon** and click on it. From the dropdown menu, select **'API**' to navigate to the API keys page.&#x20;

  <figure><img src="/files/2RiLEcUptcarCucV0MHI" alt=""><figcaption></figcaption></figure>
* On the API keys page, find the specific API key section and click on the **'view'** button under the Private Key column. You will be able to retrieve your public key, private key, and merchant ID from there. <br>

  <figure><img src="/files/Y34HZOb2bJ01PnY1CQ8C" alt=""><figcaption></figcaption></figure>

  <figure><img src="/files/3DZc46ybtxbZDWFimP4r" alt=""><figcaption></figcaption></figure>

Make sure to save these keys as they will be required for establishing the connection between your Braintree account and Daton.

### **Task 2:** ​Integrate Daton with Braintree Account

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for Braintree 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;

   <div align="left"><figure><img src="/files/keTZ6D5rkvzy4YGjhzyB" alt=""><figcaption></figcaption></figure></div>

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.
3. Provide the following Braintree API credentials to **authenticate** the integration:&#x20;

   * Public Key
   * Private Key&#x20;
   * Merchant ID

   <figure><img src="/files/8tXgBn1GgSUyXxweaBZh" alt=""><figcaption></figcaption></figure>
4. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.&#x20;
5. Select the required fields for each table and click **Submit.**&#x20;

   **Note** that you will be prompted to select the destination for your store or shop.
6. Select the destination for your store or shop 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 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/braintree/how-to-integrate-braintree-account-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.
