# Shopify

Connect your existing Shopify store and let Lyna build and manage your storefront from chat.

Connect a Shopify store you already run, then let Lyna build your storefront from the chat. With full access, the AI can also manage your products, collections, discounts and webhooks.

The Shopify connect window on the Method step with Storefront connect (Recommended) and Full access.

Lyna reaches your store in two ways:

- **Storefront** (in the browser): your published app reads the catalog and the cart with a public storefront access token that is safe to embed. **Storefront connect** gives you this.
- **Admin** (on the server, full access only): Lyna manages your catalog (products, collections, discounts, orders) from its own server, with short-lived Admin API tokens it gets from your own app's credentials. Those credentials never reach the browser.

## What you can do

- Sell physical products like apparel, candles or homeware.
- Offer digital downloads such as templates, ebooks or presets.
- Launch a niche brand with a focused catalog.
- Run a small business storefront without managing servers.
- Prototype and test a store idea on a free development store.
- Open a new online sales channel for an existing business.

## Before you begin

> [!NOTE]
>
> **You own the store**
>
> Lyna connects to a store you already run. It never creates a store for you, never owns one and never transfers ownership, so there is no store to claim.

- **Your Shopify account owns the store and its data.**
- **A development store is great for building.** Free Shopify development stores let you build, preview and test the full storefront at no cost. They cannot publish the Online Store sales channel publicly, so move to a paid Shopify plan when you are ready to sell.
- **A paid Shopify plan to go live.** After any trial, selling publicly needs an active paid Shopify plan.
- **No Shopify app charges.** Connecting Shopify adds nothing to your Shopify bill. The connector is part of Lyna and covered by your Lyna plan. See [Billing](/integrations/shopify/billing).

## Two ways to connect

|                    | **Storefront connect** (recommended)                                                               | **Full access** (optional)                                                                                               |
| ------------------ | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Setup time         | About 2 minutes                                                                                    | About 5 minutes                                                                                                          |
| What you provide   | A public storefront access token from Shopify's Headless channel                                   | The Client ID and Client secret of your own API-only app                                                                 |
| Unlocks            | An AI-built storefront: product and collection browsing, cart, Shopify hosted checkout, publishing | Everything in Storefront connect, plus product management from the chat, webhooks and the Admin tabs of the API Explorer |
| Product management | In the Shopify admin                                                                               | From the chat or the Shopify admin                                                                                       |

You can start with Storefront connect and move the same project to full access at any time with **Settings > Connectors > Shopify > Upgrade to full access**.

## Connect your store

Open the project, go to **Settings > Connectors > Shopify** and choose **Connect**. Before you connect, you can set what Lyna's AI may do (see [Permissions](/integrations/shopify/permissions)). The defaults are sensible, so you can also connect now and adjust later.

### Storefront connect

1. ### Install the Headless channel

   In your Shopify admin, install Shopify's own **Headless** channel from [apps.shopify.com/headless](https://apps.shopify.com/headless). It is free and made by Shopify.
2. ### Create a storefront

   Open the Headless channel in your Shopify admin and choose **Create storefront**. Your store now has a storefront that outside apps, like your Lyna project, can read.
3. ### Copy the access token

   On the new storefront's page, copy the **public access token**. You can also copy the **private access token** for reads on the server.
4. ### Paste it into Lyna

   In your project, open **Settings > Connectors > Shopify > Connect**, choose **Storefront connect** and paste the token. The store is now linked to your project.
5. ### Build the storefront

   Ask Lyna in the chat:

   - "Scaffold a Shopify storefront in my app: add the Storefront API client plus starter product listing and cart routes."
   - "Display the products from my store on the home page in a grid."

   Your customers shop on your published Lyna app, not on the `*.myshopify.com` admin address. You keep managing products, collections and discounts in the Shopify admin.

### Full access

Full access uses an API-only app that you create in your own Shopify account, so you decide exactly what Lyna can do.

