---
title: "Action: Chart of accounts"
description: "Imports the chart of accounts, creating and updating financial, text, interval and sum-from accounts and their account intervals."
url: https://support.sapera.io/en/articles/603-action-chart-of-accounts
collection: "SyncTool"
updated: 2026-07-01
language: en
alternates: [da]
---

# Action: Chart of accounts

Imports the chart of accounts, creating and updating financial, text, interval and sum-from accounts and their account intervals.

Imports the chart of accounts, creating and updating financial, text, interval and sum-from accounts and their account intervals.

## How to use the action

1\. Select the action in the **Action** field. 2. Point to your data source – a **file** (CSV or Excel) or a **SQL query**. 3. Map the source columns to Sapera's fields in the column mapping (see _Source fields_ below). 4. Run **Compare** to see what will be created, changed or stay unchanged – without writing to Sapera. 5. Run **Update Sapera** to perform the import.

Use the **Allow create** and **Allow update** parameters to control whether new rows are created and whether existing ones are updated.

## How matching and updating works

Each row is matched on the **account number** (AccountNumber). Matching accounts are updated and new ones created.

-   The action processes **four account kinds** in order: text/headline accounts, financial accounts, interval accounts and sum-from accounts. The kind is driven by the AccountKind column (compared with the parameter type names).
    
-   Interval and sum-from accounts use FromAccountNumber/ToAccountNumber to define the account range they cover.
    
-   The **Delete unused accounts before import** parameter clears accounts that are not in use before the import. Direction: from file/SQL into Sapera.
    

## Key parameters

<table data-id="9007d17c-b605-4173-bde8-929d4a02dd1b" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="1181065f-c1fa-402c-aa05-801807b5377e" style="text-align: left;"><strong>Parameter</strong></p></td><td colspan="1" rowspan="1"><p data-id="3b776b8e-2512-435d-8db2-c4124a578d3a" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="34947b86-5a0a-464b-8a44-77d6d4a836b0" style="text-align: left;">AllowCreate</p></td><td colspan="1" rowspan="1"><p data-id="98a8170a-b8bd-4073-b9b8-4fc12a5763d1" style="text-align: left;">When enabled, accounts that do not already exist are created.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="0827d02c-27de-49c9-8410-8b8c5a5185b3" style="text-align: left;">AllowUpdate</p></td><td colspan="1" rowspan="1"><p data-id="6abe77d8-1e33-4619-89a8-5ff9a4ee0bb7" style="text-align: left;">When enabled, existing accounts are updated with the values from the source.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="54c41439-0ba5-4d3a-a4a3-abce39f80126" style="text-align: left;">BalanceSheetAccountKind</p></td><td colspan="1" rowspan="1"><p data-id="f82c6718-ee67-4367-9e32-c050adf27516" style="text-align: left;">The source value that marks a row as a balance-sheet (status) account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="0586b2e4-65a5-4a27-80e4-90ed059e5129" style="text-align: left;">DeleteNotUsedAccountsBeforeImport</p></td><td colspan="1" rowspan="1"><p data-id="2232a272-9e2b-455c-9518-46e8fcd5bd77" style="text-align: left;">When enabled, accounts that are not in use are deleted before the import runs.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="5f915e4a-0fb5-4fdd-ab61-962673e50bc0" style="text-align: left;">IntervalAccountType</p></td><td colspan="1" rowspan="1"><p data-id="981dd6b9-f8db-4501-b59a-a9bc9bfbef6b" style="text-align: left;">The source value that marks a row as an interval (sum) account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="abe24b81-39d0-4a96-b122-85598f8c523e" style="text-align: left;">ProfitAndLossAccountKind</p></td><td colspan="1" rowspan="1"><p data-id="4b6ea956-ceb7-4dc3-82b8-f9c5e43d6627" style="text-align: left;">The source value that marks a row as a profit-and-loss (operation) account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="f52fb87c-9606-4e5d-97a4-2664cdbc8966" style="text-align: left;">SumFromAccountType</p></td><td colspan="1" rowspan="1"><p data-id="027f0b5d-a1f9-4977-864f-e435668f1be1" style="text-align: left;">The source value that marks a row as a sum-from account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="0fbd6803-cf2d-47ba-95a3-3dd474a326b5" style="text-align: left;">TextAccountKind</p></td><td colspan="1" rowspan="1"><p data-id="675f2ba0-c8ff-49c0-b0b3-526d14f7fbcb" style="text-align: left;">The source value that marks a row as a text (heading) account.</p></td></tr></tbody></table>

