Store Locked Error When Fetching Storefront API on the server

I created a basic backend server to fetch product data dynamically from the store. But my GraphQL request is responding with ‘Online Store channel is locked.’ Is there any way in which I can get the product data for the development stores?

app.get('/api/offer', async (_req: Request, res: Response) => {
  const sessionToken = _req.headers['authorization']?.split(' ')[1];
  if (!sessionToken) return res.status(401).json({ error: 'No Session Token Received' });
  try {
    const decoded = JWT.verify(sessionToken, process.env.SHOPIFY_API_SECRET as string) as {
      input_data?: {
        shop?: {
          domain?: string;
        };
      };
    };
    const response = await fetch(`https://${decoded?.input_data?.shop?.domain}/api/2025-07/graphql.json`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'X-Shopify-Access-Token': sessionToken
      },
      body: JSON.stringify({
        query: `query getProductsByIDs($ids: [ID!]!) {
            nodes(ids: $ids) {
              ... on ProductVariant {
                availableForSale
                id
                image {
                  url(transform: {maxWidth: 400})
                }
                price {
                  amount
                  currencyCode
                }
                compareAtPrice {
                  amount
                  currencyCode
                }
                product {
                  title
                  id
                }
              }
            }
          }`,
        variables: {
          ids: ['gid://shopify/ProductVariant/55922219450742', 'gid://shopify/ProductVariant/55922219516278']
        }
      }),
    });
    const data = await response.json();
    console.log(data);
    res.json({ response });
  } catch (error: any) {
    return res.status(401).json({ error: error.message });
  }
});
{
  errors: [
    {
      message: 'Online Store channel is locked.',
      extensions: [Object]
    }
  ]

Hey @Namish_Kapoor :waving_hand: - sending you a DM on this one :slight_smile: