View as Markdown

Changelog

The changes to the public API that integrators must know, newest first. The contract is the public schema, /docs/api/openapi.json. A change that is not listed here only adds something: a new operation, a new optional parameter, a new field in a response, or a new error code.

A breaking change (a removed operation or field, a new required parameter, a changed type) is always listed here, with what to change.

02.12.2026: a new permission, bank_payments.prepare

permissions in GET /api/companies/{company_id}/ can list a new value, bank_payments.prepare: the right to prepare a bank payment file of the purchase invoices to pay. Only a session of a person holds it, never an API key. A client that refuses an unknown value of a closed enum must accept it.

02.12.2026: what the accountant needs, and two new permissions

New operations for what the accountant needs from the client company:

  • GET /api/companies/{company_id}/needs-you/ lists everything the client must do: the requests of the accountant, the invoices to check, the missing receipts, and what waits for the accountant. Each item has its url and answerable_by.
  • GET /api/companies/{company_id}/requests/{request_id}/ reads one request with its history.
  • POST .../requests/{request_id}/answer/ answers a question or the receipt of a bank line; POST .../requests/{request_id}/defer/ leaves it to a person. A request that only a person settles answers 403 human_actor_required with its url.

permissions in GET /api/companies/{company_id}/ can list two new values, requests.read and requests.answer. A client that refuses an unknown value of a closed enum must accept them. Bank transactions have a new field and filter, receipt_waits_for (client or accountant). OAuth has two new scopes, requests:read and requests:answer; read and write include them.

01.12.2026: post and discard an invoice, and the Sales invoices guide

Two invoice operations are now public:

  • POST /api/companies/{company_id}/invoices/{invoice_id}/post books an issued sales invoice: the receivable, the revenue and the VAT of its month. An issued invoice that is not posted is in no report and in no VAT return. It worked with an API key before, but it was not in the docs.
  • POST /api/companies/{company_id}/invoices/{invoice_id}/discard deletes a sales draft that was never issued. The books keep it as void.

The answer of POST /api/companies/{company_id}/invoices has a new optional field, vat_notes: the VAT code that Oscar filled for a line with none, and a code that is unusual for the customer.

The new guide Sales invoices shows the whole flow: record a draft, issue it, post it, get its PDF, and correct it with a credit note.

25.11.2026: new values of three enums, and new fields for VAT dates and payroll (breaking)

Three enums of responses have new values. A client that refuses an unknown value of a closed enum must accept them.

  • counter_role of the exemption of a bank transaction (GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/): share_issue_liability, unregistered_capital, fx_financial, loan_payable_long_term, tax_interest, fines, equity_payout_payable.
  • kind of money_in of the same answer: share_issue (money for new shares that are not in the register yet).
  • basic_exemption of an employee and of an employee of a pay run: pension (the exemption at pension age).

New optional fields of the invoice commands: vat_point_rule of a revision, vat_use and no_vat_reason of a line, declared_vat_date of POST .../invoices/{invoice_id}/revise. Without them a command does what it did before, with one exception: a purchase line of a company whose books OscarAI keeps, that may be a car cost or a meal and has no vat_use, gets car_private or entertainment, and the accountant checks it.

New fields in responses:

  • A revision of an invoice: vat_point_rule, vat_end_date, vat_date_rule; its lines: vat_use, no_vat_reason, no_vat_reason_source, no_vat_reason_classified; a journal entry: source_part; the issue of an invoice: warnings.
  • A pay run: agreed_payday; its employees: bonus_period_from, bonus_period_to, bonus_due, leaves.

25.11.2026: a new permission, tax.refund_request

permissions in GET /api/companies/{company_id}/ can list a new value, tax.refund_request: the right of the owner to ask the firm to get the free balance of the prepayment account back from EMTA. Only a session of the person holds it, never an API key. A client that refuses an unknown value of a closed enum must accept it.

