For deleting an item

For deleting an item

New Member
10 0 0

I need webhook response on deleting items, i want to retreive item using UPC and SKU?I don't want to recreate them , i need details in webhook response so that i can call API for retreiving all the details of item.

Replies 2 (2)

Shopify Staff
2807 310 805

Hi Nishantyadav,


You can use the products/delete webhook which will provide data (like SKU) but it will not provide UPC information. The UPC information can be stored at variant level in Shopify, and unfortunately, Shopify does not trigger webhooks for variant deletions, only product deletions.


If you want to retrieve more details about the product like UPC, you might to store this information in your database before the item gets deleted and then use it once you receive the webhook notification.


Would this pattern work for you?

Liam | Developer Advocate @ 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 or the Shopify Web Design and Development Blog

New Member
10 0 0

Hi Liam,

It is giving us only {'id': 7802126237857} in response nothing else.


 and after that this api is giving me

curl -X GET "" \
-H "X-Shopify-Access-Token: {access_token}"


response -

"errors": "Not Found"