Menu
Getting started
Cookbooks
API reference
- Overview
- Companies
- Capabilities
- Measures
- Packages
- Unexplained
- Liquidity forecast
- Portfolio
- Customers
- Invoices
- Collections
- Articles
- Set-offs
- Suppliers
- Supplier invoices
- Supplier payment files
- Bank payments
- Expense claims
- Transactions
- Reconciliation
- Bank accounts
- POS sales
- Webshop orders
- Journal entries
- Voucher gap explanations
- Fiscal periods
- Accounts
- Accrual schedules
- Agreements and commitments
- Tax loss carry-forwards
- Fixed assets
- Documents
- Signing requests
- Company registers
- Capital events
- Owner tax
- Inbox items
- Dimensions
- Employees
- Salary runs
- Reports
- Budgets
- Imports
- Compliance check
- Deadlines
- Skatteverket
- Peppol
- Webhooks
- Operations
- Pending operations
- Health
- API key
- Service accounts
API reference
Every endpoint exposed by the Accounted REST API, grouped by resource. Auto-generated from the same Zod registry that powers the OpenAPI 3.1 spec, the MCP tool surface, and runtime validators: there is no separate doc-source to keep in sync.
Resources
Companies
List, create and read the companies the API key can access, and read and update their settings: payment, contact and invoicing, the tax and VAT profile, the skattekonto account, and the bookkeeping lock.
Capabilities
Which building blocks (the modules behind the OpenAPI tags) a company can use right now, each with a status, the reasons behind it and a resolution sentence. Read-only: the per-company module switch arrives later.
Measures
Defined figures an agent can quote: moms att betala, kundfordringar, banksaldo, resultat hittills and more. Each value is taken from the report a person sees, carries its definition and an explain call down to every account and line, and refuses with a reason instead of answering zero.
Packages
The packages a company switches (Lön, Kundfakturor, Kassa och webbshop, ...) with their status: on, off, winding down (switched off while obligations are open: visible, no new work starts), not in plan or not in country. Switching one on or off is staged for an owner or admin to approve.
Unexplained
The queue of differences that should be zero: kundreskontra against booked receivables, leverantörsreskontra against booked payables, bank against books, skattekonto against Skatteverket, declared moms not moved to the settlement account, and bank rows unbooked past the booking deadline. Each result is ok, unexplained or cannot_check with a reason, reads both figures from the reports a person sees, and explains itself down to the invoices, verifikat and bank rows behind it.
Liquidity forecast
Where the bank balance is heading: 30 days by day and 13 ISO weeks from the bank balance, open customer and supplier invoices, the bank payment queue, salary, taxes through the skattekonto, recurring invoices and forecast rows, each krona counted once and the lowest point flagged. Forecast rows are money expected that the books do not hold yet, upserted by your own key; they are not bookkeeping, so they are written directly under forecast:write.
Portfolio
Cross-company reads for keys that reach more than one company: one overview call over a membership-checked scope (all, byrå team, or explicit ids) instead of one call per company.
Customers
CRM-side: who you invoice. Business and individual (sole-trader) customers with VIES validation.
Invoices
Outbound invoicing: draft, send, mark paid, credit, PDF download. Mixed-rate VAT supported.
Collections
Overdue invoices handed to the collections provider the company activated: the candidates and their checks, the case on each invoice, actions on it (pause, resume, withdraw, dispute, or what the provider waits for), and booking what the provider collected and paid out. The handover and the escalations are staged for a person to approve in Accounted (?stage=true; a direct call answers STAGE_REQUIRED).
Articles
Read the article/product catalogue used to build invoice line items.
Set-offs
Kvittning: a counterparty that is both customer and supplier as one relation (open customer and supplier invoices, the net per currency, its set-offs), and setting an open customer invoice off against an open supplier invoice of the same counterparty. Served while the company has set-offs switched on.
Suppliers
AP-side counterparties. Mirrors customers on the supplier vertical.
Supplier invoices
AP lifecycle: register, approve, book (deferred booking), mark paid, credit. With ROT/RUT and reverse-charge support.
Supplier payment files
Betalfil (pain.001) for supplier invoices: preview what can be paid, create a batch, download the file for the bank, cancel.
Bank payments
Betalningar via banken for supplier invoices: prepare and approve payment orders, read their bank status, cancel, check the company verification, and fetch the link where a person signs with BankID. Agents prepare; a person signs.
Expense claims
Utlägg: costs an owner or employee paid privately. Register, list, delete, record the payout, and match a bank payout to open claims.
Transactions
Bank transactions: ingest, categorise, match to invoices, reconcile.
Reconciliation
Run bank-to-ledger reconciliation and read the current matching status.
Bank accounts
The company's bank accounts (cash accounts, whose ids filter transactions), the bank connections that sync them and the Open Payments bank feed (reachable banks, connections, switch progress, the signatory link).
POS sales
Point-of-sale (kassasystem) venues connected through Accounted Connect, the business days they deliver, and booking a day as its daily takings voucher (gemensam verifikation) with the day report as underlag.
Webshop orders
The order and refund rows the Shopify, WooCommerce and Zettle syncs deliver (VAT per rate, country, booking status), one order with the booking the Orders page would prefill, and booking one order with your own lines, linked to the order with its orderunderlag.
Journal entries
The bookkeeping engine surface: verifikation lifecycle (draft, commit, reverse, correct).
Voucher gap explanations
Documented explanations for gaps in the voucher series, per BFNAR 2013:2.
Fiscal periods
Fiscal years and their lifecycle: create, edit, lock, unlock, close, year-end, opening balances, FX revaluation, and klarmarkering of years closed in a previous system. Under K3: the deferred tax inputs of a year, the 18.7 model for own development (accounting policies), and the transition to K3 (kap. 35: start, relief and note facts, commit).
Accounts
The chart of accounts (BAS): read, add, edit, activate, deactivate and delete unused accounts.
Accrual schedules
Periodiseringar: re-plan the months of a schedule that are not yet posted, with a new period end and/or the day each month books on. Posted months stay as they are; the remainder is split equally.
Agreements and commitments
What the company has signed and promised, for companies where it is switched on: agreements (rent, leases, loans, subscriptions, insurance, permits, IP rights, domains, guarantees) with their expected payments observed against the bank and their notice and end dates, ställda säkerheter and eventualförpliktelser with the årsredovisning note texts they give, and the group structure. Writes are registers only: nothing is booked.
Tax loss carry-forwards
The underskottsregister (IL 40 kap.): per fiscal year the deficit brought forward (INK2S 4.14 a), the spärrar after an ownership change (4.14 b, 4.14 c) and the deficit carried to the next year. Save a year with its spärrar computed; the year-end tax adjustments prefill 4.14 a from it.
Fixed assets
The anläggningsregister: register an asset (no voucher, the purchase is already booked), correct it while no depreciation is posted, and dispose it, which posts the avyttring voucher with gain or loss, VAT and jämkning. Also: a nedskrivning or its reversal on a balansdag, a K3 component replaced, a building's tax depreciation plan (INK2S 4.9), and the split on components at the transition to K3.
Documents
Underlag: multipart upload, list and read metadata, signed-URL download (15-min TTL), link to journal entries, delete an unlinked document.
Signing requests
BankID signing of archived PDFs: send a document to its signers (one link each, mailed when they have an address), read who has signed, remind a pending signer, cancel. Once everyone has signed, the signed PDF and the evidence package are archive documents. No endpoint signs: each signer signs in person with BankID.
Company registers
Bolaget: the aktiebok (share register) as of any date with its dated history, the share classes and their förbehåll, the board, VD, firmatecknare and revisor over time, the firmateckning, and the verkliga huvudmän derived from the aktiebok. Entries are permanent: a rattelse entry voids one. A personnummer is never sent or answered. The meetings (stämmor, styrelsemöten, per capsulam) with their decisions and minutes; an adopted election changes the roles when a person signs the minutes in Accounted.
Capital events
Bolaget: dividends from the stämma decision to the payout, split per holder from the aktiebok and checked against fritt eget kapital (ABL 17:3); the KU31 status per income year; aktieägartillskott; nyemission, fondemission and minskning av aktiekapitalet. Bookings post through the bookkeeping engine. The KU31 file is downloaded in Accounted only.
Owner tax
Bolaget: the K10 underlag per owner and income year (3:12 rules from 2026, each figure with its source), loans between the company and its owners, board, VD and related persons with the loan prohibition check (ABL 21 kap.) and the ledger reconciliation, and the KU20 status for interest paid to them. Nothing books. The KU20 file is downloaded in Accounted only.
Inbox items
The invoice inbox: list and read items, correct the extracted fields, convert an item to a supplier invoice, unmatch a transaction, stamp or delete an item.
Dimensions
Cost-centre / project dimensions and their values for tagging journal lines.
Employees
Payroll roster: CRUD with personnummer masking on list endpoints.
Salary runs
Payroll lifecycle: create, calculate, approve, mark paid, book, generate AGI XML, and close the vacation year.
Reports
Reports and filing: trial balance, P&L, balance sheet, GL, VAT with eSKD and the settlement, INK2 and NE-bilaga with SRU files, periodisk sammanställning, cash flow, KPI, behandlingshistorik, bokslutsbilagor, the audit trail, SIE export and more.
Budgets
Named budget versions per fiscal year with one default, amounts per resultatkonto (3000-8999), month and dimension tag in the SIE sign (revenue negative), saved all or nothing, filled from last year's actuals or spread over the months. Budget against actual is on the reports page.
Imports
Bulk async ingest: SIE files (Fortnox/Visma/BL/SpeedLedger/Bokio migrations) and bank statements (CSV per bank, Excel, camt.053).
Compliance check
Pre-flight verification: voucher gaps, year-end readiness, before submitting to Skatteverket.
Deadlines
The company's deadlines: the tax and filing deadlines generated from its tax settings and the ones added by hand, with due date, overdue and days left. List them and tick one off or put it back. A deadline is a reminder: ticking it books and files nothing.
Skatteverket
Skatteverket: filed VAT declarations and their decisions, AGI pre-validation, and syncing the skattekonto now.
Peppol
Peppol e-invoicing for the company: participant registration status, registering to receive, and requesting access. Sending an invoice over Peppol is on the invoices page.
Webhooks
Subscribe to events with HMAC-signed delivery, exponential retries, and dead-letter replay.
Operations
Poll long-running async operations (year-end closing, imports, currency revaluation).
Pending operations
The approval door for staged writes: list and read pending operations with their status and task_state, approve one (commit it and get the outcome) or reject it. A write sent with ?stage=true waits here until it is decided.
Health
Unauthenticated liveness check.
API key
What the calling key may do: its mode, scopes, and the companies it reaches with write access per company. Any valid key may call it.
Service accounts
An integration's own principal with a human sponsor: create, list, read and revoke service accounts, and mint or revoke their keys. Writes by their keys are recorded as the service account, acting for the sponsor.