Description: Changes this period's count of a limit, like the admin's Adjust Count, Reset Count and Recount. Every change needs a reason and goes on the audit log and the limit's history. Answers the count after the change.
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.
Whose count: an account or account location limit's own. A customer group limit needs account_id (an account in the group) or customer_id (a customer in the group without an account). An attribute value limit applied to each product needs product_id.
Count Parameters:
| Name | Description | Required | Type | Example Value |
|---|---|---|---|---|
| action | adjust, reset or recount | required | string | adjust |
| used | adjust: the change to Used (e.g. -2). reset / recount: true to change Used | optional | number / bool | -2 |
| quoted | adjust: the change to Quoted. reset / recount: true to change Quoted (neither used nor quoted = both) | optional | number / bool | 0 |
| reason | Why; shown in the history and audit log | required | string | 2 units returned on order 100007192 |
| account_id | Whose count, for a customer group limit | for a customer group limit (or customer_id) | int | 16 |
| customer_id | Whose count, for a customer group limit and a customer without an account | see account_id | int | 2 |
| product_id | Which product, for an attribute value limit applied to each product | for "each" attribute value limits | int | 10 |
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
