Product availability through InventoryLevel webhooks and multi-location fulfillment

Syntaf
New Member
1 0 1

Hey all,

 

I'm looking for a way to determine the global availability of a product based on the InventoryLevel event webhook; does anyone know if this is possible given that a store can fulfill products from multiple locations?

This event is sufficient given a user with only one location fulfilling their online store, however once multiple locations can fulfill a given order I no longer see a way to determine if a product is available from the webhook alone since the event is tied to a specific location.

If it's indeed not possible to determine product availability based on webhooks alone, is the next best solution polling the availableForSale field for products to determine if they can be purchased from the user's online store?

Thanks for any information!