Menu
webhookSubscriptions
List the store's webhook subscriptions (topic + delivery endpoint).
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the webhookSubscriptions action (under Webhook).
- Fill in the fields below, then reference the result from later steps as
{{webhooksubscriptions.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query WebhookSubscriptions($callbackUrl: URL, $uri: String, $format: WebhookSubscriptionFormat, $topics: [WebhookSubscriptionTopic!], $first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: WebhookSubscriptionSortKeys, $query: String) {
webhookSubscriptions(
callbackUrl: $callbackUrl
uri: $uri
format: $format
topics: $topics
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
apiVersion
callbackUrl
createdAt
endpoint
filter
format
id
includeFields
legacyResourceId
metafieldNamespaces
metafields
name
topic
updatedAt
uri
}
}
nodes {
apiVersion {
displayName
handle
supported
}
callbackUrl
createdAt
endpoint
filter
format
id
includeFields
legacyResourceId
metafieldNamespaces
metafields {
key
namespace
}
name
topic
updatedAt
uri
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"callbackUrl": "string",
"uri": "string",
"format": "JSON",
"topics": [
"TAX_SUMMARIES_CREATE"
],
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"sortKey": "CREATED_AT",
"query": "string"
}
Response
Read the result with {{webhooksubscriptions.response.data.data.webhookSubscriptions}}. If the API returns errors, the step fails and they are at {{webhooksubscriptions.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?