22.11.2026: business trips, and the permission trips.write

New operations for the business trips of a company and their daily allowance:

  • GET /api/companies/{company_id}/trips/ and POST .../trips/ list and create trips; GET and PATCH .../trips/{trip_id}/ read and change one.
  • POST .../trips/preview/ computes the daily allowance day by day, with no write.
  • POST .../trips/{trip_id}/submit/ sends a decided trip of a managed company to the firm, and POST .../trips/{trip_id}/costs/ links a purchase invoice or a receipt to a trip.
  • GET .../trips/{trip_id}/decision.pdf downloads the trip decision, and GET /api/companies/{company_id}/travellers/{related_party_id}/ reads the travel fields of a person.

A board member decides and posts a trip in the app: no API key can do it.

GET .../trips/ takes a repeatable invoice_id filter: the trips that hold any of these purchase invoices as a cost. A trip names its destinations with their places (legs), a posted trip the day its allowance is booked on (booked_on) and its journal entry (core_entry_id), and each decision the allowance it states (amount_minor). trip_decision_outdated (409) says that the allowance changed since the decision: a board member decides the trip again.

The Permission enum has a new value, trips.write (create and change trips). It shows in permissions of GET /api/companies/{company_id}/. A client that refuses an unknown value of a closed enum must accept it.

20.11.2026: companies only, no organization (breaking)

The API has no organization any more. Every access (members, invitations, API keys, OAuth connections, the audit log) belongs to one company.

  • GET /api/companies/ (permission companies.read) lists the companies that the caller can reach, newest first, one page at a time. Use it to find the id of your company.
  • Removed: GET /api/organizations/, GET /api/organizations/{organization_id}/ and GET /api/organizations/{organization_id}/companies/. Call GET /api/companies/ instead.
  • Removed fields: organizations of GET /api/me/, and organization_id of a company (GET /api/companies/{company_id}/, the companies of GET /api/me/).
  • Renamed permissions: organization.read is now companies.read, and organization.manage is now companies.manage. permissions of GET /api/companies/{company_id}/ lists the new names.
  • An API key belongs to one company and reaches that company only. A key made before keeps working, with no change.
  • An OAuth token reaches the companies that the user chose on the consent page. With one company there is no choice; with several, the user ticks at least one. There is no "every company" choice: a new company needs a new connection. A token made before keeps working, with no reconnect.

09.11.2026: an OAuth token can reach several organizations

On the consent page the user can now tick more than one organization. The access token then reaches the companies of each ticked organization, with the user's own role in each one, and nothing else. A token of one organization works as before.

  • GET /api/organizations/ and GET /api/me/ list exactly the organizations of the token. Do not assume one organization: read the list.
  • A company outside the organizations of the token answers 404 not_found.
  • A refresh keeps the organizations, except one that the user can no longer reach. With none left, the refresh fails with invalid_grant.
  • An API key still belongs to one organization.

Since 20.11.2026 the API has no organization: the token reaches the companies that the user chose (see the entry of 20.11.2026).

07.11.2026: retractable on a bank transaction, and plainer refusals

  • GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/ has a new field retractable. It is false when the books keep the transaction for good, so a removal is always refused. True does not promise that a removal passes: the books refuse a transaction that something still explains, and say what to undo first.
  • A refused removal or proposal now answers in plain words for a caller who is not firm staff. A proposal that the books would refuse still answers 422 proposal_would_fail, and code and detail of its errors carry those words. Read the code, not the text of detail.

07.11.2026: a removed bank transaction shows only for firm staff

A bank transaction removed from the books (status retracted) now shows only for firm staff. An API key of a company, a signed-in client, and an OAuth or agent token of a client user no longer get it. An OAuth or agent token follows its user, so the token of firm staff keeps it.

  • GET /api/companies/{company_id}/bank-transactions/ leaves it out. The filter status=retracted is still accepted, and gives an empty list.
  • GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/ answers 404 not_found, the same answer as for an id that does not exist.
  • transaction_count of GET /api/companies/{company_id}/bank-accounts/ leaves it out, for every caller.

