Weird incomplete response for products/delete webhook

Standing_By_Co_
Shopify Partner
9 0 1

This was working fine the other today, however today whenever I test the products/delete webhook the response only contains id:

{"id":788032119674292922}

I have tested with my app as well as the Admin's send test notification feature.

As per the documentation it's meant to contain all the fields for a product. Documentation → 

Is anyone able to confirm this?

Replies 2 (2)
Josh
Shopify Staff
Shopify Staff
1134 82 213

Hey there, 

To my understanding this was how the products/delete webhooks had always behaved. Do you have a date for when you believe that wasn't the case?

I think what you're seeing in the documentation is just a general reference to the webhook body (such as when it's created instead) since we only provide the one example for each resource. 

Could you shed some light on when having the full product body would be useful in the case that it's deleted? 

Josh | 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 the Shopify Help Center or the Shopify Blog

mattdlockyer
Tourist
5 0 1

Please have a look at "products/delete" entry here: https://shopify.dev/api/admin/rest/reference/events/webhook

This is misleading. Since products/delete only returns { id: ... }

Should be updated.