Prompt
I'm building a product that needs chart of accounts mapping across customers
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
Got it — chart of accounts mapping across customers is usually about creating a canonical COA layer in your product, then mapping each customer’s native accounts into that standard model.
A good way to think about it:
1) Separate the layers
Use three layers:
- Customer native COA
Their raw accounts as imported from QuickBooks, Xero, NetSuite, ERP, etc. - Your canonical COA
A standard internal taxonomy your product uses for reporting/comparisons. - Reporting / output mapping
How canonical accounts roll up into metrics, categories, and dashboards.
2) Model the mapping as many-to-many
Avoid assuming 1:1 mapping.
Examples:
- One customer account can map to multiple canonical categories
- Multiple customer accounts can map to one canonical category
- Some accounts may be unmapped initially
Typical entities:
customersource_systemsource_accountcanonical_accountmapping_rulemapping_versionmapping_status(suggested,approved,rejected,deprecated)
3) Store metadata on accounts
Useful fields:
- account code
- account name
- parent account
- account type (asset/liability/equity/revenue/expense)
- normal balance
- active/inactive
- source system
- effective dates
- currency
- department/class/location tags if available
4) Support hierarchical rollups
COAs are often tree structures. You’ll likely want:
- parent-child relationships
- rollup categories
- leaf vs summary accounts
- ability to preserve source hierarchy while mapping to canonical groups
5) Use versioning
Mappings change over time, so track:
- effective_from
- effective_to
- created_by
- approved_by
- confidence score / reason
- audit trail
This is important for:
- historical reporting
- restatements
- customer-specific customizations
6) Consider rules + manual overrides
Good mapping systems usually combine:
- deterministic rules: by code prefix, account name keywords, account type
- ML/heuristics suggestions
- human review and overrides
Example rules:
4xxx→ revenue- names containing
rent→ occupancy expense - accounts of type
bank→ cash equivalents
7) Design for exceptions
Common edge cases:
- misclassified customer charts
- duplicate or merged accounts
- unconventional naming
- multi-entity books
- intercompany accounts
- tax-specific accounts
- contra accounts
- zero-balance inactive accounts
8) Canonical taxonomy example
A canonical COA might look like:
- Revenue
- Product Revenue
- Service Revenue
- Other Income
- COGS
- Hosting Costs
- Freight
- Merchant Fees
- Operating Expenses
- Payroll
- Marketing
- G&A
- R&D
- Balance Sheet
- Cash
- A/R
- Prepaids
- Fixed Assets
- A/P
- Accrued Liabilities
- Debt
- Equity
9) Practical product UX
Useful UX patterns:
- import customer COA
- auto-suggest mappings
- show confidence and rationale
- bulk approve/edit
- highlight unmapped accounts
- compare with historical mappings
- allow customer-specific overrides
10) If you want a schema, here’s a starter
customers
source_systems
source_accounts (
id,
customer_id,
source_system_id,
source_account_id,
code,
name,
type,
parent_source_account_id,
is_active,
metadata_json
)
canonical_accounts (
id,
code,
name,
type,
parent_canonical_account_id,
is_active
)
account_mappings (
id,
customer_id,
source_account_id,
canonical_account_id,
mapping_type, -- exact, rule_based, manual, ml_suggested
confidence_score,
effective_from,
effective_to,
approved_by,
status
)
If you want, I can help with any of these next:
- a full data model
- a mapping algorithm
- a database schema
- a customer onboarding flow
- a canonical COA design for your domain
Brands