Sends the WhatsApp back-in-stock alert to every contact subscribed to the variant, exactly as the Shopify
variants/in_stock webhook would: the "Back in stock" automations of the organization run for each subscriber
with the usual variables (product_title, variant_title, product_url, variant_url, variant_image_url,
price, ...), and each subscriber is notified at most once per subscription.
Use it when your own system decides when a restock may be announced (for instance once a "coming soon" tag is
removed). It requires the Back in stock alerts toggle of the Shopify integration settings to be enabled:
from then on WAX ignores the Shopify restock webhook and only notifies on this call.
One call per restocked variant. Subscribers are matched in WAX, so there is nothing to send per contact.
Notifying subscribers in batches with limit: to announce a restock to the first subscribers only (for
instance when only a few units are back), pass limit. WAX notifies the oldest subscribers who were not
notified yet, and the others stay subscribed for a later call. With 50 subscribers on a variant:
| Call | Body | Notified | subscriptions_count |
|---|---|---|---|
| 1 | { "shopify_product_variant_id": "56525604487547", "limit": 20 } | subscribers 1 to 20 | 20 |
| 2 | { "shopify_product_variant_id": "56525604487547", "limit": 20 } | subscribers 21 to 40 | 20 |
| 3 | { "shopify_product_variant_id": "56525604487547" } | subscribers 41 to 50 | 10 |
A call with limit picks its subscribers when WAX accepts it. A call without limit notifies every subscriber
still waiting when it is processed, including anyone who subscribed in between. Subscribers are notified in the
background, usually within a few seconds, and only then count as notified. A limit call sent before the
previous one is processed may pick the same subscribers again: they still get the alert only once, but that
call notifies fewer than its subscriptions_count. Send the next batch a few seconds after the previous one.
subscriptions_count is the number of subscribers waiting for the alert when WAX accepted the call: at most
limit, and 0 once every subscriber was notified. limit must be an integer between 1 and 10000.
The variant and product values in the alert (price, inventory_quantity, titles, ...) are the last ones WAX
synced from Shopify: a call made right after a stock change may still carry the previous quantity.
Rate limit: 1500 requests per minute per organization. Beyond it, WAX answers 429 Too Many Requests: retry
after a short wait.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||