Webhook when product is added to or removed from market catalog?

Webhook when product is added to or removed from market catalog?

Mzril
Shopify Partner
3 0 0

Does there exist a webhook topic for when a product is already published to the primary market (of regions US, CA as an example), but then is published to another market/removed from a market?

I've tried subscribing to the "PRODUCT_PUBLICATIONS" create,delete,update but that webhook topic was not fired on managing the markets in the admin console.

Replies 2 (2)

Liam
Community Manager
3106 339 870

Hi Mzril,

 

It doesn't look like there's a dedicated webhook topic specifically for when a product is published or removed from a specific market. The `products_update` webhook should still fire even though the info you need won't be in the payload. After receiving the webhook, you could make an API call to the Storefront API to check the Product's availability across different markets?

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

Mzril
Shopify Partner
3 0 0

Thank you for the reply liam, unfortunately the above isn't quite an option due to the IP-based rate limits of the Storefront API when doing a server->server call.

Instead we found a way to check region specific availability on the client by doing @inContext call of the product after fetching its metadata