Solving the 'Could Not Find Store' Error in Shopify Custom App Development

Hey everyone,

It’s always a bit frustrating when you’re deep into a development project, especially something as cool as connecting an AI agent to your Shopify store, and you hit a wall with a cryptic error message. I recently saw a post from our community member, OriginalRenegade, grappling with just such a scenario, and it’s a perfect example of a common hurdle many developers face when working with Shopify’s custom apps and the CLI.

Decoding the "Could Not Find Store" Error

OriginalRenegade was trying to connect a custom app, created in their dev dashboard, to an AI agent. They mentioned trying both tutorials and the Shopify CLI, but kept running into this specific error:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Could not find store for domain v80mnr-zi.myshopify.com in organization My  │
│   Store.                                                                     │
│                                                                              │
│  Ensure you have provided the correct store domain, that the store is a dev  │
│   store, and that you have access to the store.                              │
│

This message, while a bit generic, actually gives us some really strong clues. OriginalRenegade also added that it's their "only store and the app is installed." This tells us they’ve done the basic setup, but something deeper is preventing the connection.

Let's break down what this error usually implies and how we can troubleshoot it. Think of it like a detective story – we have clues, and we need to check each one!

Your Troubleshooting Checklist: Common Culprits and Solutions

When the Shopify CLI (or any custom app connection attempt) throws a "Could not find store" error, it's almost always related to one of these core issues:

1. Verify Your Shopify CLI Login and Partner Organization

This is, hands down, the most common reason for this error. The CLI needs to know who you are and which Partner organization you're trying to work within. If you're logged into the wrong Partner account, or not logged in at all, it won't find your stores, even if they're right there in your admin.

  • Log Out and Log In Again: Sometimes, the simplest solution is the best. Your session might be stale or pointing to the wrong place. Open your terminal and run:
    shopify logout

    Then, log back in. When prompted, ensure you select the correct Partner organization that owns or has access to the development store you're trying to connect to.

    shopify login

    The CLI will guide you through authenticating with your Shopify Partner account in your browser.

  • Specify the Store During Login (If Needed): While shopify login usually prompts you to select a store, if you have many, or if you're experiencing persistent issues, you can try specifying it directly:
    shopify login --store=v80mnr-zi.myshopify.com

    Important: Replace v80mnr-zi.myshopify.com with your actual .myshopify.com domain.

2. Double-Check Your Store Domain for Typos

It sounds trivial, but a single character out of place can cause hours of head-scratching. The error message explicitly mentions v80mnr-zi.myshopify.com. Make absolutely sure this is the exact, correct domain for your development store.

  • Copy-Paste Directly: The safest way to ensure accuracy is to navigate to your Shopify admin, copy the .myshopify.com URL directly from your browser's address bar, and paste it into your CLI command or app configuration. Avoid typing it out from memory.
  • Use the .myshopify.com Domain: Always use your .myshopify.com domain for API connections and CLI commands, not a custom domain you might have connected to your store.

3. Confirm Store Type and Status

The error message specifically asks, "that the store is a dev store." While OriginalRenegade implied it was, it's worth a quick check.

  • Development Store vs. Trial/Paid Store: Ensure the store you're working with is indeed a development store created through your Partner Dashboard. If it's a trial store, a paused store, or a store you've taken over from a client but isn't officially "transferred" to your Partner organization, the CLI might have trouble recognizing it in the context of your app development.
  • Store Status: Is the store active? Has it been archived or frozen for some reason? A quick check in your Shopify Partner Dashboard under 'Stores' will confirm its status.

4. App Installation and Permissions (Scopes)

OriginalRenegade mentioned the app is installed. That's a great start! However, custom apps also need appropriate permissions (API scopes) to interact with your store's data.

  • Verify App Installation: Go to your Shopify admin -> Apps -> Apps and sales channels settings -> Develop apps. Make sure your custom app is listed there and its status is "Installed."
  • Check API Scopes: While less likely to cause a "Could not find store" error (more likely to cause permission denied errors later), it's good practice to ensure your custom app has the necessary API scopes enabled for whatever operations your AI agent needs to perform. You can adjust these in your Partner Dashboard under your custom app's settings.

5. Review Your CLI Command Syntax

If you're using the Shopify CLI to run your app, ensure the command you're using is correct. For example, to run a local development server for your app, you'd typically use:

shopify app dev

When prompted, select the correct store from the list. If it doesn't appear, that points back to issues with your CLI login or the store's recognition within your Partner organization.

Bringing It All Together for Your AI Agent

OriginalRenegade's goal of connecting an AI agent to their store is super exciting! Whether you're building a custom chatbot, an automated inventory manager, or a personalized recommendation system, the foundation of all these advanced integrations is a solid, reliable connection to your Shopify store's API. Getting past these initial "Could not find store" errors is crucial for unlocking that potential.

It often feels like a puzzle, but by systematically checking these common points – especially your CLI login, the exact store domain, and the store's status – you'll usually uncover the culprit. Don't get discouraged! These kinds of setup issues are part of the development journey, and our community is always here to help you navigate them. Keep at it, and you'll have that AI agent humming along with your Shopify store in no time!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools