Create Supplier Hold Reason
POST/api/supplier-hold-reasons
Adds a custom hold reason. Returns 201 with the reason.
suppliers:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body
label(string, required, max 80).key(string, optional, max 48, lowercase letters, numbers and underscores): defaults to a key derived from the label. Must be unique.import_aliases(array of strings, max 50, each max 16): supplier codes that resolve to this reason when a hold is placed withreason_code. Matching is case-insensitive, and an alias may belong to one reason only.requires_note(boolean): require a note on holds with this reason.sort_order(integer, 0–65000): display position.
Reason fields: id, key (stable identifier used on holds; never changes), label, import_aliases (supplier codes that map to this reason, e.g. BKO), requires_note (holds with this reason must carry a note), is_system (built-in: can be renamed or archived but not deleted), sort_order, archived, archived_at, created_at, updated_at.
Authentication: Requires Bearer token.
Requires permission: settings.update
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
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.
Unprocessable Entity
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.