Counts / Change

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:

NameDescriptionRequiredTypeExample Value
actionadjust, reset or recountrequiredstringadjust
usedadjust: the change to Used (e.g. -2). reset / recount: true to change Usedoptionalnumber / bool-2
quotedadjust: the change to Quoted. reset / recount: true to change Quoted (neither used nor quoted = both)optionalnumber / bool0
reasonWhy; shown in the history and audit logrequiredstring2 units returned on order 100007192
account_idWhose count, for a customer group limitfor a customer group limit (or customer_id)int16
customer_idWhose count, for a customer group limit and a customer without an accountsee account_idint2
product_idWhich product, for an attribute value limit applied to each productfor "each" attribute value limitsint10
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The limit's rule_id.

Body Params
string
integer
string
integer
Response

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