Skip to main content

Manage Events subscriptions

An Events subscription tells Shopify which resources your app wants to track, which changes on those resources matter, and where to send the delivery.

This page covers subscription configuration and the concepts that determine what qualifies a delivery. To narrow which changes trigger a delivery or shape what each delivery returns, see Filter Events deliveries and Events delivery structure.

Illustration of Events pipeline and how configuration gates deliveries.

You need Shopify CLI 3.92 or higher to configure Events in shopify.app.toml. Run shopify version to check your version, and upgrade Shopify CLI if needed.

Each topic you subscribe to has a required access scope. See the Events reference for a full list of supported topics and their required scopes.

Some triggers require an additional access scope on top of the topic's access scope. The requirement applies to the trigger and to every trigger nested under it. The Events reference shows the additional scope on each of these triggers and on their parent triggers.

An additional access scope affects your app's subscriptions in the following ways:

  • To subscribe to a trigger that requires an additional access scope, your app's access scopes must include the topic's access scope and the trigger's additional access scope. If either scope is missing, then Shopify rejects the subscription.
  • A subscription to a parent trigger, such as location.*, doesn't need the additional access scope. It receives changes to fields under the trigger only if your app also has the additional access scope.
  • If your app doesn't have the additional access scope, then its subscriptions stop receiving changes to those fields, for example after your app loses the scope. Shopify doesn't deliver an event whose changed fields all require the missing scope.
  • Trigger access scopes aren't versioned. If a trigger that your app subscribes to starts to require an additional access scope, then the requirement applies to every API version.

The api_version field in [events] controls the GraphQL Admin API version used to validate and run subscription query operations:

shopify.app.toml

[events]
api_version = "2026-10"

Each Events subscription is defined by an [[events.subscription]] entry in your shopify.app.toml file. The following fields are required. triggers is required only when actions includes update:

FieldPurpose
handleUnique ID for this subscription (alphanumeric, _, -, max 50 characters). Included in the delivery payload and headers.
topicCapitalized resource name (for example Product). See Topics.
actionsOne or more of create, update, delete. See Actions.
uriDelivery destination. HTTPS URL, AWS EventBridge ARN, or Google Pub/Sub URI.
triggersRequired when actions includes update. Field paths that determine which changes trigger update deliveries. See Delivery filtering.

The following fields are optional:

FieldPurpose
queryGraphQL operation whose result appears in data. See Delivery structure.
query_filterExpression evaluated on the query result after query runs. See Delivery filtering.

A topic names the GraphQL Admin resource your subscription listens to. For example, Events subscriptions on the Product topic listen for changes to Product GraphQL Admin objects.

Some objects don't have their own topic because they only exist as part of another resource. For example, ProductVariant doesn't have a separate Events topic. Shopify surfaces ProductVariant changes on the Product topic. If you need to listen to changes to ProductVariant, you would subscribe to Product, not a standalone ProductVariant topic.

Use the Events reference for the current list of topics and validation behavior when you deploy.


actions lists which lifecycle transitions on the subscribed topic can produce a delivery.

  • create and delete apply to the topic entity itself. There's no field-path narrowing for those actions at the subscription level. Shopify matches these actions at the resource create/delete boundary for that topic.

  • update covers changes on the topic entity and, where the model routes them there, on owned children (for example ProductVariant fields under Product). triggers is required and restricts which field paths can qualify an update. That mechanism applies only to update. See Delivery filtering.

You can list any combination of create, update, and delete. A subscription that includes update alongside create or delete also requires triggers, but uses them only when deciding which update changes qualify.


The following subscription listens for product creates, deletes, and variant price updates on the Product topic and delivers to a single endpoint. It uses the required triggers for update, with no query or query_filter, so every qualifying change fires a delivery with the base payload.

Product subscription

[events]
api_version = "2026-10"

[[events.subscription]]
handle = "product-updates"

topic = "Product"
actions = ["create", "update", "delete"]
triggers = ["product.variants.price"]

uri = "https://your-app.example.com/events/product"
{
"topic": "Product",
"action": "update",
"handle": "product-updates",
"fields_changed": {
"added": [],
"updated": [
"product[id: 'gid://shopify/Product/123'].variants[id: 'gid://shopify/ProductVariant/456'].price"
],
"removed": []
},
"query_variables": {
"productId": "gid://shopify/Product/123",
"variantsId": "gid://shopify/ProductVariant/456"
}
}

  • Delivery filtering: Narrow update deliveries with triggers and gate sends with query_filter.
  • Delivery structure: Shape data with query and understand what each delivery contains.

Was this page helpful?