Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I'm currently developing a Shopify app that enables users to import products from my platform directly into their Shopify stores. My platform's products have dynamic availability, which change frequently. I'm looking for a way to detect when a customer lands on one of these product pages. Upon detecting this event, I would like to trigger an inventory check against my server to fetch the latest availability status and then update the product's inventory in the Shopify store via the GraphQL API.
Does Shopify offer a native solution that would allow for this kind of event-driven inventory update? Something like a PRODUCT_PAGE_VISIT webhook would be perfect, if it was possible to create custom webhooks, but it doesn't seem to be.
Any suggestions much appreciated, thanks!