Skip to main content

Get Account Rule

GET 

/api/product-account-rules/:rule

Get one account rule, archived or not.

Required scope: accounting:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token with the accounting:read scope.

Rule fields: id, name, position (1 = evaluated first), is_active, deactivated_reason (why the rule was switched off automatically — e.g. a category, brand, supplier or tag it used was deleted; null while active), archived_at, channel_accounts_take_priority, specificity (number of condition groups used), conditions (normalized), conditions_summary (plain-English sentence), condition_labels (names for the category / brand / supplier / tag ids; a deleted record shows as #id (deleted)), accounts (per account type: {id, code, name, type, archived_at} or null), match_count (active products currently taking at least one account from this rule), applying.tracked_job_id (the re-apply run in progress, if any), created_by / updated_by ({id, name}), created_at, updated_at.

Request​

Responses​

OK

Response Headers
    Content-Type