# Setup Manual

#### This section includes:

* [Stepwise Instructions to Integrate Recharge with Daton](#stepwise-instructions-to-integrate-shopify-with-daton)
* [Workflow](#workflow)

## Stepwise Instructions to Integrate Recharge with Daton <a href="#stepwise-instructions-to-integrate-shopify-with-daton" id="stepwise-instructions-to-integrate-shopify-with-daton"></a>

**Step 1:** ​[Generate an Access token](#step-1-generate-an-access-token): **Generate a New Access Token** from your Recharge account.

**Step 2:** [​Integrate Recharge with Daton](#step-2-integrate-recharge-with-daton): Use the Generated Access Token to integrate with Daton.

## **Prerequisites** <a href="#prerequisites" id="prerequisites"></a>

A Recharge account with permissions to create API tokens.

### **Step 1: Generate an Access token**

* [Sign in](https://rechargepayments.com/) to Recharge payments.

* Click the **'API tokens'** button under Apps on the left sidebar.<br>

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FZHNmiFqBHPtntJouZ6wG%2Fimage.png?alt=media&#x26;token=3f9b1d40-cf0c-461f-ade8-b3b9a4402c72" alt=""><figcaption></figcaption></figure>

* Click on **'Create an API token'** to generate a new set of tokens for Daton.

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FxRZEjPR90SmYVpSbf4z4%2Fimage.png?alt=media&#x26;token=e53fc08d-9a64-48a0-9615-5278d06763a4" alt=""><figcaption></figcaption></figure>

* In the Details section, enter a name and contact email corresponding to your account for the token.&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FRwKDQEr10fVffsdkz5fk%2F1API%20Recharge%20Payments%20v1v2.png?alt=media&#x26;token=9908dd1d-4158-4a53-bd8d-599ef4c5a5c3" alt=""><figcaption></figcaption></figure>

* Provide **'read access'** for each of the permissions you want to grant to the token.&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FHyPF2DnHS6Q5TVO1JIWz%2F2API%20Recharge%20Payments%20v1v2%20.png?alt=media&#x26;token=a9a4ed06-babc-4db3-a3ff-ddb23c18b557" alt=""><figcaption></figcaption></figure>

* Read and accept Recharge's API Terms of Service and click **Save**.

* Save the newly generated token. Please note that this token will be used while creating integrations in Daton.

### Step 2: Integrate Recharge with Daton

* [Sign in](https://daton.sarasanalytics.com/login) to your existing Daton account.&#x20;
* Search for **Recharge Payments v2** in the list of Connectors and click on the **'Configure'** button.
* Provide the necessary **Integration Name**, **Replication Frequency**, and **Replication Start Date** data and click the **'Authenticate'** button.\
  \&#xNAN;*Please Note, the **Integration Name** would be used in creating tables for the integration and cannot be changed later.*&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F5SfKLRsMYeYnnp8n7nso%2F1Recharge%20Payments%20v2.png?alt=media&#x26;token=6521cee4-4020-4b40-a1e3-aa57bee0a2a3" alt=""><figcaption></figcaption></figure>
* Provide your the generated **'Access Token'** and click on **'Authenticate.'**\
  ([*Click here*](#step-1-generate-an-access-token) *to read how to generate an Access Token in Recharge.)*<br>

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fl0tVaADguSuTIimEjv60%2F2Recharge%20Payments%20v1.png?alt=media&#x26;token=94503ab0-d482-4cfd-86a0-625426f1030a" alt=""><figcaption></figcaption></figure>
* Post successful authentication, you will be prompted to choose from the list of available tables. **Add** the required Tables and click on **'Next.'**&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FlgyQYMRcMvLGaxmXd46A%2F3Recharge%20Payments%20v1.png?alt=media&#x26;token=34f0c7ac-ada7-46d1-bab5-780e2ff1236c" alt=""><figcaption></figcaption></figure>
* Select all the columns you require for each table and **Submit** the integration.&#x20;

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FYIKHbWgpWhdlaDFTa3mn%2F4Recharge%20Payments%20v1.png?alt=media&#x26;token=14a69175-07ef-47e6-952b-a1125d8e3ffe" alt=""><figcaption></figcaption></figure>
* Once submitted, you will be prompted to select the destination for your account. Select your favorite destination and click on **'Confirm.'**

  You will now receive a popup saying **'Integration Successful.'**

  Congrats! Your Recharge account has been integrated with Daton.

## Workflow

1. Integrations would be in the **Pending state** *initially* and will be moved to the **Active state** *as soon as the first job loads* data successfully into the configured warehouse.
2. Users can **view** *job status and process logs* from the integration details page by clicking on the integration name from the active list.
3. Users can **Re-Authenticate, Edit, Clone, Pause** or **Delete** the integration at any given time by clicking on the settings.\
   You can also edit the integration to **change frequency** and **history**.
4. Each table in your integration can be accessed by clicking on the integration on the 'Sources' page. Here you may find the **status of each table,** the **last replicated time,** and **Reload access buttons**.

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><mark style="color:blue;"><strong>Contact Us</strong></mark></td><td><a href="mailto:support@sarasanalytics.com">mailto:support@sarasanalytics.com</a></td></tr><tr><td align="center"><mark style="color:blue;"><strong>Main Menu</strong></mark></td><td><a href="broken-reference">Broken link</a></td></tr></tbody></table>
