Skip to content

Retrieve the plan usage

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

GET/account/plan_usage

Costs 1 rate-limit point · Rate limits

The shop's current STOQ plan, the limits it includes, and a calendar month's usage against them (back-in-stock email and SMS alerts, SMS segments, preorders).

usage.by_template splits the month's back-in-stock email and SMS alerts by notification template, as the usage card's breakdown does: template_position 0 is the back-in-stock alert, 1 the first reminder.

Also searched asplan and usagewhat plan am I onhow much have I usedusage this monthplan limits

Query parameters

  • periodstring

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