Update Quantity Break
PATCH/api/admin/portal/pricing/quantity-breaks/:quantityBreak
Update a volume break.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Ladder rules. A volume ladder must never make a larger quantity cost more per unit, so a rung is rejected with 422 when it would:
- cost more per unit than any rung with a smaller minimum quantity (or less than one above it),
- sit above the tier's own base price for that product — a volume break outranks the base price, so a rung dearer than list would actually be charged,
- reuse a minimum quantity that already has a rung for this tier and product.
These rejections return {"error": "..."} with a message naming the conflicting rung. Field-level validation failures return the standard {"message", "errors"} shape.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.