Update Item Quantity
Payments
Update Item Quantity
Updates the quantity of an item for a customer. Can increase or decrease quantities, with optional expiration and negative balance control.
POST
Update Item Quantity
Documentation Index
Fetch the complete documentation index at: https://docs.hexclave.com/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The type of customer
Available options:
user, team, custom Example:
"user"
The ID of the customer
Example:
"user_1234567890abcdef"
The ID of the item to update
Example:
"credits"
Query Parameters
Whether to allow the quantity to go negative
Available options:
true, false Example:
"false"
Body
application/json
The amount to change the quantity by (positive to increase, negative to decrease)
Example:
100
Optional expiration date for this quantity change (ISO 8601 format)
Example:
"2024-12-31T23:59:59Z"
Optional description for this quantity change
Example:
"Monthly subscription renewal"
Response
200 - application/json
Successful response
The response is of type object.