1. ### Create an app in the Dev Dashboard

   Open the Shopify [Dev Dashboard](https://dev.shopify.com/dashboard/), choose **Create app**, then **Start from Dev Dashboard**.
2. ### Configure the app version

   In the app's **Versions** tab:

   - Keep the default app URL, `https://shopify.dev/apps/default-app-home`.
   - Pick the newest webhooks API version.
   - Paste the scopes list shown in Lyna's connect window (use its copy button).

   Then choose **Release**.
3. ### Install the app on your store

   Go to the app's **Home** tab, choose **Install app** and select your store.
4. ### Copy the credentials

   Open the app's **Settings** and copy the **Client ID** and the **Client secret**.
5. ### Paste them into Lyna

   In your project, open **Settings > Connectors > Shopify > Connect** (or **Upgrade to full access** if the project already uses Storefront connect) and paste both values. Lyna then gets short-lived Admin API tokens and renews them on its own, so there is nothing to rotate by hand.
6. ### Manage the store from the chat

   Once connected, ask Lyna in the chat:

   - "Create a few products in my Shopify store with titles, prices, descriptions, and images."
   - "Group these products into a Winter collection."
   - "Create a discount code WELCOME10 for 10% off."

   Changes to your store are confirmed before they run, based on your permission settings.

## Test checkout and launch

Check the purchase flow, then publish your app. For example, ask: "Create a test checkout for my Shopify store so I can verify the full purchase flow."

When you are ready, publish your project from Lyna. To sell publicly, your store also needs a paid Shopify plan.

## Development stores and going live

When you connect a Shopify development store, the connector shows **Online Store channel is locked**.

> [!WARNING]
>
> Development stores cannot publish the Online Store sales channel publicly. You can still build, preview and test the full storefront. Move the store to a paid Shopify plan to take it live.

## Manage the connection from the editor

When a store is connected, a Shopify pill appears in the project top bar. It shows the store's domain and a menu with **Open Shopify Admin** and **Disconnect store**.

You can also disconnect from **Settings > Connectors > Shopify**. Disconnecting removes the saved credentials and unlinks the store from the project. Your store, its data and your app in the Dev Dashboard stay as they are on Shopify.

## FAQ

### Which connection option should I choose?

Start with **Storefront connect**. It takes about two minutes and covers building and publishing the storefront, with the cart and hosted checkout. Add **Full access** later if you want Lyna's AI to manage products, collections and discounts from the chat, use webhooks, or run Admin API requests in the API Explorer.

### Can I move from Storefront connect to full access later?

Yes, at any time. Open **Settings > Connectors > Shopify > Upgrade to full access** and follow the full access steps. Your storefront connection keeps working during and after the change.

### Full access says the app was not found or not permitted

Client credentials only work when the API-only app and the store are in the same Shopify Dev Dashboard organization. Owning a store, or installing apps on it, does not place it in your organization. Check three things:

1. You chose **Install app** on the store from the app's **Home** tab, and the store appears in the Dev Dashboard's **Dev stores** tab in the same organization as the app. If it is not listed there, create the store from the **Dev stores** tab and install the app on it.
2. You copied the **Client ID** and **Client secret** from the app's **Settings** (not an access token, not an API key).
3. The error matches its cause: "app was not found for this store" means the app is not installed on this store or is in another organization, "not in the same organization" means the app and the store belong to different organizations, and "wrong Client ID or Client secret" means the pasted credentials do not match the app.

### Install app sent me to another website or a 404 page

This happens when the app has a custom App URL, which is common for apps once listed on the Shopify App Store. A Dev Dashboard install opens the app's own URL, so the install never completes and connecting fails with "app is not installed". Create a new app instead: **Create app > Start from Dev Dashboard**, keep the default app URL (`https://shopify.dev/apps/default-app-home`), release the version, then choose **Install app**. Do not reuse a Shopify App Store app for full access.

### Does connecting Shopify cost anything?

There are no Shopify app charges. The connector is part of Lyna and covered by your Lyna plan and credits. Your Shopify subscription (needed to sell publicly) is paid to Shopify and is separate from Lyna pricing. See [Billing](/integrations/shopify/billing).

### Why can't I make changes to the store?

Four things can block a change:

1. Store-changing actions (products, collections, discounts, webhooks) need **Full access**. With Storefront connect, product management stays in the Shopify admin.
2. You need editor access to the Lyna project. Viewers can only read.
3. The store owner may have turned on **Only the store owner can manage this store**, which keeps changes to the owner.
4. A single AI tool may be set to **Never** in the AI tool permissions.

See [Permissions](/integrations/shopify/permissions) for the whole model.

### What happens if I remix a project that has Shopify connected?

Connections belong to one project. A remix starts as its own project, so connect a store to it from **Settings > Connectors > Shopify** when you are ready.

### My products are not showing on the storefront. Why?

A product is visible to the Storefront API only when it is active and published to the sales channel your storefront reads (for a Headless storefront, the Headless channel). Publish it from the Shopify admin, or, with full access, ask Lyna to publish your products to that channel.

### Can I see the products and orders Lyna created?

Yes. Open the Shopify admin from the connector or the top bar pill. With full access, you can also ask Lyna to list products, collections or orders in the chat. Reading order and customer data through your own app may need Shopify's protected customer data approval on that app.

## Related

- [Store dashboard](/integrations/shopify/dashboard): Catalog and sales stats, sale notifications and connection health.
- [Storefront features](/integrations/shopify/storefront): Everything Lyna can build: cart, search, accounts, reviews and more.
- [Permissions](/integrations/shopify/permissions): Connection levels, who can change the store and what the AI may do.
- [Publishing](/features/publish/publishing): Put your storefront online.
