Skip to content

List notifications

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

GET/back_in_stock/notifications

Costs 1 rate-limit point · Rate limits

List back-in-stock notifications (the send log) in this shop, paginated.

status=blocked surfaces sends that did not go out, with blocked_reason (the stored text), blocked_reason_code and blocked_reason_label. Every response has a summary (total, sent, blocked, blocked_by_reason) that counts every row matching the filters, not only this page. group_by=product returns counts per product (sent, blocked, and blocked by reason code) instead of rows, paginated by product. A bare from/to date is that whole day in the shop's time zone.

Also searched aslist notificationsback in stock send logrestock notifications sentwho got notifiednotification historyshow sent restock alerts

Query parameters

  • channelstring
    One of emailsms
  • statusstring
    One of sentblocked
  • group_bystring
    One of product
  • shopify_variant_idstring
  • shopify_product_idstring
  • fromstring
  • tostring
  • pagestring
  • per_pagestring

Errors

401

Missing or invalid X-Auth-Token.

422

The request failed validation.

429

Rate limited: cost-weighted per token (read 1, write 2; 360 points / 60s). Check Retry-After.

Every error has the same shape: see Errors.

GET/back_in_stock/notifications
curl "https://app.stoqapp.com/api/v2/external/back_in_stock/notifications" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
No body