ads
POST /v1/webhooks/ads-stock/{store_id}
A WooCommerce "Product updated" delivery for the out-of-stock pause (za-N2).
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/webhooks/ads-stock/{store_id}Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Unauthenticated: WooCommerce's X-WC-Webhook-Signature (base64 HMAC-SHA256 of the raw body) is the authentication, verified with the shop's derived secret before the body is read. A product whose stock_status flips to outofstock starts its pause after the customer's hold; back to instock or onbackorder starts its resume. A product link on another host, a body without stock, or an unchanged stock answers 200 and does nothing; a signed body whose date_modified_gmt is older than the newest already seen for the product is a replay and answers 200 (stale) without changing anything. WooCommerce's unsigned set-up ping (webhook_id=N) answers 200 and writes nothing; nor does a refused signature. 404 unknown or switched-off shop, 400 missing or bad signature, 413 body over 1 MB, 503 the engine key is unavailable (retry).
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
store_id (path) | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | object | Yes | — |
Errors this endpoint can return
400 · 404 · 413 · 503