chatmated
EN
Try it

Merit Aktiva API ID and key: creating, checking and revoking

The Merit Aktiva API ID and key are created by a user with administrator rights in Merit's settings, in the place that Merit's documentation calls Settings >> API Settings. The API works only with a Pro or Premium licence. The key is equivalent to a password and allows everything that the Merit API allows, so before handing it over, check to whom and for what you are giving it.

In short

  • Only a user with Merit administrator rights can create and regenerate the API ID and key.
  • The Merit API works only with a Pro or Premium licence.
  • The key itself does not travel over the network: every request carries the API ID, a timestamp and a signature calculated with the key.
  • The Merit API can also create and delete invoices, not only read them. Ask the integrator what their connection actually does.
  • To revoke, delete the key or regenerate it in Merit. The old key stops working.
  1. 01

    Check the licence

    The Merit API can be used only with a Pro or Premium licence. If the company has a smaller plan, Merit answers requests with error code 401.

  2. 02

    Log in as an administrator

    Only a user with administrator rights can create and reset the API ID and key. If that is your accountant, they have to do this step.

  3. 03

    Open the API settings page

    Merit's documentation calls this place Settings >> API Settings. Create the API ID and key there.

  4. 04

    Copy both values

    The integrator needs both the API ID and the API key. Hand them over in a channel where they are not left lying around in the open.

  5. 05

    Check that the connection works

    Ask the integrator to make one read request and show the result, for example the customer debts report.

  6. 06

    Revoke when the connection is no longer needed

    Delete the key or generate a new one on the same page. Requests made with the old key get 401 in response.

Before you start: two preconditions

The Merit API documentation sets two conditions, and both are worth checking before you start looking for the key.

Licence. The Merit API overview page says that the API can be used only at the Pro and Premium licence levels. The frequently asked questions page specifies what this looks like in the case of an error: if a request gets code 401 in response and the response has a body, the creator of the company must have a Pro or Premium licence for that company.

Rights. The API ID and key can be generated and reset by a user with administrator rights. In many small companies that is the owner. If the Merit account was created by an accounting firm, the administrator may instead be an employee of that firm. Then they do this step, not you.

Creating the key step by step

  1. Log in to Merit Aktiva as a user with administrator rights.
  2. Open the API settings page in the settings. Merit's documentation is in English and calls this place: Settings >> API Settings.
  3. Create the API ID and API key.
  4. Copy both values. The integrator needs them together, one alone is not enough.
  5. Hand them over to the integrator in a secure way. Merit writes that the API ID and key must be kept secret and protected in the same way as the account password.

The key is valid for one company. Merit puts it this way: every company gets its own unique API ID and key. If you have several companies in Merit, each has its own pair.

What this key actually allows

This part is read least often and it is the most important. Merit's authentication page does not describe any way of making a key that allows only reading or only one part of the program. So assume that the key allows everything the API allows.

According to the table of contents of the Merit API manual, that list is long.

What can be read What can be created or changed What can be deleted
sales and purchase invoices, quotes sales invoice, credit note, quote, purchase invoice sales invoice
payments, general ledger entries payment, general ledger entry, bank statement import purchase invoice
customers, suppliers, items customer, supplier, item payment
reports: customer debts, income statement, balance sheet, sales, purchases, stock levels stock movements, prices and discounts

A connection that only reads cannot break anything in Merit. But the key itself does not know that the connection only reads. That boundary is kept by the integrator's software, not by Merit. Chatmated's ready-made Merit Aktiva connection uses only reading from this list; the exact list is on the connection's page.

Five questions for the integrator before you give the key

These questions suit any service provider, including us.

  1. Which Merit requests does the connection make? The right answer is a specific list, for example "the customer debts report and the list of sales invoices", not "we read your data".
  2. Does the connection write anything to Merit? If yes, then what, and does every change wait for a person's confirmation.
  3. Where is the key kept and who sees it? The key must not be in an email, a shared spreadsheet or a chat.
  4. What stays in the log? You should be able to see later which requests were made with your key.
  5. What happens if I revoke the key? A proper connection says clearly that Merit cannot be read, and waits. It does not retry endlessly.

If an AI assistant is involved, there is one more question: does the key reach the language model. That is covered in the guide AI and company data.

How the signature works, without the maths

An ordinary password you send to the server when you log in. The Merit API key is never sent. Instead, the connection proves with every request that it knows the key.

Imagine a seal. The connection takes three things: your API ID, the current time and the content of the request. It puts them one after another and presses a seal on top, whose shape depends on the key. Technically the seal is an HMAC-SHA256 hash. With the request, Merit receives the API ID, the time and the imprint of the seal. Merit knows your key, does the same calculation on its side and compares. If the imprints match, the request came from someone who knows the key, and nobody has changed the content of the request on the way.

Three practical things follow from this.

  • The time has to be right. The timestamp is in UTC in the form year, month, day, hour, minute, second. Merit rejects a request whose timestamp is too old or in the future. If the clock on the integrator's server is wrong, even the right key will not work.
  • Every new attempt needs a new timestamp. Merit says this specifically about retrying after error code 429.
  • HTTPS only. Merit automatically rejects unencrypted requests.

What an API is in the first place and why programs talk to each other this way is explained in the guide what is an API.

If the key does not work

Merit's documentation distinguishes three situations.

Response What Merit says about it What to do
401 without a body the API ID is wrong check that the ID was copied correctly. Merit's earlier specification adds that 401 can also mean that someone has replaced the ID and key in the meantime
401 with a body the creator of the company must have a Pro or Premium licence review the Merit plan
429 more than 100 requests have been made in a minute wait; the response header Retry-After says when to try again

The last row needs an explanation. Merit's limit is 100 requests a minute. Before the version of 27.03.2024 Merit put excess requests on hold; from that version on it rejects them with code 429.

Revoking the key

Merit writes: if you think the API ID and key have leaked, delete them and create new ones. You do the same when you end your cooperation with the integrator or when an employee who handled the key leaves.

After revoking:

  • requests made with the old key no longer go through;
  • your data in Merit does not change;
  • every program that used the old key stops working until you give it a new one.

The last point is the reason why it is worth writing down who you have given the key to. If the online shop, the stock program and the reporting tool all use the same key, revoking one stops all three at once.

Checklist

  • The key is a password. Keep it in a password manager, not in an email.
  • Ask the integrator for the list of requests before, not after.
  • Write down the date and the name: when and to whom you gave the key.
  • If in doubt, generate a new one. It does not affect the data in Merit.

Questions

Does Merit have a test environment where I can try the key?

The Merit API frequently asked questions page says there is no separate test environment. A test company is created instead. The same page states that with a trial licence you can create up to 100 documents.

Does the same key work with Merit Palk as well?

No. Merit Palk (Merit's payroll program) has a separate API and separate keys, which are created in Merit Palk's own settings and require a Merit Palk PRO licence.

Does the key expire by itself?

Merit's authentication page does not describe expiry. The key stops working when an administrator deletes it or generates a new one.

Sources

  1. Merit Aktiva API: Authentication · read 12 November 2026
  2. Merit Aktiva API: overview, licences and addresses · read 12 November 2026
  3. Merit Aktiva API: FAQ · read 12 November 2026
  4. Merit Aktiva API: Rate limiter · read 12 November 2026
  5. Merit Aktiva API: Reference Manual · read 12 November 2026
  6. Merit Aktiva API specification, version 1.10 (PDF) · read 12 November 2026
  7. Merit Palk API: Authentication · read 12 November 2026