Skip to content

List orders

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

GET/back_in_stock/orders

Costs 1 rate-limit point · Rate limits

List orders placed after a back-in-stock alert, paginated. search matches order number/name, customer name, email, a Shopify order id (10+ digits), an order gid (gid://shopify/Order/<id>), or a Shopify admin order URL.

Filters match Reports > Back in stock > Sales recovered and combine with AND. product_match_type same_as_notification keeps orders where the customer bought the exact variant they were alerted about (the dashboard's Order matching: Exact variant match only). shopify_variant_id and shopify_product_id (gids) keep orders containing that variant or product, like a product's Orders tab. A bare from/to date is that whole day in the shop's time zone.

Also searched aslist back in stock ordersrestock alert ordersnotification ordersorders from restock alertssales recovered

Query parameters

  • pagestring
  • per_pagestring
  • searchstring
  • product_match_typestring
  • shopify_variant_idstring
  • shopify_product_idstring
  • customer_idstring
  • fromstring
  • tostring

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/orders
curl "https://app.stoqapp.com/api/v2/external/back_in_stock/orders" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
No body