Happening now! Shopify Community AMA: PayPal Express Migration to Shopify Payments | Ask your questions to be answered by our team.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

What is the webhook body for inventory_levels/disconnect

Solved

What is the webhook body for inventory_levels/disconnect

jvillegasd
Shopify Partner
2 0 0

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 

Accepted Solution (1)

cdarne
Shopify Staff
30 5 14

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.

View solution in original post

Replies 2 (2)

cdarne
Shopify Staff
30 5 14

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.

jvillegasd
Shopify Partner
2 0 0

Thank you so much for your response and helping me!