No balance changes: the transaction was already out of the books.

06.11.2026: a new permission, einvoicing.manage

  • permissions in GET /api/companies/{company_id}/ can list a new value, einvoicing.manage: the right to connect an e-invoice operator, replace its key, test the connection and switch sending. Accept and ignore a value you do not know.

05.11.2026: import VAT codes, and a sales code for a service abroad

These values are new in existing responses. Accept and ignore a value you do not know.

  • The VAT codes of GET /api/companies/{company_id}/vat-codes/ include EE-PUR-IMPORT-CUSTOMS (import VAT paid at customs), EE-PUR-IMPORT-POSTPONED (import VAT declared on the KMD under an EMTA permit) and EE-SAL-ABROAD-SRV (a service with a place of supply outside Estonia, 0%, KMD row 3 only). treatment can be import, and the filter treatment takes the same new value.
  • counter_role of an exemption can be vat_output_import, vat_input_import or vat_input_fixed_asset.
  • A KMD can hold row KMD.4^1 and rows KMD.5.1 and KMD.5.2 that overlap: each is a part of row 5, so they do not add up to it.

30.10.2026: a bank transaction removed from the books

A person can now remove a bank transaction from the books, for example one that the bank sent twice. These values are new in existing responses. Accept and ignore a value you do not know.

  • status of a bank transaction (GET /api/companies/{company_id}/bank-transactions/ and GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/) can be retracted: the transaction is out of the books, and its entry is reversed. The filter status takes the same new value; status=open never lists a retracted transaction.
  • Each bank transaction has a new field, retraction: null, or {reason, duplicate_of_bank_transaction_id, retracted_at} for a retracted transaction. duplicate_of_bank_transaction_id names the transaction it repeats, or is null.

28.10.2026: UK VAT and Australian GST codes, and a new permission

These values are new in existing responses. Accept and ignore a value you do not know.

  • permissions in GET /api/companies/{company_id}/ can list a new value, foreign_tax.file: the right to prepare a UK VAT or Australian GST return and mark it filed. The client files these returns itself.
  • The VAT codes of GET /api/companies/{company_id}/vat-codes/ include the codes of a UK VAT or Australian GST registration once the company records one: special_scheme can be gb_vat or au_gst, treatment can be foreign_scheme, rate_type can be zero, and member_state can be GB or AU. The filters special_scheme and treatment take the same new values.
  • Each VAT code has a new field, goods_location: abroad (goods shipped from Estonia) or in_country (goods held in the United Kingdom) for a code of goods of a foreign registration; null for every other code.
  • exemption.counter_role of a bank transaction (GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/) can be vat_output_gb or vat_input_gb (the UK VAT account) or vat_output_au (the Australian GST account): a payment to HMRC or to the ATO.

23.10.2026: the words of an occupation code and a workplace address

  • Each employment of GET /api/companies/{company_id}/employees/{employee_id}/ has a new field, occupation_name: the name of occupation_code in the occupation classifier of Statistics Estonia, in the language of the answer. It is empty when the classifier does not hold the code.
  • A submission (GET /api/companies/{company_id}/employees/submissions/ and the other submission operations) has a new field, names: occupation_name and workplace_address for the values in data.employment. Each is empty when it is not known.
  • When workplace_address of an employment is empty and workplace_address_id is set, a read of the employee or of the submissions now fills it in from the ADS address register (In-ADS).

22.10.2026: a new permission, support.use

  • permissions in GET /api/companies/{company_id}/ can list a new value, support.use: the right to write to the firm in the support channel and read its answers. Every member of a company has it, whatever the role. Accept and ignore a permission you do not know.

20.10.2026: an exemption to an account

