Skip to Content
ReferenceShopifyShopify configuration

Shopify configuration

Audience: CMS editors and developers.

This reference defines the backend module switches and Shopify connection settings.

Module switches

These backend variables control Shopify support:

  • MODULES_SHOPIFY=1 -> Shopify module enabled
  • MODULES_SHOPIFY=0 (or unset) -> Shopify module disabled

What this affects:

  • Shopify GraphQL module registration
  • Shopify webhook/task processing paths
  • /v1/healthcheck/shopify availability (503 with “Shopify module is disabled.” when off)

Related toggle:

  • MODULES_LOYALTY=0 disables the separate loyalty module while leaving Shopify support enabled

Module registration takes effect when the backend starts.

Required environment variables

The backend runtime uses these environment variables:

  • SHOPIFY_STOREFRONT_GRAPHQL_URI
  • SHOPIFY_ADMIN_GRAPHQL_URI
  • SHOPIFY_PRIVATE_TOKEN (required for Admin API; also preferred for Storefront API)
  • SHOPIFY_ACCESS_TOKEN (optional fallback for Storefront API if no private token is set)
  • SHOPIFY_WEBHOOK_SIGNING_SECRET (required when receiving Shopify webhooks)
  • SHOPIFY_API_KEY
  • SHOPIFY_API_SECRET

Value sources

Shopify Admin supplies these values:

  • SHOPIFY_STOREFRONT_GRAPHQL_URI: https://<shop>.myshopify.com/api/<version>/graphql.json
  • SHOPIFY_ADMIN_GRAPHQL_URI: https://<shop>.myshopify.com/admin/api/<version>/graphql.json
  • SHOPIFY_PRIVATE_TOKEN: Admin API access token from your Shopify app
  • SHOPIFY_ACCESS_TOKEN: Storefront access token
  • SHOPIFY_WEBHOOK_SIGNING_SECRET: Shared secret used to sign webhook requests

Connect a Shopify store. Configure product upsells.

Last updated on