Skip to content

Bulk disable offers

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

POST/preorders/offers/bulk_disable

Costs 2 rate-limit points · Rate limits

Turn many preorder offers off at once, as the Offers list's bulk Disable does. Optionally flip the attached variants' inventory policy back to DENY.

ids are offer ids. Each offer is turned off as the dashboard's bulk Disable does: a dated offer has its schedule removed. update_inventory_policy: true also sets every attached variant of the STOQ-inventory offers back to "Stop selling when out of stock" (DENY), as the bulk Disable dialog does; offers with more than 250 variants are flipped in the background.

Also searched asbulk disable offersdisable offersturn off offerspause offersdisable several offersturn these offers offdisable all offers

Headers

  • Idempotency-Keystring

    A fresh unique key for every write (a new UUID, say); reuse it only to retry that write. Keys are remembered for 1 hour: the same key and the same request within that hour returns the first result, with Idempotent-Replayed: true, without running again; the same key with a different method, path or body is refused (422 idempotency_key_reused); a retry while the first is still running gets 409 idempotency_key_in_progress. Keys are per store. Server errors and rate limits are not kept, so their retry runs.

Request body

  • idsstring
    Example: string
  • update_inventory_policystring
    Example: 2026-07-01T00:00:00Z

Errors

401

Missing or invalid X-Auth-Token.

409

An earlier request with the same Idempotency-Key is still running. Wait, then resend the same request with the same key.

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.

POST/preorders/offers/bulk_disable
curl -X POST "https://app.stoqapp.com/api/v2/external/preorders/offers/bulk_disable" \
  -H "X-Auth-Token: $STOQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": "string",
    "update_inventory_policy": "2026-07-01T00:00:00Z"
  }'
Response
No body