EventBridge - INVENTORY_LEVELS_UPDATE topic not firing on manual inventory update

ft3
Tourist
9 1 3

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?

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 40

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

0 Likes
ft3
Tourist
9 1 3

After nothing firing yesterday, it looks like both webhooks (`PRODUCTS_UPDATE` and `INVENTORY_LEVELS_UPDATE`) are firing as expected. Here is a product id for the webhook that didn't fire yesterday: `b7686311-1511-75b7-1f16-680848e4e7d9`.

0 Likes