Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi, how are you doing today? I'm creating an Inventory sync web app and I'm making use of Shopify webhook to get data updated. My concern is about inventory_levels webhook payload, for the disconnect event the documentation show undefined as a payload. I want to know the payload for this event, and if that is real payload, How can I check which inventory level was disconnected?
Doc link: https://shopify.dev/docs/api/admin-rest/2023-04/resources/webhook#resource-object
Solved! Go to the solution
This is an accepted solution.
Hi,
Thanks for reaching out for that question. The `undefined` example payload for the "inventory_levels/disconnect" webhooks topic is a bug in our documentation. It should display a payload with only the `inventory_item_id` and `location_id` fields. I'm going to check to get that topic fixed in the documentation.
Cheers,
Cedric | Developer @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi,
Thanks for reaching out for that question. The `undefined` example payload for the "inventory_levels/disconnect" webhooks topic is a bug in our documentation. It should display a payload with only the `inventory_item_id` and `location_id` fields. I'm going to check to get that topic fixed in the documentation.
Cheers,
Cedric | Developer @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.
Thank you so much for your response and helping me!