chatmated
EN
Try it
SmartAccounts

SmartAccounts connection: what its API gives out and where the limits are

You can set up the SmartAccounts connection yourself in the Chatmated app on the Connections page: for now it reads sales invoices and their payment status (unpaid invoices and yesterday's sales). The rest we build to order on top of SmartAccounts' public API. The API gives out sales and purchase invoices, payments, customers, items and stock levels, and allows asking for only unpaid or overdue invoices.

Connect it yourself

You can set up this connection yourself in the Chatmated app. What the ready connection reads today is written at the top of the page. Below is everything the program's API allows: the rest we build on request.

Connect SmartAccountsThe account takes a minute. Three days are free and no card is asked for.

What the connection reads

  • Sales invoices with a filter: unpaid, or unpaid and overdue
  • Payments: date, partner, bank or cash register
  • A customer's balance as at a chosen date
  • Items and stock levels

What it does when you confirm

  • The API allows adding a sales invoice and sending it as an e-invoice; in the connection every such step would wait for your confirmation
  • The API allows adding a customer, a quote or an order

What it does not do

  • Does not use your SmartAccounts username or password: the API works with separate keys
  • Does not make a single entry, invoice or payment without your confirmation
  • Cannot go over SmartAccounts' request limit

What we need from you. SmartAccounts API keys: a public key and a secret key. They are generated in SmartAccounts under the menu item Seaded, Liidetud teenused, API (Settings, Connected services, API). The API service is available on the monthly plan.

Which invoices are overdue?How much money came in this week?How much does this customer owe?Which goods are below ten in stock?

In short: what there is and what there is not

SmartAccounts has a public API and its description is open for everyone to read: 56 pages, last updated on 28.04.2025 (version 1.7). In the Chatmated app you can connect SmartAccounts yourself: the ready-made connection reads sales invoices and their payment status. Anything else that the API allows we build to order, and this page describes what SmartAccounts' own documentation promises about it.

If the word API is unfamiliar, start with the guide what is an API.

Services that the SmartAccounts interface offers

SmartAccounts describes its API as a JSON-based communication channel between external applications and SmartAccounts. The documentation gives two uses: bringing in data from an external application, for example an online shop, and requesting data from SmartAccounts for better reporting.

Area Services What can be done
Sales sales invoices, quotes and orders, customers query, add, change, delete; invoice PDF and XML, sending an e-invoice, customer balance
Purchases purchase invoices, suppliers query, add, change, delete
Money payments, bank accounts, cash registers query, add, change, delete; payment filters by partner and account
Stock items, stock levels, stock movements query, add, change, delete items; stock level by item code; stock movement query
General ledger entries, account balances, chart of accounts query, add, change, delete entries; entry PDF
Settings VAT rates, payment methods, objects, groups, countries, document templates query, add, change, delete; for document templates query only
Payroll employees, absences, payout types and absence types query of employees and types; absences can also be added, changed and deleted
Files document attachments adding a file to an invoice, customer, supplier or entry

For an owner's questions the most important is the sales invoice query. It has a filter by payment status with two values: unpaid invoices, and unpaid and overdue invoices. The date filter can be put on the invoice date, the entry date, the due date or the time of modification. This means that the question who owes me gets an answer from SmartAccounts with one request, without downloading all the invoices.

Two kinds of data: with changes and without

SmartAccounts divides the services into two groups, and this affects how quickly the connection gets hold of the fresh state.

  • Data whose changes can be requested. Sales invoices, purchase invoices, customers, payments. The connection can ask for only what has been added, changed or deleted since the last time, to the second. The list of deleted documents comes along on the first page of the response.
  • Data whose changes cannot be requested. Countries, document templates and other settings that rarely change. Here only the whole list can be requested.

Responses come page by page. One page currently holds 100 objects, and SmartAccounts warns that this number may change. The next page has to be requested until the response says that there are no more records.

Limit: 1000 requests a day

This is the restriction around which the whole connection has to be planned.

  • 1000 requests within 24 hours.
  • 60 requests per minute.
  • A request that exceeds the limit gets the error code 503 in response.

According to the documentation, the same code 503 also comes when the SmartAccounts account has a billing problem.

What does this mean in practice? One question is usually one to three requests, so an owner's everyday questions fit within the limit easily. The limit starts to matter when several programs use the same key at once, or when someone wants to download the whole invoice history in one go: 100 invoices per page and 1000 requests a day set a clear ceiling on that. So it is worth creating a separate key for each program and synchronising only changes.

Keys, signature and permissions

The SmartAccounts help page says two things. The API service can be used on the monthly plan and it is free for the company. The keys are generated under the menu item Seaded, Liidetud teenused, API (Settings, Connected services, API). On the price list page the row "API ja välised liidesed" (API and external interfaces) is among the features of the Pro plan.

There are two keys: a public key, which goes along with every request, and a secret key, which does not travel over the network. Every request is signed with the secret key (HMAC-SHA-256). A timestamp goes along with the request, and SmartAccounts rejects a request whose time differs by more than 15 minutes. The timestamp must be in Estonian time. For checking the signature there is a calculator in SmartAccounts itself, which the documentation points to under the connected services in the settings.

The most important sentence in the documentation is about permissions. By default the API user group is created so that it has access to all functions. SmartAccounts strongly recommends narrowing this in the user group settings, so that the key can reach only what the external application really needs.

So before you give the key to any integrator, do three things.

  1. Ask which services the connection uses. For questions about debts and sales, sales invoices, customers and payments are enough.
  2. Narrow the permissions of the API user group to those services.
  3. Leave out the payroll services if the connection does not need them.

How Chatmated would build this connection

In the same way as the ready-made connections: reading first, then actions. First in line are two questions whose answer is in the accounts: who has not paid and how much was sold. Adding an invoice and sending an e-invoice exist in the SmartAccounts API, but we put such steps into the connection only if you want them, and every change waits for your confirmation before it is made. You create the keys yourself in SmartAccounts and do not give us your username or password.

Questions

Does the connection also see payroll data?

The SmartAccounts API does have payroll services: employees, absences, payout types and absence types. Whether the key can reach them is for you to decide with the permissions of the API user group. They are not needed for questions about sales and debts.

Can I get an invoice PDF through the API?

Yes. The sales invoices service has separate methods for requesting the invoice PDF and XML and for sending an e-invoice.

How large a file can be attached to a document through the API?

According to the specification, the size limit for an uploaded file is currently about 10 MB.

Sources

  1. SmartAccounts: API väliste rakendustega liidestamiseks (API for integrating with external applications) · read 12 November 2026
  2. SmartAccounts API spetsifikatsioon, versioon 1.7 (API specification, version 1.7) (PDF) · read 12 November 2026
  3. SmartAccounts: hinnakiri (price list) · read 12 November 2026

Same group: accounting and invoices