> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify

export const title_2 = "Shopify";

export const title_1 = "Shopify";

export const title_0 = "Shopify";

## Setup Guide

Follow these steps to connect Shopify to your Connect AI account:

<Steps>
  <Step>
    Open the **Sources** page of the Connect AI navigation menu.
  </Step>

  <Step>
    Click **+ Add Connection** in the upper-right corner.
  </Step>

  <Step>
    Type *Shopify* into the search field, then click the data source name.
  </Step>

  <Step>
    On the **Basic Settings** tab of the new connection, enter a connection name or keep the default name.
  </Step>

  <Step>
    Enter the full URL of your shop into the **Shop URL** field (for example, *[https://yourshopname.myshopify.com](https://yourshopname.myshopify.com)*).
  </Step>

  <Step>
    Select the Authentication method, then proceed to the relevant section and follow those instructions.

    <Warning>
      Starting January 1, 2026, you cannot create new applications with the **Access Token** authentication method. However, you can still use existing access token connections.
    </Warning>
  </Step>
</Steps>

## Authentication Methods

<Tabs>
  <Tab title="OAuth">
    <Note>
      * You can only use OAuth if you have a Partner app published on the Shopify store.
      * The Partner app must have *[https://oauth.cdata.com/oauth/](https://oauth.cdata.com/oauth/)* registered as a redirect URI.
      * If you do not have a Partner app, you must create a custom OAuth app and use the **OAuthClient** authentication scheme.
    </Note>

    Follow these steps in Connect AI:

    <Steps>
      <Step>
        In **OAuth Client Id**, enter the Client Id from your Partner app.
      </Step>

      <Step>
        In **OAuth Client Secret**, enter your Client Secret from your Partner app.
      </Step>

      <Step>
        Select the Shopify **Schema** you want to use from drop-down list.
      </Step>

      <Step>
        Click **Sign in** to connect securely through OAuth. This action opens the Shopify sign-in page in a new tab.
      </Step>

      <Step>
        Log in to your Shopify account and provide the requested permissions (if applicable).
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_0} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>

  <Tab title="OAuthClient">
    This authentication requires a custom OAuth app. To register a custom app and obtain the **OAuth Client Id** and **OAuthClientSecret**, follow these steps:

    <Steps>
      <Step>
        Log in to the **Shopify Dev Dashboard**.
      </Step>

      <Step>
        Select **Apps** > **Create app**.
      </Step>

      <Step>
        Enter a name for the application and click **Create**.
      </Step>

      <Step>
        In the **Access** section, specify the required scopes and three redirect URLs: *[http://localhost:33333](http://localhost:33333)*, *[https://localhost/](https://localhost/)*, and *[https://oauth.cdata.com/oauth/](https://oauth.cdata.com/oauth/)*.
      </Step>

      <Step>
        Click **Release**. Optionally enter a name and message for the version and click **Release** again.
      </Step>

      <Step>
        Select the **Settings** tab to view and record the Client Id and Client Secret.
      </Step>

      <Step>
        Select the **Home** tab. From here, you can optionally install the app on a specific store or select a distribution method.
      </Step>
    </Steps>

    You can now enter the **Client Id** and **Client Secret** in Connect AI.

    <Steps>
      <Step>
        In **OAuth Client Id**, enter the Client Id from your custom OAuth app.
      </Step>

      <Step>
        In **OAuth Client Secret**, enter your Client Secret from your custom OAuth app.
      </Step>

      <Step>
        Select the Shopify **Schema** you want to use from the drop-down list.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_1} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>

  <Tab title="AccessToken">
    <Note>
      This authentication scheme is deprecated. However, you can still enter an **Access Token** for existing applications.
    </Note>

    <Steps>
      <Step>
        Enter the **Access Token** from your existing application.
      </Step>

      <Step>
        Select the Shopify **Schema** you want to use from the drop-down list.
      </Step>

      <Step>
        At the top of the Connect AI **Add {title_2} Connection** page, click **Save & Test**.

        * If the connection test succeeds, a **Connection successfully saved** message appears, indicating that your connection has been created. The **Status** on the **Edit Connection** page also changes to **Authenticated**. View the data model of your successful connection in the right pane of the **Edit Connection** page, in the **Data Model** tab.
        * If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the **Sign in** button. Correct the errors and try again.
        * Unsuccessful connections are saved as drafts and have a **Status** of **Not Authenticated**. You can return to the connection and authenticate it later.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## More Information

For more information about interactions between Connect AI and Shopify, see [this information page](https://cdn.cdata.com/help/FOM/cloud/default.htm#default).
