I have successfully registered webhooks for the following topics: `PRODUCTS_CREATE`, `PRODUCTS_UPDATE`, `INVENTORY_LEVELS_UPDATE`. My graphql query and response roughly looks like:
mutation {
eventBridgeWebhookSubscriptionCreate(
topic: ${topic},
webhookSubscription: {
arn: "${arn}"
format: JSON
}
) {
webhookSubscription {
id
}
userErrors {
message
}
}
}
>>>
data: {
eventBridgeWebhookSubscriptionCreate: {
webhookSubscription: { id: '<id>' },
userErrors: []
}
},
extensions: {
cost: {
requestedQueryCost: 10,
actualQueryCost: 10,
throttleStatus: {
maximumAvailable: 1000,
currentlyAvailable: 990,
restoreRate: 50
}
}
}
I have verified that the webhooks are firing for the `PRODUCTS_CREATE`, `PRODUCTS_UPDATE` topics (the current EventBridge source is CloudWatch). However, the `INVENTORY_LEVELS_UPDATE` webhook is not firing. Further, when I update inventory manually, the `PRODUCTS_UPDATE` webhook is fired but the `INVENTORY_LEVELS_UPDATE` webhook is not.
I currently have the following scopes enabled:
scopes: [
"read_inventory",
"read_products",
"write_inventory",
"write_products"
]
Any idea what might be going on here?
Hey @ft3
Would you be able to provide us with a product ID for a product where the webhook isn't firing correctly?
Kevin_A | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | Count |
---|---|
12 | |
12 | |
7 | |
6 | |
5 |