# How to Integrate BigCommerce Account with Daton

### Prerequisites

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

### Task &#x31;**: Generate an Access token** for BigCommerce store

When creating a new API account in BigCommerce, you can retrieve the Access Token, Store HASH, and Client ID information.

1. Log in to your [BigCommerce account](https://login.bigcommerce.com/login) and select **Settings** on the left menu.  &#x20;
2. Navigate to the API section and click **Store-level API accounts.**&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FC4088fopQ4Qz3SQ5GdBo%2F3BCv2APIrev.png?alt=media&#x26;token=ce56233d-62bc-414b-88dc-4281a85e4107" alt=""><figcaption></figcaption></figure>
3. Click **Create API Account** on the top right corner of the **Store-level API accounts** page and perform the following:&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FzJbVAPt0niflsuD4AwJd%2F4BCv2APIrev.png?alt=media&#x26;token=a710c2a4-5546-4f80-b164-05d11f766528" alt=""><figcaption></figcaption></figure>

   * Select the token type. Keep the default option, which is the **V2/V3 API token**.
   * Enter a name for the app or integration associated with this API account, and then copy or save the API path.&#x20;

     Note that the alphanumeric characters after stores in the API path is your Store HASH. For example, `123abc` is the Store Hash in the following API path: `https://api.bigcommerce.com/stores/123abc/v3/`

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FsxPYfQf9DS6cj5m65XyX%2F3BCv2APIrev.png?alt=media&#x26;token=194e402e-a388-444e-ad76-409ff120b29a" alt=""><figcaption></figcaption></figure>

   * Specify under OAuth Scopes the API resources and permissions to which your app or integration requires access. Select read-only for all items.&#x20;

     **Note** that Daton does not require any Write permissions to the account.&#x20;
4. Click **Save** after making all the changes. A `.txt` file containing the API credentials will automatically get downloaded to your device.&#x20;

   **Note** that to avoid rework, you can also copy and save the credentials, such as **Client ID** and **Access Token**, from the fields displayed in the pop-up.&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FKinCKao0rNVD6qszGXCw%2F4BCv2APIrev.png?alt=media&#x26;token=0935ba12-e207-4cb9-a8be-364d7d9ccf6b" alt=""><figcaption></figcaption></figure>

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

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for BigCommerce 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="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FROlxcmHYd8vjLZneAy00%2FDoc%20BigCommerce%20v2%20rev.png?alt=media&#x26;token=56a7e1f6-091e-498d-97f3-fe4cde822d79" 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 BigCommerce API credentials to **authenticate** the integration:&#x20;

   * Store HASH&#x20;
   * Client ID&#x20;
   * Access Token&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FbwsyQCyjUMj7uvV107Wo%2F2BCv2Docrev.png?alt=media&#x26;token=87fb48fb-985f-4f67-9b47-aabcf8cf41a5" 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;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FoHtcwXrh43M3JkLHbsyY%2F3BCv2Docrev.png?alt=media&#x26;token=ee332ba6-5a12-4dfb-999d-752254ef3e3a" alt=""><figcaption></figcaption></figure>
5. 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%2FnemJ1tgeEO54wbXdxN1i%2F4BCv2Docrev.png?alt=media&#x26;token=fc12cd56-4f04-42cf-87bd-01e83a1884ca" alt=""><figcaption></figcaption></figure>

   **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;
