Skip to main content
object

A webhook subscription is a persisted data object created by an app using the REST Admin API or GraphQL Admin API. It describes the topic that the app wants to receive, and a destination where Shopify should send webhooks of the specified topic. When an event for a given topic occurs, the webhook subscription sends a relevant payload to the destination. Learn more about the webhooks system.

•ApiVersion!non-null

The Admin API version that Shopify uses to serialize webhook events. This value is inherited from the app that created the webhook subscription.

•DateTime!non-null

The date and time when the webhook subscription was created.

•WebhookSubscriptionEndpoint!non-null

The endpoint to which the webhook subscription will send events.

•String

A constraint specified using search syntax that ensures only webhooks that match the specified filter are emitted. See our guide on filters for more details.

•WebhookSubscriptionFormat!non-null

The format in which the webhook subscription should send the data.

•ID!non-null

A globally-unique ID.

•[String!]!non-null

An optional array of top-level resource fields that should be serialized and sent in the webhook message. If null, then all fields will be sent.

•UnsignedInt64!non-null

The ID of the corresponding resource in the REST Admin API.

•[String!]!non-null

The list of namespaces for any metafields that should be included in the webhook subscription.

•WebhookSubscriptionTopic!non-null

The type of event that triggers the webhook. The topic determines when the webhook subscription sends a webhook, as well as what class of data object that webhook contains.

•DateTime!non-null

The date and time when the webhook subscription was updated.

•URL!non-nullDeprecated

Was this section helpful?

•query

Returns a webhook subscription by ID.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

•query

Returns a list of webhook subscriptions.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.


Was this section helpful?

•mutation

Creates a new Amazon EventBridge webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•WebhookSubscriptionTopic!required

The type of event that triggers the webhook.

•EventBridgeWebhookSubscriptionInput!required

Specifies the input fields for an EventBridge webhook subscription.


Fields

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was created.

•mutation

Updates an Amazon EventBridge webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•ID!required

The ID of the webhook subscription to update.

•EventBridgeWebhookSubscriptionInput!required

Specifies the input fields for an EventBridge webhook subscription.


Fields

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was updated.

•mutation

Creates a new Google Cloud Pub/Sub webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•WebhookSubscriptionTopic!required

The type of event that triggers the webhook.

•PubSubWebhookSubscriptionInput!required

Specifies the input fields for a Google Cloud Pub/Sub webhook subscription.


Fields

•[PubSubWebhookSubscriptionCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was created.

•mutation

Updates a Google Cloud Pub/Sub webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•ID!required

The ID of the webhook subscription to update.

•PubSubWebhookSubscriptionInput!required

Specifies the input fields for a Google Cloud Pub/Sub webhook subscription.


Fields

•[PubSubWebhookSubscriptionUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was updated.

•mutation

Creates a new webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•WebhookSubscriptionTopic!required

The type of event that triggers the webhook.

•WebhookSubscriptionInput!required

Specifies the input fields for a webhook subscription.


Fields

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was created.

•mutation

Updates a webhook subscription.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

Arguments

•ID!required

The ID of the webhook subscription to update.

•WebhookSubscriptionInput!required

Specifies the input fields for a webhook subscription.


Fields

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•WebhookSubscription

The webhook subscription that was updated.


Was this section helpful?


Was this section helpful?