This change is breaking for a client that reads exemption.counter_role as a value that is never null.

  • exemption of a bank transaction (GET /api/companies/{company_id}/bank-transactions/{bank_transaction_id}/) has a new field, counter_account_code: the code of the account the bank line was booked to, when the firm named an account instead of a role.
  • exemption.counter_role can now be null: exactly one of counter_role and counter_account_code is set. Read counter_account_code when counter_role is null.

20.10.2026: the general ledger leaves out correction pairs by default

  • GET /api/companies/{company_id}/general-ledger/ now leaves out the lines of the correction pairs by default. A correction pair is an entry whose reversal is posted (entry_state reversed) and the reversal that cancels it. The replacement of a correction is the correct booking, and it is always listed.
  • To get every line as before, send the new optional parameter include_corrections=true.
  • The balances do not change: opening_base_minor, closing_base_minor and running_base_minor still count every line, hidden or not, so they agree with the trial balance. A running balance can jump across a line that is left out.
  • Each account has a new field, hidden_corrections: how many lines of the range belong to a correction pair. The answer has a new field of the same name, the sum over the accounts. Both give the same number with or without include_corrections.

15.10.2026: the payments of an invoice, and a new permission

  • permissions in GET /api/companies/{company_id}/ can list a new value, reconciliation.decide: the right to confirm, reject or undo a match of a bank payment to a purchase invoice that OscarAI proposed. Accept and ignore a permission you do not know.
  • GET /api/companies/{company_id}/invoices/{invoice_id}/ has a new field, allocations: every active allocation that settles the invoice (a payment, a refund, a credit note), with bank_transaction_id when the other side is a bank line.
  • The invoice list and the invoice have a new field, posted_at: when the current revision was posted, null while it is not posted.
  • Each document of revision.documents has two new fields, file_id and download_url, as the document records have.
  • Each document of revision.documents has a new field, source: where its stored file came from (email, upload, api, import, generated or other; more values may come), null when no file is stored.

15.10.2026: a company whose data was deleted

  • state of a company (GET /api/companies/{company_id}/, the companies of GET /api/me/) can be a new value, deleted: the service of the company ended and its data was deleted. Such a company has no books, and it never becomes ready again. Accept a state you do not know and treat it as one with no books.
  • A company the firm closed keeps its registry code: a new company with that code answers 409 company_closed.

14.10.2026: employees and payroll

  • New operations: list and read the employees of a company, submit a new employee or a change and read the status of the submission, and list and read the pay runs.
  • permissions in GET /api/companies/{company_id}/ can list a new value, employees.submit: the right to submit a new employee or a change for the firm to review. Accept and ignore a permission you do not know.
  • GET /api/me/ has a new field, features.employees: true while the employee register is on.

14.10.2026: the tax account balance

  • New operation GET /api/companies/{company_id}/tax-account/balance/ (companies_tax_account_balance, permission books.read): the tax account of the company at the Estonian Tax and Customs Board (EMTA). It gives the balance of the claims (total, above zero: the company owes it), the interest, the prepayment account (prepayment_balance, and every account in account_balances), the open claims with their due dates, and notices (a debt, a claim due within 7 days).
  • The answer comes from the copy OscarAI keeps, not from a live call: as_of is when it was read from EMTA, and access_status says how the last read went (ok, rights_missing when the company has not granted ACCOUNTING_XROAD to OscarAI in e-MTA, failed, never). Before the first read every amount is null.

Nothing to change: this only adds an operation.

13.10.2026: unit prices with decimals, and a party's invoice language

  • An invoice line takes unit_price, the unit price in major units as a decimal string of at most 6 decimals ("150.334"). The books compute the net as quantity x unit price, rounded half up to the minor unit of the currency. unit_price_minor stays valid; when a line gives both, they must name the same price (400 invalid_payload otherwise).
  • The lines of an invoice detail have the new field unit_price, also for a line recorded with unit_price_minor only. unit_price_minor is null on a line whose price has a fraction of a minor unit.
  • The defaults of a party (defaults of a party detail) have the new field language: et, en or null.

