Hi ShopifyDev’s,
I’m getting weird errors when I try to subscribe to a webhook (2026-01). Via the GraphQL app installed on the store:
mutation CreateWebhookSubscription {
webhookSubscriptionCreate(
topic: INVENTORY_LEVELS_UPDATE
webhookSubscription: {uri: "https://example.com"}
) {
webhookSubscription {
id
topic
filter
uri
}
userErrors {
field
message
}
}
}
{
"data": {
"webhookSubscriptionCreate": {
"webhookSubscription": null,
"userErrors": [
{
"field": [
"webhookSubscription"
],
"message": "You cannot create a webhook subscription with the specified topic"
}
]
}
}
}
SOLVED:
When I try via Postman. Exact same Query but different error:
{
"errors": [
{
"message": "Field 'webhookSubscriptionCreate' doesn't exist on type 'Mutation'",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"mutation CreateWebhookSubscription",
"webhookSubscriptionCreate"
],
"extensions": {
"code": "undefinedField",
"typeName": "Mutation",
"fieldName": "webhookSubscriptionCreate"
}
}
]
}
And in Postman it works when I use the REST api:
{
"webhook": {
"address": "https://example.com",
"topic": "inventory_levels/update"
}
}
x-request-id: 58b18e93-ee19-4a4c-a941-e749b09bc71a-1771855639