Skip to content

Bulk enable offers

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

POST/preorders/offers/bulk_enable

Costs 2 rate-limit points · Rate limits

Turn many preorder offers on at once, as the Offers list's bulk Enable does. Optionally flip the attached variants' inventory policy to CONTINUE.

ids are offer ids. Each offer is turned on as the dashboard's bulk Enable does: a scheduled offer starts now (its start date is cleared, an end date is kept). An offer that cannot be turned on (for example the plan's offer limit) is counted in failed with its reason in failed_errors; the others still turn on. update_inventory_policy: true also sets every attached variant of the STOQ-inventory offers to "Continue selling when out of stock", as the bulk Enable dialog's Continue selling choice does; offers with more than 250 variants are flipped in the background.

Also searched asbulk enable offersenable offersturn on offersenable several offersactivate offersturn these offers onenable 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_enable
curl -X POST "https://app.stoqapp.com/api/v2/external/preorders/offers/bulk_enable" \
  -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