Event Subscription
An event subscription that the app set on the shop.
Anchor to FieldsFields
- actions ([EventSubscriptionAction!]!)
- apiVersion (String!)
- handle (String!)
- query (String)
- queryFilter (String)
- topic (String!)
- triggers ([String!]!)
- uri (String!)
- Anchor to actionsactions•[Event
Subscription Action!]! non-null The actions on the topic's resource that deliver an event.
Show enum values
- Anchor to apiVersionapi•String!
Version non-null The API version of the event payloads: the version of the request that last set the subscription.
- Anchor to handlehandle•String!non-null
The handle that identifies the subscription within the app.
- Anchor to queryquery•String
The GraphQL query that builds the event payload.
- Anchor to queryFilterquery•String
Filter The filter in Shopify API search syntax that an event must match to be delivered.
- Anchor to topictopic•String!non-null
The event topic the subscription is on.
- Anchor to triggerstriggers•[String!]!non-null
The fields of the topic's resource whose changes deliver an event.
- •String!non-null
The URI where events are delivered: an HTTPS URL, a Google Pub/Sub URI or an Amazon EventBridge event source ARN.
Anchor to QueriesQueries
- eventSubscription (EventSubscription)
- •query
Returns the event subscription that the authenticated app set on the shop with
, matched by handle, or null when the app set none with that handle. A subscription the app's configuration declares is not set on the shop and isn't returned here.Show fields
- Anchor to handlehandle•String!required
The handle of the subscription.
Arguments
Anchor to MutationsMutations
- eventSubscriptionsSet (EventSubscriptionsSetPayload)
- •mutation
Creates or replaces event subscriptions of the authenticated app on the shop, matched by handle.
Each input is a subscription's complete configuration. When no subscription has the handle, one is created. When one does, its whole configuration is replaced: a field left out of the input is removed from the subscription. Event payloads use the API version of the request.
The subscriptions are set together: when any of them is invalid, none is set. Takes up to 25 subscriptions in one call.
Show payload
- Anchor to eventSubscriptionsevent•[Event
Subscriptions Subscription Input!]! required The complete configuration of each subscription. Maximum of 25.
Show input fields
Arguments