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

# Shopify Store Integration

> Connect your Shopify store to ChatbotX Ecommerce to sync products, inventory, discount codes, orders, and automate Webview shopping flows.

**Shopify Store Integration** connects your Shopify store directly to **Tools > Ecommerce** in ChatbotX. Once connected, ChatbotX automatically syncs your Shopify catalog, product variants, live inventory, discount codes, and orders so you can power your Webview Shop, shopping cart, and Ecommerce Triggers directly from your Shopify data.

> [!NOTE]
>
> Looking to connect Shopify with an **AI Agent** instead? Check out [Shopify via MCP](https://chatbotx.io/docs/ai-agents/shopify-via-mcp.md) for conversational product lookup and AI-driven order creation. Use **Shopify Store Integration** when you want your Shopify store to act as the native source for the ChatbotX Webview Shop and Ecommerce Flows.

## Prerequisites and required Shopify scopes

Before connecting your store, prepare the following from your Shopify Admin:

* **Shop Domain**: Your canonical `.myshopify.com` domain (for example, `your-store.myshopify.com`, without `https://`). You can find this in **Shopify Admin > Settings > Domains**.
* **Required Admin API Scopes**: Your Shopify app must have these **7 scopes** enabled:

| Scope | Purpose |
| - | - |
| `read_products` | Sync products, variants, images, collections, and status |
| `read_inventory` | Sync real-time stock quantities across variants |
| `read_orders` | Sync the last 60 days of order history and real-time order updates |
| `write_orders` | Create orders directly from **In-App Checkout** |
| `read_customers` | Sync customer profiles attached to orders |
| `read_discounts` | Sync Shopify discount codes for Webview cart application |
| `read_fulfillments` | Sync fulfillment status and shipment tracking numbers |

## Create an app in Shopify Dev Dashboard

As of January 1, 2026, Shopify requires new custom apps to be created through the **Shopify Dev Dashboard**, which issues a **Client ID** and **Client Secret** instead of a static UI token.

**1. Access Develop apps from Shopify Settings**

From your Shopify Admin, navigate to **Settings** -> select **Apps** from the left menu -> click the **Develop apps** button in the top-right corner.

![Develop Apps In Shopify Settings](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_settings_develop_apps.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=73d2e039403359be4065a4847bb6b8a7)

**2. Start creating an app in Dev Dashboard**

On the Dev Dashboard interface, locate the *Get API credentials* card and click **Create app**.

![Create App In Shopify Dev Dashboard](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_dev_dashboard_create_app.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=7417c3b9284d29144f943b9a34bf7055)

**3. Enter your app name**

Under *Start from Dev Dashboard*, enter a memorable app name into the **App name** field (such as `ChatbotX Ecommerce`) and click **Create app**.

![Set App Name In Dev Dashboard](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_create_app_name.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=bc288443c0c26f860a8f7bd953166fd8)

**4. Open Admin API Scopes modal**

On the newly created app page, scroll down to the **API access** section and click the blue **Select scopes** button next to Scopes.

![Select Scopes In API Access](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_api_access_select_scopes.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=d9902c2d25d4f74ffbc012ed75ea6b5c)

**5. Search and enable all 7 required scopes**

Use the search bar at the top of the popup modal to search for each of the 7 scopes listed above (`read_products`, `read_inventory`, `read_orders`, `write_orders`, `read_customers`, `read_discounts`, `read_fulfillments`) and tick their checkboxes.

![Search And Select Scopes In Modal](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_select_scopes_search_and_check.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=a4034a00f554bf344c56302c964c98a4)

**6. Release version and copy Client ID and Client Secret**

After selecting all 7 scopes, click **Done** in the modal, then click **Release** in the top-right corner to publish this configuration version.

From the left menu, go to **App settings**. In the **Credentials** card, copy your:

* **Client ID**
* **Secret** (Client Secret)

![Copy Client ID And Secret In Credentials](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_app_settings_credentials.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=df2b6f3febed6a3c8ce1bea9c3a447ce)

**7. Install the app on your store**

Click **Overview** in the left menu, locate the **Installs** section, and click **Install app**. Choose your store and click **Install** to grant access.

![Click Install App In Overview](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_overview_install_app.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=fa6e1374babd4c075765f8aad19bfb91)

![Choose Store To Install App](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_install_app_choose_store.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=ad2e826020ff1bad90e794bb8479d257)

![App Successfully Installed In Shopify](https://mintcdn.com/chatbotx/fyHPACwNoMW_jXQO/images/shopify_apps_installed_success.png?fit=max\&auto=format\&n=fyHPACwNoMW_jXQO\&q=85\&s=96e25cf5216a472bc9d00d18d6154de4)

> [!NOTE]
>
> After installation, verify that the app appears under **Settings -> Apps -> Installed** in Shopify Admin. If your browser shows an iframe warning during redirect, the installation has still completed on Shopify's servers.

## Connect Shopify to ChatbotX Ecommerce

Navigate to **Tools > Ecommerce > Settings > Shopify** to link your store. ChatbotX supports two authentication methods depending on when your Shopify app was created.

**1. Enter Shop Domain and choose Authentication method**

Enter your **Shop Domain** (for example, `your-store.myshopify.com`), then select one of the two authentication options:

> [tab] Client ID and secret (Recommended)
>
> Use this method for apps created in the **Shopify Dev Dashboard**. ChatbotX automatically generates and refreshes short-lived access tokens for you.
>
> * **Client ID**: Paste the Client ID copied from *App settings > Credentials*.
> * **Client Secret**: Paste the Secret copied from *App settings > Credentials*.
>
> ![Ecommerce Settings Shopify Connect Client Credentials](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_settings_shopify_connect_client_credentials.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=d4608a93b326994c35c7774b79c2314a)

> [tab] Admin API access token (Legacy Custom Apps)
>
> Use this method only if you have an existing **Legacy Custom App** created in Shopify Admin prior to January 1, 2026 with a static token.
>
> * **Admin API Access Token**: Paste your static `shpat_...` token.
> * **API secret key**: Paste your app's API secret key (used to verify incoming Shopify webhooks).
>
> ![Ecommerce Settings Shopify Connect Token](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_settings_shopify_connect_token.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=347350f12a70bc0c8e935bf06907a8a9)

Click **Connect**. ChatbotX automatically registers the **Webhook URL** (`https://app.chatbotx.io/api/shopify/{workspaceId}/webhook`) on your Shopify store for real-time product, order, and discount updates.

**2. Verify connection status and initial sync**

Once connected, the page displays your **Shop Domain**, **Sync Now** and **Disconnect** buttons, the **Sync Status** card (showing `Connected to...`, `Last synced` counts, and current sync state), and the registered **Webhook URL**.

![Ecommerce Settings Shopify Connected Status](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_settings_shopify_connected_status.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=66af6715356cc694db9756b8481c3da4)

**3. Switch Store Source to Shopify**

Open **Tools > Ecommerce > Settings > General** and change **Store Source** from `ChatbotX` to **Shopify**.

![Ecommerce Settings General Store Source Shopify](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_settings_general_store_source_shopify.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=8eb91057b4a556b51e8854f0f0a01167)

When you switch **Store Source** to **Shopify**:

* ChatbotX automatically syncs your Shopify store currency, symbol, and formatting, and hides internal **Payments** and **Shipping** tabs.
* An initial full sync runs immediately for products, discount codes, and the **last 60 days of orders** (historical orders are imported quietly without triggering customer notifications).
* Your existing native ChatbotX catalog data is preserved safely in the background and restored if you switch **Store Source** back to `ChatbotX`.

**4. Configure Shopify Checkout settings**

Open **Tools > Ecommerce > Settings > Checkout** to define how customers complete their purchases from the Webview Shop:

![Ecommerce Settings Checkout Shopify Methods](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_settings_checkout_shopify_methods.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=067d408193587bb95a2e934f30595b6a)

* **Checkout Method**:
  * **Shopify Web Checkout**: Redirects customers to your store's native Shopify checkout page with their cart items pre-loaded and a `cbx_ref` tracking parameter so they can pay through your configured Shopify payment gateways and shipping rates.
  * **In-App Checkout**: Allows customers to place orders directly inside the ChatbotX Webview. ChatbotX creates a Cash on Delivery (COD) / pending order in Shopify via API, reserves inventory, syncs the order immediately, and clears the cart.
* **Auto-apply Discount Codes**: When enabled, customers can apply synced Shopify discount codes directly inside the Webview cart before checking out.
* **Delivery cost**: Set a flat delivery fee applied to orders placed via **In-App Checkout**.

## Manage synced products and variants

When **Store Source** is set to **Shopify**, the **Products** tab operates in read-only sync mode, keeping Shopify as the single source of truth:

![Ecommerce Shopify Products List Status](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_shopify_products_list_status.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=951ad5076d5dc027a9954c899bceeee2)

* **Top actions**: Click **Sync Products** to pull the latest product changes immediately, or click **Open Shopify** to jump to your Shopify Admin products page.
* **Status badges**: Products display their Shopify status (`Active`, `Draft`, `Unlisted`) instead of a local toggle switch.
* **Row menu (`...`)**: Select **View Details**, **Edit on Shopify**, or **Copy Product Link**.
* **Visibility control**: While products are read-only, you can still toggle **Visible** on **Categories** and **Active** on **Vendors** to control what appears in your ChatbotX Webview Shop.

Click any product row (or choose **View Details**) to open the read-only **Product Details** modal showing inventory summaries, the **Variants** table (`Variant`, `SKU`, `Price`, `Inventory`), and an **Edit on Shopify** shortcut:

![Ecommerce Shopify Product Details Modal](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_shopify_product_details_modal.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=fc4776bb7115f6d97a39c4928c77df79)

## Track synced orders and Ecommerce Triggers

In the **Orders** tab, synced Shopify orders appear with dedicated filters and export tools:

![Ecommerce Shopify Orders List](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_shopify_orders_list.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=d336e973eb443b0e2680fb221324c1c0)

* **Filters**: Filter orders by **Payment** (`All`, `Paid`, `Pending`, `Unpaid`, `Refunded`) and **Fulfillment** (`All`, `Fulfilled`, `Unfulfilled`, `Partial`).
* **Top actions**: Click **Sync Orders** to manually pull recent orders, or **Export** to download a CSV report.
* **Order Details modal**: Click any order or select **... > View Details** to inspect **Customer Details**, **Shipping Address**, **Line Items**, **Subtotal**, **Shipping**, **Total**, tracking info, and a **View on Shopify** link.

![Ecommerce Shopify Order Details Modal](https://mintcdn.com/chatbotx/DNgzYtUZR-dgilk4/images/ecommerce_shopify_order_details_modal.png?fit=max\&auto=format\&n=DNgzYtUZR-dgilk4\&q=85\&s=c02b92c282a653af94decc80027fb494)

Real-time Shopify webhooks automatically fire ChatbotX Ecommerce Triggers (`New Order`, `Product Ordered`, `Order Accepted`, `Order Shipped`, `Order Concluded`, `Order Cancelled`, and `Order Paid`) for new order activity after connection.

## Troubleshooting

* **Missing products or orders after connecting**: Verify that all 7 required scopes are enabled, **Release** was clicked in Dev Dashboard, and **Install app** was completed on the target store. Then click **Sync Now** in **Settings > Shopify**.
* **Orders not triggering flows**: Check that the **Webhook URL** shown in **Settings > Shopify** is reachable and your store is not password-protected or blocking incoming webhook callbacks. Only new or updated orders arriving after connection trigger flows; the initial 60-day history import does not send messages.
* **Cannot see Admin API access token in Shopify Admin**: Shopify retired creating new Legacy Custom Apps on January 1, 2026. Create your app in the **Shopify Dev Dashboard** and use the **Client ID and secret (Dev Dashboard app)** authentication method in ChatbotX.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.