Stock notifications
Ask Subbly to email a customer when an item is back in stock.
Asks Subbly to email the customer when a product or a survey answer is back in
stock. Watch for stockCount: 0 on a variant, a plan or an answer, and offer
the alert there.
The shop must turn alerts on: shop.settings.outOfStockEnabled and
shop.limits.outOfStock must both be true.
Method parameters
payloadRequiredStockSubscriptionPayloadWhat to watch, and where to send the alert.
ReturnsPromise<StockSubscriptionResponse>
The alert record.
Watch a variant
Watch a survey answer