Year-Ends
A year-end is a company’s closing of one income year: its key figures and statements, the controls that must pass before the year can be closed and filed, the closing entry, the tax bridge, and the record of inputs the ledger doesn’t hold (opening tax values, group contributions, the proposed dividend, assessments of warnings, accounting choices).
The year-end is calculated from the ledger as it is now on every request; only the record of inputs is stored. Snapbot’s year-end tools on /mcp read and write the same year-end.
The year-end is for aksjeselskap (AS and ASA) with early access (the early_access setting, see Client Account Settings).
Every write answers with the year-end as it is afterwards, in the same shape as Get Year-End.
Endpoints
Get Year-End
GET /api/v2/year-ends/{year}
The year-end for an income year.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| year | integer | The income year, e.g. 2025 |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_account_id | integer | Yes | The company |
Response
{
"client_account_id": 7,
"year": 2025,
"state": "OPEN",
"rules": "YearEndRulesNO2025",
"currency_code": "NOK",
"key_figures": [
{
"key": "driftsinntektSum",
"label": "Sum driftsinntekter",
"amount": 1250000.0,
"prior_amount": 980000.0,
"is_sum": true
}
],
"equity": {
"opening": 300000.0,
"result": 145000.0,
"dividends": -100000.0,
"group_contributions": 0.0,
"other_changes": 0.0,
"closing": 345000.0
},
"proposals_awaiting_approval": 1,
"controls": [
{
"code": "LOSS_CARRYFORWARD_MISSING",
"severity": "ERROR",
"subject_key": "",
"message": "The record has no loss carried forward from last year's tax return, so none is used. Enter it from the return, 0 if it has none, and the return's saldo groups and assets' tax values too.",
"fix": "INPUT",
"fix_section": "opening_positions",
"fix_question": null,
"status": "OPEN",
"review_comment": null,
"blocks": true,
"amounts": {},
"cited": {}
}
],
"blocking_controls": 1,
"closing_entry": {
"date": "2025-12-31",
"currency_code": "NOK",
"lines": [
{ "account": "8300", "amount": 40920.0, "purpose": "PAYABLE_TAX" },
{ "account": "2500", "amount": -40920.0, "purpose": "PAYABLE_TAX" }
]
},
"thread_id": 5521,
"review": {
"status": "COMPLETED",
"created_at": "2026-02-01T06:00:12.123456+00:00",
"completed_at": "2026-02-01T06:03:40.654321+00:00"
},
"filings": [
{ "kind": "TAX_RETURN", "revision": null, "purpose": null, "status": null, "submitted_at": null },
{ "kind": "ANNUAL_ACCOUNTS", "revision": null, "purpose": null, "status": null, "submitted_at": null }
],
"income_and_tax": {
"currency_code": "NOK",
"business_income": 186000.0,
"group_contributions_received": 0.0,
"loss_carryforward_opening": null,
"loss_carryforward_used": 0.0,
"group_contributions_given": 0.0,
"group_contributions_given_deducted": 0.0,
"income": 186000.0,
"tax_payable": 40920.0,
"loss_carryforward_closing": 0.0,
"interest_limitation": {
"net_interest_expense": 0.0,
"threshold": 5000000.0,
"carried_forward_opening": null,
"may_apply": false
},
"group_contributions": []
},
"income_statement": [ ... ],
"balance_sheet": [ ... ],
"tax_bridge": { ... },
"deferred_tax": { ... },
"opening_positions": [ ... ],
"filed_assets": [ ... ],
"group_contributions": [ ... ],
"proposed_dividends": [ ... ],
"control_reviews": [ ... ],
"elections": [ ... ],
"fixed_assets": { ... }
}
Amounts are JSON numbers. Statement figures are in the company’s currency_code (its accounting currency); Norwegian tax values (income_and_tax, deferred_tax, opening positions, filed assets, group contributions) are in NOK.
Response Fields
| Field | Type | Description |
|---|---|---|
| state | string | OPEN, CLOSED (nothing left to book in the closing entry and no control blocks, other than a change since filing) or FILED (every filing the year’s rules ask for is in force). None of them is stored: each is read from the ledger and the filings |
| rules | string | The name of the rule set the year is calculated by, for the company’s country and income year |
| key_figures | array | Statement lines: operating income, operating result, result before tax, tax, annual result, total assets, total equity and total liabilities. Each line has key, label, amount, prior_amount (last year) and is_sum |
| equity | object | The movement in equity over the year |
| proposals_awaiting_approval | integer | Snapbot’s inputs that wait for a person to approve or reject them |
| controls | array | What is wrong or missing. See Controls |
| blocking_controls | integer | How many controls block |
| closing_entry | object | What closing the year would book now: its date, currency_code and lines (account, amount with debit positive and credit negative, purpose: PAYABLE_TAX, DEFERRED_TAX, DIVIDEND or RESULT_TO_EQUITY). Empty lines when the ledger already holds it |
| thread_id | integer | null | The year-end’s thread with Snapbot, once opened |
| review | object | null | Snapbot’s latest review of the year-end: status (PENDING, COMPLETED, FAILED or CANCELLED), created_at, completed_at |
| filings | array | One per kind the year’s rules file (TAX_RETURN, ANNUAL_ACCOUNTS), with the filing in force: revision, purpose (ORIGINAL, CORRECTION, APPEAL, IMPORTED), status (SUBMITTED or ACCEPTED) and submitted_at; all null when no filing of the kind is in force, also when one is only a draft or was rejected |
| income_and_tax | object | null | The taxable income and the tax payable, with the loss carried forward and the interest limitation (skatteloven § 6-41). null when the accounts aren’t kept in NOK. loss_carryforward_opening and interest_limitation.carried_forward_opening are number | null: null when the record has no value, 0 when one was entered as 0 |
| income_statement, balance_sheet | array | Every statement line with an amount this year or last |
| tax_bridge | object | From the result to the taxable result: permanent additions and deductions, temporary_differences (book and tax value, this year and last), saldo_groups and gain_loss_accounts |
| deferred_tax | object | null | The deferred tax or tax asset: currency_code (NOK), the differences, the loss_carryforward netted against them, the basis, the rate, the amount (positive a liability, negative an asset) and recognised (number | null: what the balance sheet holds; 0 for an asset left out, null while the company hasn’t made the DEFERRED_TAX_ASSET election). null when the accounts aren’t kept in NOK |
| opening_positions … elections | array | The record’s inputs, one array per section. See Record Sections |
| fixed_assets | object | The fixed asset register as the year-end reads it: each asset’s book and tax movement, the balances on asset accounts without an asset (untagged), and the filed assets no asset carries on (unmatched_filed_assets) |
Controls
| Field | Type | Description |
|---|---|---|
| code | string | What the control checks, e.g. BALANCE_SHEET_DOES_NOT_BALANCE, LOSS_CARRYFORWARD_MISSING, DIVIDEND_ABOVE_DISTRIBUTABLE |
| severity | string | ERROR must be fixed; WARNING must be fixed, or assessed by a person with a comment; INFO only tells |
| subject_key | string | What within the code the control is about ("" for the year-end as a whole). The code and the subject key name the control, also to an assessment |
| message | string | What is wrong |
| fix | string | null | What clears it: INPUT (an input to fix_section), ASSET (the asset register), ENTRY (a journal entry), CLOSE (the closing entry), ASK (an answer from the company to fix_question), ASSESS (a person’s decision) or UNSUPPORTED (Snapbooks can’t do it yet) |
| status | string | OPEN, or ASSESSED when a person accepted the warning (review_comment says why) |
| blocks | boolean | Whether it stops filing the year, and closing it unless the fix is CLOSE: every ERROR, and a WARNING that is OPEN |
| amounts | object | The figures the message and an assessment rest on. A change in them opens an assessed warning again |
| cited | object | Figures the message names that an assessment doesn’t rest on |
Record Items
Each item in the record sections carries these fields next to its section’s own (see Record Sections):
| Field | Type | Description |
|---|---|---|
| id | string | The item’s id, for Decide on a Year-End Input |
| status | string | PROPOSED (Snapbot’s, waiting for a person), APPROVED or REJECTED. Proposed items already count in the figures (an assessment of a warning only once approved); a rejected item is kept, and the calculation leaves it out |
| source | string | USER, SNAPBOT, IMPORT (read from last year’s filed tax return, or a choice carried from last year’s year-end) or DOCUMENT |
| source_ref | string | null | Where it came from, e.g. tax_return:{id}, year_end:{id} (last year’s year-end) or a document id |
| prepared_by_id, approved_by_id, rejected_by_id | integer | null | The users who wrote and decided it |
| at, decided_at | string | null | When it was written and decided (ISO 8601) |
Save Year-End Inputs
POST /api/v2/year-ends/{year}/items
Saves a person’s inputs to one section of the record. They are approved as written. An item replaces the one in the section with the same identity (see Record Sections), as the values are levels, not movements. The year-end is stored the first time something is saved to it.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| client_account_id | integer | Yes | The company |
| section | string | Yes | opening_positions, filed_assets, group_contributions, proposed_dividends, control_reviews or elections |
| items | array | Yes | At least one item, in the section’s shape |
Example Request
{
"client_account_id": 7,
"section": "opening_positions",
"items": [
{ "category": "SALDO_GROUP", "key": "d", "amount": 84000, "currency_code": "NOK" },
{ "category": "LOSS_CARRYFORWARD", "amount": 250000, "currency_code": "NOK" }
]
}
Response
201 Created with the year-end, as Get Year-End answers it.
Decide on a Year-End Input
PATCH /api/v2/year-ends/{year}/items/{item_id}
A person approves or rejects one of Snapbot’s proposals, or withdraws (rejects) an approved input. A rejected item stays in the record until an item with the same identity replaces it. Approving an assessment of a warning takes the control’s figures as they are now.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| year | integer | The income year |
| item_id | string | The item’s id from the record |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| client_account_id | integer | Yes | The company |
| status | string | Yes | APPROVED (a PROPOSED item only) or REJECTED (a PROPOSED or APPROVED item) |
Example Request
{
"client_account_id": 7,
"status": "APPROVED"
}
Response
200 OK with the year-end, as Get Year-End answers it.
Record Sections
The sections and their items for Norwegian companies. The identity says which items are the same item, so saving one again replaces it.
opening_positions
The tax values carried in from last year’s tax return, in NOK.
| Field | Type | Required | Description |
|---|---|---|---|
| category | string | Yes | SALDO_GROUP, GAIN_LOSS_ACCOUNT, LOSS_CARRYFORWARD, INTEREST_CARRYFORWARD (skatteloven § 6-41), CONDITIONAL_GAIN (skatteloven § 14-70) or ASSET_TAX_VALUE |
| key | string | For SALDO_GROUP and ASSET_TAX_VALUE |
SALDO_GROUP: a pooled group, a, b, c, d, j or acd (the others are given per asset as ASSET_TAX_VALUE). ASSET_TAX_VALUE: the id of one of the company’s assets. GAIN_LOSS_ACCOUNT: the gain and loss account’s identifier as filed. CONDITIONAL_GAIN: the object’s identifier as filed. Give these two a key whenever the company has more than one, or each replaces the other. LOSS_CARRYFORWARD and INTEREST_CARRYFORWARD take no key |
| identifier | string | No | SALDO_GROUP only: the saldo as filed, one per business and municipality, and one per building in group j. Leave it out for a group’s only saldo |
| asset_id | integer | No | A j saldo only, with its identifier: the building asset it is |
| filed_identity | string | No | ASSET_TAX_VALUE only: the filed asset it carries on, as KIND:identifier (see filed_assets) |
| amount | number | Yes | The tax value. A loss on the gain and loss account is negative; LOSS_CARRYFORWARD, INTEREST_CARRYFORWARD, CONDITIONAL_GAIN and ASSET_TAX_VALUE can’t be |
| currency_code | string | Yes | NOK |
| building_name | string | null | Response only | A j saldo’s building, by name |
Identity: category:key, or category:key:identifier for a saldo with an identifier.
filed_assets
Assets last year’s return carried with a tax value of their own (saldo groups e to i, straight-line or not depreciable), as the return named them.
| Field | Type | Required | Description |
|---|---|---|---|
| kind | string | Yes | SINGLE_SALDO, STRAIGHT_LINE or NOT_DEPRECIABLE |
| identifier | string | Yes | The identifier it was filed with |
| description | string | No | |
| saldo_group | string | No | |
| closing_tax_value | number | Yes | The tax value at the end of last year |
| currency_code | string | Yes | NOK |
| acquisition_date | string | No | YYYY-MM-DD |
| cost | number | No | A straight-line asset’s cost |
| lifetime_months | integer | No | A straight-line asset’s lifetime, more than 0 |
| filed_identity | string | Response only | KIND:identifier, the value an ASSET_TAX_VALUE’s filed_identity takes to carry it on |
Identity: kind:identifier.
group_contributions
Konsernbidrag given and received for the year, one per direction and counterparty, in NOK.
| Field | Type | Required | Description |
|---|---|---|---|
| direction | string | Yes | RECEIVED or GIVEN |
| counterparty_organization_number | string | Yes | The counterparty’s 9-digit organisation number |
| with_tax_effect | number | No | The part with tax effect (default 0, not negative) |
| without_tax_effect | number | No | The part without tax effect (default 0, not negative) |
| booked_on_account | string | No | RECEIVED only: the result account (3000–8799) it is booked on, so it is taxed as a group contribution and not as a dividend |
| currency_code | string | Yes | NOK |
| counterparty_name | string | No | The counterparty’s name, as the tax return names it |
| relationship | string | No | What the counterparty is to the company: PARENT, SUBSIDIARY, SUBSIDIARY_OF_SUBSIDIARY, SISTER or OTHER |
| relationship_description | string | No | How they are related, for OTHER: entered, or left to the ownership when relationship is left out |
| voting_restriction | boolean | No | Whether a limit on voting rights applies |
Identity: direction:counterparty_organization_number.
The tax return names each counterparty, its relationship to the company and whether a limit on voting rights applies. Where an item leaves them out, the company’s ownership at the end of the year gives what it can: the name, the relationship within a group linked above nine tenths of the shares and votes at every tier, and no limit where votes follow shares. income_and_tax.group_contributions shows each one as the return reports it, null where neither says. The controls GROUP_CONTRIBUTION_DETAILS_MISSING (what neither gives), GROUP_CONTRIBUTION_OWNERSHIP (a contribution with tax effect the ownership doesn’t confirm, sktl. § 10-4) and GROUP_CONTRIBUTION_GIVEN_BEYOND_INCOME (more given with tax effect than the income left after the loss carried forward, sktl. § 10-2) say what is missing.
proposed_dividends
The dividend the board proposes to distribute on the year’s accounts, one per share class. The closing entry books it as a liability; 0 when the board proposes none.
| Field | Type | Required | Description |
|---|---|---|---|
| share_class | string | No | ORDINARY (default), CLASS_A, CLASS_B, CLASS_C, PREFERRED or OTHER |
| total_amount | number | Yes | Not negative |
| currency_code | string | Yes | The company’s accounting currency |
Identity: share_class.
control_reviews
A person’s assessment of a warning among the year’s controls, saying why it is acceptable as it is. An approved assessment stops the warning blocking until its amounts change. Only the controls the year’s rules let a person assess are taken; the others must be fixed.
| Field | Type | Required | Description |
|---|---|---|---|
| control_code | string | Yes | The control’s code |
| subject_key | string | No | The control’s subject_key (default "") |
| comment | string | Yes | Why it is acceptable |
Identity: control_code:subject_key. The year must have that control now.
elections
The choices the accounting rules leave the company, one per election.
| Field | Type | Required | Description |
|---|---|---|---|
| election | string | Yes | DEFERRED_TAX_ASSET: whether a net deferred tax asset is recognised. Only an AS may choose; a small company may leave it out (NRS 8 § 6.1.1.2.1) |
| choice | string | Yes | RECOGNISED or NOT_RECOGNISED |
Identity: election.
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | common.validation_error |
A missing JSON body; items that isn’t a non-empty list; an unknown section; an item that doesn’t pass its section’s checks (the message says which); a status other than APPROVED or REJECTED; an assessment of a control the year doesn’t have |
| 400 | year_end.unsupported_income_year |
Snapbooks has no year-end rules for the company’s country and this income year |
| 400 | year_end.unsupported_company_type |
The company isn’t an aksjeselskap (AS or ASA) |
| 400 | year_end.unclassified_accounts |
Some accounts with postings have no line in the annual accounts |
| 403 | year_end.access_denied |
A missing or non-integer client_account_id, or no access to the company |
| 403 | year_end.early_access_required |
The company doesn’t have early access |
| 404 | year_end.item_not_found |
PATCH: the year-end isn’t stored yet, or has no input with this item_id |
| 409 | year_end.item_already_decided |
PATCH: approving an item that isn’t PROPOSED, or rejecting one already rejected |
Business Rules
- The year-end is calculated from the ledger on every request; only the record of inputs is stored. Edit journal entries to change the figures, and the record for what the ledger doesn’t hold
- A person’s inputs are approved as written. Snapbot’s are proposals until a person approves or rejects them, and Snapbot never replaces an input a person approved, nor proposes again what a person rejected
- Opening a year-end proposes the opening tax values and filed assets from last year’s tax return, when Snapbooks has it, and the elections from last year’s year-end (
source: "IMPORT"). Until the year’s record holds an election, the calculation uses last year’s choice - A rejected input is kept for the history and left out of the calculation
Related Resources
- Tax Returns - Filing the skattemelding for the year
- Yearly Accounts - Filing the årsregnskap for the year
- Assets - The fixed asset register the year-end reads
- Client Account Settings - The
early_accesssetting the year-end requires