Get All

Description: Lists allocation limits, oldest first (by rule_id). Allocation limits cap how much an account can order of a product or attribute value per period.

Authentication: Admin

Default Format: JSON

A store with allocation limits off answers 403. Team members over OAuth 2 need access to the Products page to read limits and the "Can Manage Allocation Limits" permission to change them. A team member limited to some accounts (Account Access) only sees and changes those accounts' limits: other accounts' and their locations' limits are left out of the lists, reading, changing, counting or the history of one answers 404, and creating one is refused ("This account isn't available to you."). Customer group limits aren't affected.

Paging: up to limit (default 100, max 500) per call. To read everything, pass since_id = the last rule_id you got until the list is empty (stays right while limits are added or removed); page also works, not together with since_id.

Usage: with_usage=1 adds used, quoted, left and next_reset for this period. They're null for customer group limits (counted per account) and attribute value limits counted per product.

Unknown parameters are refused with a 400.

NameDescriptionRequiredTypeExample Value
account_idThe account's own limits and its locations' limitsoptionalint16
account_location_idOne account location's limits (the location's own ID)optionalint231
product_id / skuLimits on one productoptionalint / string10 / toaster
attribute_code / option_idLimits on an attribute's values / one valueoptionalstring / intcolor / 66
customer_group_idLimits on a customer groupoptionalint1
target_typeproduct or attributeoptionalstringproduct
with_usage1 adds used, quoted, left, next_resetoptionalint1
since_idLimits after this rule_idoptionalint402
pagePage number, not with since_idoptionalint1
limitPer call, 1 to 500 (default 100)optionalint100

Variant: Count

Description: How many allocation limits match the filters: count=1 with any of Get All's filters answers {"total": N}.

Authentication: Admin

Default Format: JSON

A store with allocation limits off answers 403. Team members over OAuth 2 need access to the Products page to read limits and the "Can Manage Allocation Limits" permission to change them. A team member limited to some accounts (Account Access) only sees and changes those accounts' limits: other accounts' and their locations' limits are left out of the lists, reading, changing, counting or the history of one answers 404, and creating one is refused ("This account isn't available to you."). Customer group limits aren't affected.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

(Optional) The account's own limits and its locations' limits (not the customer group limits it inherits).

string

(Optional) Limits of one account location (the location's own ID).

string

(Optional) Limits on a product.

string

(Optional) Limits on a product, by SKU.

string

(Optional) Limits on values of an attribute.

string

(Optional) Limits on one attribute value.

string

(Optional) Limits on a customer group.

string

(Optional) product or attribute.

string

(Optional) 1 adds this period's used, quoted, left and next_reset.

string

(Optional) Only limits with a higher rule_id: pass the last rule_id you got to read the next page. Not with page.

string

(Optional) Page number (default 1). Not with since_id.

string

(Optional) Limits per call (default 100, max 500).

string

1 answers the number of limits instead of the limits.

Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json