Update Customer Default Case Pack Rule
PUT/api/customers/:customer/case-pack-rules/default
Set the customer's default case pack rule, or clear it by sending ship_unit null. The response has the same shape as Get Customer Default Case Pack Rule, with a message of "Default case pack saved" or "Default case pack cleared".
customers:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: a Personal Access Token with the customers:write scope. Requires permission to edit customers.
Body fields:
- ship_unit (required, nullable): case | case_then_inner | inner | each | custom. Must be present; null clears the default.
- ship_pack_quantity (number, >0, max 100000): the pack size; required when ship_unit is custom and ignored otherwise.
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.