Notify the WhatsApp back-in-stock subscribers of a restocked variant

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:

CallBodyNotifiedsubscriptions_count
1{ "shopify_product_variant_id": "56525604487547", "limit": 20 }subscribers 1 to 2020
2{ "shopify_product_variant_id": "56525604487547", "limit": 20 }subscribers 21 to 4020
3{ "shopify_product_variant_id": "56525604487547" }subscribers 41 to 5010

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The Shopify id of the restocked variant (the id in the Shopify admin URL, not the WAX id).

integer
1 to 10000

Optional. Notify only the N oldest subscribers who were not notified yet, the others stay subscribed for a later call. Without it, every subscriber is notified.

Headers
string
required

Bearer token

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json