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

# Shopify Admin

> Set up the Shopify Admin integration in Langdock using your own Shopify app.

Connect Shopify stores to Langdock with your own Shopify app. Create the app in the [Shopify Dev Dashboard](https://dev.shopify.com/dashboard). Paste the Client ID and Client Secret into Langdock. Shopify Admin uses [Bring Your Own OAuth Client](https://docs.langdock.com/en/admin/manage-integrations/bring-your-own-oauth.md). Keep the Client Secret in workspace admin settings, not in chat.

> [!WARNING]
>
> This connection uses [application-level permissions](https://docs.langdock.com/en/using-langdock/integrations/connections.md#custom-scopes-and-application-level-permissions). Requests use the app's Admin API scopes, not the Shopify role of the person who installed the app.

You need:

* Access to the [Shopify Dev Dashboard](https://dev.shopify.com/dashboard). You need the **App development → Develop** permission if you do not own the store.
* Permission to install apps on the store you want to connect
* Workspace admin access in Langdock

## Setup

**1. Create app**

Open the [Shopify Dev Dashboard](https://dev.shopify.com/dashboard). Click **Create app**.

![Shopify Dev Dashboard Apps page with the Create app button](https://mintcdn.com/langdock-34/g4jYSvCYkIalijTm/images/shopify_admin_setup1.png?fit=max\&auto=format\&n=g4jYSvCYkIalijTm\&q=85\&s=06824369cbddb4e23217e237e01c6072)

**2. Name it**

Enter **Langdock** or another name people will recognize. Use **Start from Dev Dashboard**, not Shopify CLI. Click **Create**.

![Create an app screen with Langdock entered as the app name under Start from Dev Dashboard](https://mintcdn.com/langdock-34/g4jYSvCYkIalijTm/images/shopify_admin_setup2.png?fit=max\&auto=format\&n=g4jYSvCYkIalijTm\&q=85\&s=d0cbdedac086b832802a0f1610fdbf79)

**3. Add scopes & redirect URL**

Open the app version. Open **API access**. Under **Scopes**, paste this comma-separated list.

```
read_discounts,read_inventory,read_locations,read_orders,read_products,write_discounts,write_files,write_inventory,write_merchant_managed_fulfillment_orders,write_products
```

In Langdock, go to **Admin → Integrations → Shopify Admin**. Create the custom OAuth client. Copy **Redirect URL** from Langdock. Paste it under **Redirect URLs** in Shopify. The domain depends on your deployment.

```
https://app.langdock.com/api/integrations/{integration-id}/callback
```

Save the scopes and redirect URL. Release the app version.

![API access settings with Scopes and Redirect URLs fields](https://mintcdn.com/langdock-34/g4jYSvCYkIalijTm/images/shopify_admin_setup3.png?fit=max\&auto=format\&n=g4jYSvCYkIalijTm\&q=85\&s=c22a8a1f2a70531e6ae83c8c328acd04)

**4. Copy client & secret into Langdock & authenticate**

In the Dev Dashboard, open **Settings**. Copy **Client ID** and **Client secret**.

In Langdock, paste them into the custom OAuth client for Shopify Admin. Save.

Connect a store. Members enter a `*.myshopify.com` domain like `acme-store.myshopify.com` or the store handle `acme-store`, unless you set that default under [OAuth connection details](https://docs.langdock.com/en/admin/manage-integrations/bring-your-own-oauth.md#additional-parameters) on that custom client. Complete Shopify's install screen. The app then has the Admin API scopes from step 3.

![Shopify Admin custom OAuth client dialog with store domain default acme-store.myshopify.com](https://mintcdn.com/langdock-34/KsBXt70lg_eJcgg4/images/shopify_oauth_connection_details.png?fit=max\&auto=format\&n=KsBXt70lg_eJcgg4\&q=85\&s=35969869b2570c47d04d270a53e53063)

![App Settings page showing Client ID and Client secret](https://mintcdn.com/langdock-34/g4jYSvCYkIalijTm/images/shopify_admin_setup4.png?fit=max\&auto=format\&n=g4jYSvCYkIalijTm\&q=85\&s=80161d94cf9acc3e0db2ee2f245d42b5)

> [!NOTE]
>
> Each Langdock connection is one shop. Connect every store separately. You can reuse the same custom OAuth client. You still need permission to install apps on each shop.

## What you can do after setup

You can look up and update products, inventory, locations, orders, fulfillments, discounts, and files in the connected store.

## Troubleshooting

**Invalid redirect URI**
The Redirect URL in Shopify must match Langdock's **Redirect URL** exactly. Include `https` and `/callback`.

**OAuth client is not configured**
Save Client ID and Client Secret under **Admin → Integrations → Shopify Admin** before you connect a store.

**Access denied / forbidden**
The app version must include the scopes above. Complete the Shopify install screen with an account that can install apps.

**Invalid store domain**
Enter the domain you use for the store, the `*.myshopify.com` domain, or the store handle. Strip `https://`.


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