How can I configure a webhook to return global product ID on deletion?

How can I configure a webhook to return global product ID on deletion?

serhiima
Visitor
2 0 0

I created webHook through Rest API like so 

const client = new Shopify.Clients.Rest(shop, accessToken)
client.post({
      path: "webhooks",
      data: {
        webhook: {
          topic: "products/delete",
          address: "my_address",
          format: "json",
        },
      },
      type: DataType.JSON,
    });

The Webhook is being created without any issues
However when I delete the product, I only get product id
I am also using storefrontAPI which uses global ids.

 

Problem: I am more interested in global id of deleted product, is there any way I can configure my Webhook to return global id of the product instead of product id

Replies 0 (0)