Nothing to change: every new field is optional.

09.10.2026: what an own sales invoice carries

  • record_invoice and revise_invoice of an own sales invoice refuse a document with the role original (400 invalid_payload). The original of an own sales invoice is the PDF Oscar issues. The role of a document defaults to original, so a document on a sales draft names the role supporting. import_sales_invoice still takes the original of an invoice issued elsewhere.

  • issue_invoice of a VAT-registered company refuses an invoice without the seller's address (400 seller_address_missing) or without the buyer's address (400 buyer_address_missing), as the VAT Act requires (KMS § 37 (7) p 2 and p 3). The API takes the seller's address from the Business Register; give seller_address when the register has none. A customer that stands for private persons (private_persons) needs no address.

  • issue_invoice of a sales invoice in another currency than the euro that charges VAT freezes its euro value at the ECB rate of the tax point, and refuses the issue when that rate is not known yet (400 vat_exchange_rate_missing). The detail of an invoice has the new field revision.base_vat: the VAT of each rate and in total in euro, and the rate used.

What to change: send "role": "supporting" for a document of a sales draft, and set the address of a customer (address of the party) before you issue its invoice.

08.10.2026: OAuth asks for write on purpose

  • An OAuth authorization request (/oauth/authorize) or a device authorization request (/oauth/device_authorization) that names no scope now gets read only. Before, it got read write.
  • The consent page shows the client_id of the app. For an app that registered itself (a client ID metadata document or dynamic registration), it warns and shows no logo.

What to change: an integration that writes sends scope=read write in the authorization request. A token without write gets 403 insufficient_scope on a write. The oscar CLI already sends the scope.

08.10.2026: size limits on requests

  • A JSON request body is at most 1 MB. A larger one is refused with 413 request_too_large. A file upload (POST .../files/) keeps its own limit of 25 MB.
  • Every text field of a command body (invoices, parties, events and the others) is at most 2000 characters, and the schema now says so with maxLength. A longer text is refused with 400 validation_error.
  • A free JSON value of a command (source_payload, seller_snapshot, buyer_snapshot, raw) is at most 64 KB as JSON.
  • A list of a command has a maximum: 500 lines and 50 documents in an invoice revision, 2000 lines in an event. A longer list is refused with 400 validation_error.
  • GET .../files/{file_id}/content/ now counts against the rate of the expensive operations, as an upload does: 429 throttled when it is used up.

What to change: split a larger invoice or event, and shorten a longer text.

27.09.2026: payment providers

  • permissions in GET /api/companies/{company_id}/ can list two new values: payments.read, the right to read the payment provider (Stripe) connections of the company, and payments.manage, the right to connect a payment provider, replace its key, sync it and disconnect it. The operations of both are not public yet. Accept and ignore a permission you do not know.

25.09.2026: the bank feed

  • permissions in GET /api/companies/{company_id}/ can list a new value, bank.connect: the right to connect a bank of the company through open banking, reconnect it and disconnect it. Only a browser session holds it, so an API key or an OAuth token never gets it. Accept and ignore a permission you do not know.

25.09.2026: the AI agent

  • permissions in GET /api/companies/{company_id}/ can list a new value, agent.use: the right to use the AI agent of Oscar. Only a browser session holds it, so an API key or an OAuth token never gets it. Accept and ignore a permission you do not know.
  • GET /api/me/ has a new field, features, with the features this deployment turns on.

25.09.2026: the first public API

  • The first public set of operations: the organization and its companies, parties, invoices (record, revise, issue, cancel), files (upload, read, download the bytes), document records, bank accounts and bank transactions, the chart of accounts, VAT codes, periods, dimensions, and the reports.
  • Authentication with an organization API key, Authorization: Bearer osk_live_....
  • The public schema at /docs/api/openapi.json, and these docs.