Accounting
Fiscal years, the chart of accounts, and imported bank and tax account transactions.
Scope: accounting:read.
Fiscal years
GET /user-companies/{company_id}/fiscal-years
Lists the fiscal years configured for the company. Fiscal years are integers (1, 2, 3, …) and are required to scope the account and verification endpoints.
Chart of accounts
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/accounts
The chart of accounts belongs to a fiscal year, so the same company can have a different chart in different years.
Response fields:
Field |
Description |
|---|---|
|
Identifier of the chart. |
|
Name of the chart. |
|
The fiscal year the chart belongs to. |
|
Array of account objects. |
|
Number of accounts. |
Each account object:
Field |
Description |
|---|---|
|
Account number, four digits in the Swedish BAS standard. |
|
Account name. |
|
See below. |
|
VAT code associated with the account. |
|
SRU codes used for tax reporting. |
|
Balance timing for the account. |
Account types, derived from the Swedish BAS standard:
asset, liability_equity, revenue, cost_of_goods, expense,
personnel, financial, other.
Single account
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/accounts/{account_number}
Returns chart_id, chart_name, fiscal_year and a single account
object.
Bank accounts
Imported bank statement data, scoped to a fiscal year.
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/bank-accounts
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/bank-accounts/{account}
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/bank-accounts/{account}/items
The items endpoint lists imported transactions and accepts:
Parameter |
Description |
|---|---|
|
|
|
|
|
Maximum number of items. |
|
Offset into the result set. |
Tax accounts
Imported Skatteverket tax account data, with the same shape as bank accounts.
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/tax-accounts
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/tax-accounts/{account}
GET /user-companies/{company_id}/fiscal-years/{fiscal_year}/tax-accounts/{account}/items
The items endpoint takes the same start-date, end-date, limit
and offset parameters.
Note
These endpoints return what has been imported into Economydesk. They are not a live connection to the bank or to Skatteverket. If a statement has not been imported, its transactions are not here.