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.
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| account_id | The account's own limits and its locations' limits | optional | int | 16 |
| account_location_id | One account location's limits (the location's own ID) | optional | int | 231 |
| product_id / sku | Limits on one product | optional | int / string | 10 / toaster |
| attribute_code / option_id | Limits on an attribute's values / one value | optional | string / int | color / 66 |
| customer_group_id | Limits on a customer group | optional | int | 1 |
| target_type | product or attribute | optional | string | product |
| with_usage | 1 adds used, quoted, left, next_reset | optional | int | 1 |
| since_id | Limits after this rule_id | optional | int | 402 |
| page | Page number, not with since_id | optional | int | 1 |
| limit | Per call, 1 to 500 (default 100) | optional | int | 100 |
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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
