> For the complete documentation index, see [llms.txt](https://daton-sarasanalytics.gitbook.io/daton/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/oms-wms/goflow/how-to-integrate-goflow-with-daton.md).

# How to Integrate Goflow with Daton

This subtopic provides step-by-step instructions to create Goflow integrations in Daton, detailing the prerequisites, the integration process, and important notes.

### Pre-requisites

Before starting, ensure you have an active Daton account.&#x20;

### Task &#x31;**:** Generate Your Goflow API Token

Perform the following steps to generate your Goflow API token: &#x20;

1. Go to the Goflow web app and log in to your account.&#x20;
2. Click on your profile picture in the top right corner of the screen and select **Settings**.&#x20;
3. Click on the **API Tokens** tab.&#x20;
4. Click on the **Generate New Token** button.&#x20;
5. Enter a name for your token and click on the **Generate Token** button. Your new API token will be displayed in the **Token** field.&#x20;

Copy and store your API token. You will need it to integrate the Goflow platform with Daton.

### Task &#x32;**: Get Your** Goflow REST API Endpoints Subdomain

The Goflow REST API endpoints are organized by resource type and follow a specific pattern for access. The pattern is:&#x20;

`https://{your_subdomain}.api.goflow.com/v1/{resource}`

Here, `{your_subdomain}` is the same as the one used to access the general Goflow portal. For example, if your subdomain is `democompanyname` and you generally access Goflow at&#x20;

`https://democompanyname.goflow.com`,&#x20;

then, you would access the `List Orders` endpoint at the following URL:&#x20;

`https://democompanyname.api.goflow.com/v1/orders`.

For more information, see [Endpoints and requests](https://goflow.com/api-spec#section/Endpoints-and-requests).

### Task &#x33;**:** Integrate Daton with Goflow

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

   * Integration Name. Note that the Integration Name will be used to create the integration tables and cannot be modified later.
     * Optionally, add a description to identify the integration.
   * Replication Frequency&#x20;
   * Replication Start Date
   * Optionally, expand the **Advanced Configuration Options** section and, based on your requirements, modify the options to control the loading behavior of Daton.

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FhQDES92lVGkSNYYIf8PP%2Fgoflow-image1.png?alt=media&amp;token=08102095-0135-45f5-9c68-e9d3d6b4388d" alt=""><figcaption></figcaption></figure>
3. Paste the following in the required fields to authenticate the integration and extract data for replication. Then click **Authenticate**.

   * **Goflow API Token**: Valid Goflow API token
   * **Goflow subdomain**: Goflow REST API endpoints subdomain

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FYRXDDmE67xhzOkIngT3b%2Fgoflow-image2.png?alt=media&amp;token=0590518d-0bcb-4b13-80d7-643000027805" 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**.

   * Optionally, based on your requirement, select specific options for each selected table.

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FbaiRPCnDqyDZN6MSDTdt%2F1Goflow.png?alt=media&amp;token=39670fae-06ad-4bf2-b043-52f49aace8a9" alt=""><figcaption></figcaption></figure>
5. Select the required fields for each table and click **Submit.**

   * **Note** that you will be prompted to select the destination for your account.

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FrXByPxtkElcixGSwalQP%2F2Goflow.png?alt=media&amp;token=c1b82737-bb50-4917-be8c-dabf752a0303" alt=""><figcaption></figcaption></figure>
6. Select the destination for extracting Goflow data for replication 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;
