Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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 Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
It is giving us only {'id': 7802126237857} in response nothing else.
and after that this api is giving me
curl -X GET "https://your-development-store.myshopify.com/admin/api/2023-10/products/632910392.json" \
-H "X-Shopify-Access-Token: {access_token}"
response -