---
title: Collection
description: Subscribe to field-level changes on the Collection GraphQL Admin API object.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/events/latest/collection'
  md: 'https://shopify.dev/docs/api/events/latest/collection.md'
api_name: events
---

# Collection

**Requires `read_products` access scope.:**

Supported [actions](https://shopify.dev/docs/apps/build/events/subscribe#actions): `create`, `update`, `delete`

Subscribe to field-level changes on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) GraphQL Admin API object.

Each [topic](https://shopify.dev/docs/api/events/latest#configuration) corresponds to a commerce resource that can exist independently within its domain. Child entities that depend on a parent within the same domain don't have their own topic. Instead, changes to child entities trigger a delivery on the parent topic. Calculated fields, derived fields, auto-updated timestamps, and cross-domain fields aren't available as triggers.

## shopify.app.toml

```toml
[events]
api_version = "2026-10"


[[events.subscription]]
handle = "my_collection_event"


topic = "Collection"
actions = ["update"]
triggers = ["collection.descriptionHtml"]


uri = "https://your-app.com/events"


query = """
query collection_event_payload($collectionId: ID!) {
  collection(id: $collectionId) {
    id
    title
    handle
    descriptionHtml
  }
}
"""
```

***

## Supported triggers

Field-level [triggers](https://shopify.dev/docs/api/events/latest#configuration) for `Collection` subscriptions.

All triggers require the `read_products` access scope. Those triggers that require additional scopes are documented where relevant. Deprecated triggers are listed last.

Subscriptions can include multiple triggers. Use the `shopify-webhook-id` header for deduplication when handling duplicate deliveries.

Custom queries aren't limited to [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection). They can query the full GraphQL Admin API.

### collection​.\*[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection)

Fires when events involve the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object, which represents a group of [products](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product) that merchants can organize to make their stores easier to browse and help customers find related products.

The `"create"` and `"delete"` actions are only relevant within the context of this parent topic. Use `fields_changed` to follow or replicate impacted data after a delete event. Define a custom query to retrieve specific fields from create events.

`collection.*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `collection`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

**Variables:** `collectionId`

### collection​.descriptionHtml[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.descriptionHtml)

Fires when the [`descriptionHtml`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.descriptionHtml) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `descriptionHtml` field represents the description of the collection, including any HTML tags and formatting.

**Variables:** `collectionId`

### collection​.handle[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.handle)

Fires when the [`handle`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.handle) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `handle` field represents a unique string that identifies the collection.

**Variables:** `collectionId`

### collection​.image[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.image)

Fires when the [`image`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.image) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `image` field represents the image associated with the collection.

**Variables:** `collectionId`

### collection​.metafield(namespace: String!, key: String!)​.\*[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.metafield)

Fires when the [`metafield`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.metafield) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

`collection.metafield(namespace: String!, key: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `collection.metafield(namespace: String!, key: String!)`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `metafield` field represents a custom field, including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.

**Variables:** `collectionId`, `metafieldKey`, `metafieldNamespace`

### collection​.metafield(namespace: String!)​.\*[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.metafield)

Fires when the [`metafield`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.metafield) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

`collection.metafield(namespace: String!).*` is a parent trigger. Subscribing with the `"update"` action receives events for all supported triggers under `collection.metafield(namespace: String!)`, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

This subscription omits the optional argument `metafield.key`.

The `metafield` field represents a custom field, including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.

**Variables:** `collectionId`, `metafieldKey`, `metafieldNamespace`

### collection​.metafield(namespace: String!, key: String!)​.value[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield#field-Metafield.fields.value)

Fires when the [`value`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield#field-Metafield.fields.value) field on the [`Metafield`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `value` field represents the data stored in the metafield.

**Variables:** `collectionId`, `metafieldKey`, `metafieldNamespace`

### collection​.metafield(namespace: String!)​.value[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield#field-Metafield.fields.value)

Fires when the [`value`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield#field-Metafield.fields.value) field on the [`Metafield`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Metafield) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

This subscription omits the optional argument `metafield.key`.

The `value` field represents the data stored in the metafield.

**Variables:** `collectionId`, `metafieldKey`, `metafieldNamespace`

### collection​.products[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.products)

Fires when the [`products`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.products) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `products` field represents the products that are included in the collection.

**Variables:** `collectionId`, `productsId`

### collection​.sortOrder[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.sortOrder)

Fires when the [`sortOrder`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.sortOrder) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `sortOrder` field represents the order in which the products in the collection are displayed by default in the Shopify admin and in sales channels, such as an online store.

**Variables:** `collectionId`

### collection​.templateSuffix[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.templateSuffix)

Fires when the [`templateSuffix`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.templateSuffix) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `templateSuffix` field represents the suffix of the Liquid template being used to show the collection in an online store.

**Variables:** `collectionId`

### collection​.title[](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.title)

Fires when the [`title`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection#field-Collection.fields.title) field on the [`Collection`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/Collection) object changes.

Subscribe to this trigger with the `"update"` action and include the field in a custom `query` to retrieve updated data from the payload. You can trace the field in subsequent requests using `fields_changed`.

The `title` field represents the name of the collection.

**Variables:** `collectionId`

### Examples

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["create","update","delete"]
  triggers = ["collection.*"]

  uri = "https://your-app.com/events"

  query = """
  query collection_details($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Collection",
    "action": "create",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection"
      }
    },
    "fields_changed": {
      "added": [
        "collection[id: 'gid://shopify/Collection/8793284542008']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Payload (updated)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].descriptionHtml"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Collection",
    "action": "delete",
    "handle": "collection-event",
    "data": {
      "collection": null
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "collection[id: 'gid://shopify/Collection/8793284542008']"
      ]
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update # or create, delete
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.descriptionHtml"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
      descriptionHtml
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "descriptionHtml": "<p>Example</p>"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].descriptionHtml"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.handle"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].handle"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.image"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
      image {
        id
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "image": {
          "id": "gid://shopify/Image/111"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].image"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.metafield(namespace: 'custom', key: 'rating').*"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    collection(id: $collectionId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating']"
      ]
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.metafield(namespace: 'custom').*"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    collection(id: $collectionId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating']"
      ]
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.metafield(namespace: 'custom', key: 'rating').value"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    collection(id: $collectionId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating'].value"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.metafield(namespace: 'custom').value"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!, $metafieldNamespace: String!, $metafieldKey: String!) {
    collection(id: $collectionId) {
      id
      title
      handle
      metafield(namespace: $metafieldNamespace, key: $metafieldKey) {
        namespace
        key
        value
        type
      }
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "metafield": {
          "namespace": "custom",
          "key": "rating",
          "value": "Cotton",
          "type": "single_line_text_field"
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].metafield[namespace: 'custom', key: 'rating'].value"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "metafieldKey": "rating",
      "metafieldNamespace": "custom"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.products"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
      products(first: 10) {
        nodes {
          id
        }
      }
    }
  }
  """
  ```

  ##### Payload (added)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "products": {
          "nodes": [
            {
              "id": "gid://shopify/Product/5316874232828"
            }
          ]
        }
      }
    },
    "fields_changed": {
      "added": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].products[id: 'gid://shopify/Product/5316874232828']"
      ],
      "updated": [],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "productsId": "gid://shopify/Product/5316874232828"
    }
  }
  ```

  ##### Payload (removed)

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "products": {
          "nodes": [
            {
              "id": "gid://shopify/Product/111"
            }
          ]
        }
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [],
      "removed": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].products[id: 'gid://shopify/Product/5316874232828']"
      ]
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008",
      "productsId": "gid://shopify/Product/5316874232828"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.sortOrder"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
      sortOrder
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "sortOrder": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].sortOrder"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.templateSuffix"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
      templateSuffix
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection",
        "templateSuffix": "…"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].templateSuffix"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

* #### Subscribe via app configuration

  ##### shopify.app.toml

  ```toml
  [events]
  api_version = "2026-10"

  [[events.subscription]]
  handle = "collection-event"

  topic = "Collection"
  actions = ["update"]
  triggers = ["collection.title"]

  uri = "https://your-app.com/events"

  query = """
  query collection_event_payload($collectionId: ID!) {
    collection(id: $collectionId) {
      id
      title
      handle
    }
  }
  """
  ```

  ##### Payload

  ```json
  {
    "topic": "Collection",
    "action": "update",
    "handle": "collection-event",
    "data": {
      "collection": {
        "id": "gid://shopify/Collection/8793284542008",
        "title": "Example collection",
        "handle": "example-collection"
      }
    },
    "fields_changed": {
      "added": [],
      "updated": [
        "collection[id: 'gid://shopify/Collection/8793284542008'].title"
      ],
      "removed": []
    },
    "query_variables": {
      "collectionId": "gid://shopify/Collection/8793284542008"
    }
  }
  ```

  ##### Headers

  ```bash
  shopify-action: update
  shopify-api-version: 2026-10
  shopify-handle: collection-event
  shopify-hmac-sha256: 61lWIGuA2nXdHRjhMU/+EDw2y3Eg0mPKJ+RhR7dKKIM=
  shopify-shop-domain: your-shop.myshopify.com
  shopify-topic: Collection
  shopify-triggered-at: 2026-03-23T16:24:35.267Z
  shopify-webhook-id: 7613956a-18a5-332d-b71e-e164bbcacdba
  ```

***
