Skip to main content

List Account Anomalies

GET 

/api/product-account-map/anomalies

Products whose account for one type differs from at least 80% of the other active products in their primary category (categories with 5 or more active products). Anomalies are a prompt to check, never a block. Dismissed anomalies are left out until the product moves to a different account.

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.

Row fields: product_id, sku, name, category ({id, name}), account_type, account ({id, code, name, archived_at}), source (rule, product_override, company_default or unmapped), category_majority ({account, count, total} — the category's usual account and how many of its products use it), rule_would_apply (a rule sets this type for the product, so clearing its override would hand it to the rule), rule ({id, name} of that rule, or null).

Standard paginated response; default 10 per page (max 500).

Request​

Responses​

OK

Response Headers
    Content-Type