Get Account Map
GET/api/product-account-map
Where the active catalog posts for one account type, as a grid of groups × accounts. Each product counts once, at its product-level account (override, rule or company default).
accounting:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the accounting:read scope.
Response (data):
account_type,group_by.totals—active_products,accounts_in_use,on_company_default,anomalies.company_default—{id, code, name, archived_at}ornull.has_rules_or_overrides— whether any rule or product override sets this account type.columns— accounts in use (ordered by code), then the company default (key: default), thenkey: unmappedwhen some products resolve to no account:{key, account, is_company_default}.rows— one per group, largest first, with a trailing "(no …)" row (id: null) for products without a value:{id, name, product_count, cells}.cellsis keyed by columnkey:{count, sources: {rule|product_override|company_default|unmapped: count}, anomalies}. When grouped by category, rows are top-level categories withchildrenfor their direct sub-categories (plus a "(directly)" row for products on the top-level category itself).channel_note— for Sales, COGS and Discount, a reminder that a sales channel can set its own account (nullotherwise).
Request
Responses
- 200
- 401
- 403
- 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.
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.