Getting Started

Env Values

Required For Admin

Value

Description

SHOPIFY_APP_URL

The url to your store (no https://)

SHOPIFY_CLIENT_ID

The Client ID you received when generating your app

SHOPIFY_CLIENT_SECRET

The Client Secret you received when generating your app.

SHOPIFY_ADMIN_TOKEN

Only for legacy custom apps created in the Shopify admin: the Admin API access token (shpat_...). When set, it's used instead of the Client ID and Secret.

Required For Frontend

If you are using the JavaScript publishable in the addon you'll also need to set the following.

Value

Description

SHOPIFY_STOREFRONT_URL

The custom url to your store if you have one (no https://) [optional]

SHOPIFY_STOREFRONT_TOKEN

Found in the configuration section of your Headless Sales Channel

Required For Webhooks

If you are using the webhook handlers you'll need the following.

Value

Description

SHOPIFY_WEBHOOK_SECRET

The secret used to verify incoming webhook signatures. For webhooks registered via the Artisan command / Admin API (the recommended path) this is your app's Client Secret — set it to the same value as SHOPIFY_CLIENT_SECRET. Read more about this here

Optional

These allow you to tweak how the system works. Please check out the config/shopify.php for a full list of options.

Value

Description

SHOPIFY_API_VERSION

The version of the storefront and admin APIs you want to target (defaults to '2026-01').

SHOPIFY_API_MAX_RETRIES

How many times to retry an Admin API request that fails with a 429 or 5xx response (defaults to 2).

SHOPIFY_THROTTLE_THRESHOLD

Imports pause when the available GraphQL query cost budget drops below this many points (defaults to 500).

SHOPIFY_MONEY_FORMAT

How prices are formatted: symbol (default, e.g. £1234.50) or intl (for the site's locale and currency, e.g. £1,234.50). See Formatting prices.

SHOPIFY_CURRENCY_CODE

Your shop's ISO 4217 currency code, e.g. GBP, used by the intl money format.

SHOPIFY_API_TIMEOUT

Seconds to wait for an Admin API response before giving up (defaults to 30).

SHOPIFY_ACTIVITY_ENABLED

Record webhooks and imports in the activity log (defaults to true).

SHOPIFY_ACTIVITY_DRIVER

Where the activity log is stored: file or database (defaults to file; use database on multi-server setups).

SHOPIFY_ACTIVITY_DB_CONNECTION

Database connection for the activity log (defaults to your default connection).

SHOPIFY_ACTIVITY_TABLE

Table for the activity log (defaults to shopify_activity).

SHOPIFY_ACTIVITY_RETENTION_DAYS

How many days of activity to keep (defaults to 30).

SHOPIFY_ASSET_CONTAINER

The asset container you want to use to store assets (defaults to 'shopify')

SHOPIFY_ASSET_PATH

The path in the container you want to use to store assets (defaults to '').

SHOPIFY_ASSET_DELETE_REPLACED

Delete an image's old asset when a new file replaces it (defaults to false). See images.

SHOPIFY_COLLECTION_HANDLE

The handle of the collection that contains your Shopify products, defaults to 'products'.

SHOPIFY_IMPORT_MISSING_COLLECTIONS

Import a product's collections that haven't been imported yet (defaults to true). See collections.

SHOPIFY_JOB_QUEUE

The queue to run the shopify jobs on. Allows you to set it to a different one than the default.

SHOPIFY_SALES_CHANNEL

The Sales Channel to use for product availability, defaults to 'Online Store'.

SHOPIFY_TAXONOMY_COLLECTIONS

The taxonomy handle to use for shopify collections (defaults to 'collections').

SHOPIFY_TAXONOMY_TAGS

The taxonomy handle to use for 'tags' of product (defaults to 'tags').

SHOPIFY_TAXONOMY_TYPE

The taxonomy handle to use for 'types' of product (defaults to 'type').

SHOPIFY_TAXONOMY_VENDOR

The taxonomy handle to use for 'vendors' of product (defaults to 'vendor').

Multi-Store

Used when running multiple Shopify stores from one Statamic installation. See Multi-Store for full setup details.

Value

Description

SHOPIFY_MULTI_STORE_ENABLED

Set to true to enable multi-store mode (defaults to false).

SHOPIFY_MULTI_STORE_MODE

Either unified (shared entries with per-store pricing) or localized (one entry set per Statamic site). Defaults to unified.

SHOPIFY_MULTI_STORE_PRIMARY

The handle of the store whose data populates top-level fields in unified mode.

SHOPIFY_MULTI_STORE_CUSTOMER_STORE

With update_users_in_shopify, the store new users are created in (defaults to the primary store). See customers.

Per-store credentials follow the pattern SHOPIFY_STORE_{HANDLE}_{KEY}, e.g.:

Value

Description

SHOPIFY_STORE_UK_URL

The .myshopify.com URL for the store (no https://).

SHOPIFY_STORE_UK_ADMIN_TOKEN

Admin API token (or use CLIENT_ID / CLIENT_SECRET for OAuth).

SHOPIFY_STORE_UK_STOREFRONT_TOKEN

Storefront API token.

SHOPIFY_STORE_UK_WEBHOOK_SECRET

Webhook signing secret for this store. For Admin API–registered webhooks this is the store's Client Secret (SHOPIFY_STORE_UK_CLIENT_SECRET).

SHOPIFY_STORE_UK_API_VERSION

API version override for this store (defaults to 2026-01).

Previous

Setup

Next

Upgrading