Skip to main content

Create Supplier Hold Reason

POST 

/api/supplier-hold-reasons

Adds a custom hold reason. Returns 201 with the reason.

Required scope: suppliers:write

Grant 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 with reason_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​

Created

Response Headers
    Content-Type