## Source fields

<table data-id="e31fad91-04ae-48f6-ab12-e5a76998cbc0" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="c1b9663a-a8cf-4180-802c-4ea812e2cbd9" style="text-align: left;"><strong>Field</strong></p></td><td colspan="1" rowspan="1"><p data-id="7cb7b1e7-a0db-4c68-a696-f037901017d1" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="a013ade5-9748-4fd9-859e-47917430d7fc" style="text-align: left;">AccountKind</p></td><td colspan="1" rowspan="1"><p data-id="028096e5-1572-4fab-8452-e019c4f1614b" style="text-align: left;">The kind of account, matched against the account-kind parameters to decide how the row is treated.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b8f2eb08-50e9-443d-aba3-56694fe268e7" style="text-align: left;">AccountNumber</p></td><td colspan="1" rowspan="1"><p data-id="a301fe28-6dfe-41a4-9d84-7077de3386bc" style="text-align: left;">The unique account number that identifies the account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="0e18aee6-24a3-4c64-bce3-6f59b5204f01" style="text-align: left;">ClosingAccountNumber</p></td><td colspan="1" rowspan="1"><p data-id="6fb32983-b8ed-41c6-8b7d-25279069a998" style="text-align: left;">The account number that this account is closed into.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="012d0c7e-d01a-4d54-9a37-e46b9ade4bb0" style="text-align: left;">Description</p></td><td colspan="1" rowspan="1"><p data-id="da7fc2f3-a6cd-49b6-bf37-b20e9cc947ff" style="text-align: left;">A longer description of the account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="e9cae227-9895-4531-9593-22e690467dc3" style="text-align: left;">DisplayName</p></td><td colspan="1" rowspan="1"><p data-id="994e09fc-8973-4d5b-8337-8058a140ac5b" style="text-align: left;">The name shown for the account.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="1a562d55-5460-4c5b-8eb3-1e202667fe32" style="text-align: left;">FromAccountNumber</p></td><td colspan="1" rowspan="1"><p data-id="e3e9c6fc-aee3-4270-a64f-ac4b3e4425d2" style="text-align: left;">The first account number in the range for interval and sum-from accounts.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="bf57ead1-9791-49fa-99f8-f5b0f823dae5" style="text-align: left;">IsEnabled</p></td><td colspan="1" rowspan="1"><p data-id="1c8bee35-b776-4299-a695-118633573642" style="text-align: left;">Whether the account is active.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="e55f44fb-e4a6-42ea-a7b6-e14f4bc6c18e" style="text-align: left;">IsEnabledForManualEntries</p></td><td colspan="1" rowspan="1"><p data-id="6100c41c-1f86-442f-b285-1eec68e60477" style="text-align: left;">Whether the account can be used for manual entries.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="8a544863-8f5e-4c02-b232-91dde4d4e06b" style="text-align: left;">ShowMovementsInDrafts</p></td><td colspan="1" rowspan="1"><p data-id="90fcbc84-7547-42ca-bfc4-ce4c63e94856" style="text-align: left;">Whether movements on the account are shown in drafts.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="178713f6-6026-4fb0-96b2-ccb8268d4444" style="text-align: left;"><strong>Standard account number</strong> (StandardAccountNumber)</p></td><td colspan="1" rowspan="1"><p data-id="c1d51f71-822c-4c90-9faf-1b34cde1a5af" style="text-align: left;">The account number in the Sapera standard chart of accounts to match this account to.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="856a05a7-6d5e-48b1-b190-18832cd80fe1" style="text-align: left;">ToAccountNumber</p></td><td colspan="1" rowspan="1"><p data-id="3e51f618-f53e-45ca-8b67-03a3aa377c13" style="text-align: left;">The last account number in the range for interval and sum-from accounts.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="6c1b2bef-2a16-404b-ba9c-d4997268b9e2" style="text-align: left;">VatType</p></td><td colspan="1" rowspan="1"><p data-id="12e5ed91-e4ff-45fb-9122-964a102c0682" style="text-align: left;">The VAT type code linked to the account.</p></td></tr></tbody></table>

* * *

See also the overview [SyncTool – actions](https://support.sapera.io/en/articles/547-synctool-handlinger.md).

* * *

**Want to know more?**

Read more in these related articles:

[

Standard parameters for all actions

The general parameters available on most SyncTool actions: step control, error handling, timeout, etc.

](https://support.sapera.io/en/articles/648.md)
