List sending history
BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog
const url = 'https://app.stoqapp.com/api/v2/external/back_in_stock/sending_history?status=incomplete&source=string&shopify_variant_id=45000000001&shopify_product_id=78000000001&page=string&per_page=string';const options = {method: 'GET', headers: {'X-Auth-Token': '<X-Auth-Token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.stoqapp.com/api/v2/external/back_in_stock/sending_history?status=incomplete&source=string&shopify_variant_id=45000000001&shopify_product_id=78000000001&page=string&per_page=string' \ --header 'X-Auth-Token: <X-Auth-Token>'List back-in-stock sends, newest first: each restock or manual send working through a variant’s waitlist, with its progress (the dashboard’s Bulk requests page).
Note: source is webhook (automatic restock alert), bulk_send (sent from the dashboard or API), bulk_resend, flow_action, events_inventory, events_products or reconciliation. status is active, waiting (between batches) or completed. sent_count of signups_count is the progress. source narrows to sends whose source contains it, as the page’s source search. shopify_variant_id / shopify_product_id (gids) narrow to that variant’s or product’s sends; status=incomplete (active or waiting) with one of them answers whether a send is still running, as the waitlist page’s banner shows.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
incompleteExample
stringExample
45000000001Example
78000000001Example
stringExample
stringResponses
Section titled “Responses”Success — the requested resource.
object
Example generated
{}Missing or invalid X-Auth-Token.
Error envelope returned by every failed request.
object
Example
{ "errors": [ "Unauthorized" ]}The request failed validation.
Error envelope returned by every failed request.
object
Example
{ "errors": [ "name is required" ]}Rate limited — cost-weighted per token (read 1, write 2; 360 points / 60s). Check Retry-After.
Error envelope returned by every failed request.
object
Example
{ "errors": [ "Rate limit exceeded" ]}Thanks for letting us know.
Still stuck? Ask Quinn or chat with support