As a means for faster product feature iteration, we would like to introduce a new beta stock webhooks:
stock:inStock
– emitted when a product sum across all stocks reaches a positive valuestock:soldOut
– emitted when a product sum across all stocks reaches zero or a negative valuestock:minStockSupplyReached
– emitted when a product sum across all stocks drops below minStockSupply
In any given stock operation, only one of these webhooks will be emitted per product/variant, they are mutually exclusive.
The supplied identifier is always a product or variant code
.
Due to the implementation difficulty and performance sensitivity of these new webhooks, we provide them as an experimental / beta feature and welcome your feedback, suggestions and improvement ideas.
That also means their documentation, implementation, and/or availability may change at a shorter notice than usual based on your feedback or our internal statistics/testing during this experimental run.
PLEASE NOTE: We also reserve the rights, even deprecate and remove them from the API completely (based on any findings) so please keep this in mind when you implement them in your integrations.