Issue:
I noticed a problem with the webhook subscriptions API version.
I tried subscribing to both regular webhooks and Pub/Sub webhooks, but both use the “2024-01” API version, even though I created these subscriptions using a new API that uses the 2025-01 version.
How to reproduce:
- Create a new app on partners.shopify.com
- Chose the webhooks API version 2025-01
- Install it with a custom distribution on a store
- Use the API credentials of this app to run the following mutation on the
https://{{SHOPIFY_API_URL}}/admin/api/2025-01/graphql.json
URL:
mutation pubSubWebhookSubscriptionCreate(
$topic: WebhookSubscriptionTopic!
$webhookSubscription: PubSubWebhookSubscriptionInput!
) {
pubSubWebhookSubscriptionCreate(
topic: $topic
webhookSubscription: $webhookSubscription
) {
webhookSubscription {
id
topic
format
endpoint {
__typename
... on WebhookPubSubEndpoint {
pubSubProject
pubSubTopic
}
}
}
}
}
- Run the following GraphQL query to check the webhooks subscriptions:
query webhookSubscriptions($first: Int!) {
webhookSubscriptions(first: $first) {
edges {
node {
id
apiVersion {
displayName
handle
supported
}
createdAt
updatedAt
format
topic
endpoint {
__typename
... on WebhookHttpEndpoint {
callbackUrl
}
... on WebhookPubSubEndpoint {
pubSubProject
pubSubTopic
}
}
}
}
}
}
Expected behaviour:
The apiVersion.displayName
and apiVersion.handle
should be set to 2025-01
.
Actual behaviour:
The apiVersion.displayName
and apiVersion.handle
is set to 2024-01
.
Additional information:
I found another bug report with the same issue in the public forum: Re: Update webhook API version - Shopify Community
Thank you for your help.