/merit-aktiva-workspace:merit-payments-bankfrom merit-aktiva-workspace
Records payments and reconciles bank statements in Merit Aktiva via the elnora-merit CLI. Covers choosing the correct transaction type for each line, plus imports, settlements, prepayments, currency payments, and internal transfers.
Ships in merit-aktiva-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
How to book money movements correctly with elnora-merit payments and banks. Writes
hit the live books — confirm before posting. The biggest source of bookkeeping errors is
picking the wrong transaction type; get that right and the GL entry is right.
For real bank ids, clearing accounts, and GL codes, load the company profile (
elnora-merit profile sync→company-profile.json;profile show --section banks). Standing conventions come from your prose books reference if you keep one. Load what applies before posting.
Every manual payment line is one of four types in Merit. Map the type to the verb:
| Merit type | Meaning | Use it for | Command |
|---|---|---|---|
| Tehingud klientidega | Transactions with customers | Customer receipts against sales invoices | payments create (sendpayment) — matches by customer name + invoice no. |
| Tehingud tarnijatega | Transactions with vendors | Paying purchase invoices — and payments to reporting persons and to the tax authority | payments create-purchase (sendPaymentV) |
| Muud sissetulekud | Other income | Inflows not tied to any invoice | payments send-income <bankId> — you pick the GL AccountCode |
| Muud väljaminekud | Other expenditure | Outflows not tied to invoices — payroll payouts, bank fees | payments send-expense <bankId> — you pick the GL AccountCode |
Load-bearing rule from the docs: reporting-person and tax-authority payments are
tehingud tarnijatega (vendor), not "other expenditure". Booking a tax payment as
"other expenditure" mis-states the tax-liability account.
elnora-merit banks list # { Name, IBANCode, BankId, CurrencyCode, AccountCode }
elnora-merit payments list-types --type 3 # 1=purchases, 2=expense reports, 3=sales; Id returned IS the BankId
<bankId> in the income/expense commands is the bank's guid from banks list.
payments create matches by customer name + invoice number, so both are required:
elnora-merit payments create --data '{"BankId":"<bankId>","CustomerName":"Acme OÜ",
"InvoiceNo":"2026-014","PaymentDate":"202606061200","Amount":1240.00,
"CurrencyCode":"EUR"}'
A sales payment can be sent in parts. For a non-local currency use the v2 flags
(CurrencyCode required; omit CurrencyRate to take the ECB rate for the date).
elnora-merit payments create-purchase --data '{"BankId":"<bankId>","VendorName":"AWS",
"BillNo":"INV-99812","PaymentDate":"202606061200","Amount":340.00}'
Same command for a payment to the tax authority (the vendor is the Tax & Customs Board) and for paying a reporting person.
Estonia runs a single tax account (ühtne maksukonto): you pay one lump sum to the Tax & Customs Board (Maksu- ja Tolliamet) and it covers whatever is declared — VAT (KMD), payroll taxes (TSD), etc. Two things bite in the bank import:
The UI blocks booking a tax payment as a plain GL / "Muud" entry. Trying it returns: "Maksude tasumist ei saa sisestada pearaamatu kandena. Maksude tasumiseks klõpsa nupule 'Võlgnevused', vali tarnijate nimekirjast Maksu- ja Tolliamet, märgi võlgnevus linnukesega tasutuks või sisesta summa ettemaksu reale." Tax payments are matched under Võlgnevused against the tax-authority vendor, never "Muud".
Match the declared return against the standing prepayment credits. In the Võlgnevused window pick the tax-authority vendor. Merit lists, against that vendor, both:
KD-MM-YYYY
(käibedeklaratsioon) due the 20th of the following month, or the next working day
when the 20th falls on a public holiday or weekend (MKS § 50 lg 1 applies
TsÜS § 136 lg 8), andEttemaks KD-…) sitting on the
tax prepayment account from earlier over-payments.Tick the rows that make up the payment. The return liability nets against the prepayment
credits, and the remainder must equal the bank amount — Erinevus = 0,00 before you
save. Example: a 500,00 VAT return less 120,00 of standing prepayment credits = 380,00
actually paid from the bank.
If nothing is declared yet, enter the amount on the "Ettemaksu summa" (prepayment) row against the tax vendor — it lands on the tax prepayment account, and the next declaration nets against it.
A bank line already in the import queue must be matched in the UI as above. The CLI
mirror is create-purchase (against the tax vendor) or send-prepayment-vendor (prepayment
route), but don't also post it via the CLI for a queued statement row — that double-books.
GL-account lines under a bank. Income lines omit DepartmentCode; expense lines include it:
# bank fee (other expenditure)
elnora-merit payments send-expense <bankId> --data '{"DocumentDate":"2026-06-06",
"CurrencyCode":"EUR","DocumentNumber":"FEE-06","Description":"Bank service fee",
"Lines":[{"AccountCode":"<fee-expense-acct>","Amount":4.50,"Description":"Monthly fee"}]}'
send-income <bankId> is the mirror for non-invoice inflows.
elnora-merit payments import-statement --file statement.xml # POST sendcamt53; RAW camt.053 XML, not JSON
elnora-merit payments list-imports <bankId> --booking-date-from 2026-06-01 # window max 3 months
FIRST: check the period isn't already booked. Compare the bank's GL account balance
(reports balance-sheet --end-date <to>) with the statement's real closing balance. If they
match, the period is already booked — do not import. Then gl list-full --period-start <from> --period-end <to> --with-lines 1 and look for PA batches crediting the bank account;
if they cover these dates, the statement is already in.
Do not treat idempotency as that check. It skips its own prior imports and some
hand-entered payments, but not payments posted via the API. A live run reported
Imporditi 17 makserida (ridu kokku 19) — skipping 2 — when in fact all 19 were already
booked. The count tells you what got queued, not what was needed.
Supported: camt.053.001.02 and camt.053.001.10. The bank account must have a correct
IBAN, and Merit bank accounts are per-currency — a <Stmt> whose Ccy has no matching
bank account has nowhere to land, and the API has no bank-write endpoint to add one
(UI only).
Import posts no GL entries. It queues rows in Maksed. The success string ends
koostati pearaamatu kanded, but with Kinnitati 0 makserida nothing is posted (verified:
zero GL batches, bank balance unmoved). Confirming is what posts — and what is
irreversible. An unconfirmed queue is harmless.
The match-and-confirm step is UI-only, and the choice of column decides whether you duplicate the books:
Using Muud on a payment whose invoice already exists (OA batch) books the expense a
second time and leaves the original liability uncleared. Symptom: the bank account drops
below the real balance, often negative. If gl list-full shows an OA batch for that
merchant and amount, the row is a Võlgnevused match.
Discard unconfirmed rows that duplicate existing entries — matching them is the error. (Rows representing genuinely unbooked movements are different: add the missing document and match, don't delete.)
A bank-balance tie does not prove there is no duplicate — it only tests the bank leg. An expense can be booked twice while the bank still ties. Check the expense account's debits over the window as well.
payments send-settlement. Sign:
SalesInvoice +, PurchaseInvoice +, CreditInvoice −, Prepayment −. The total of
all CustLines + VendLines must equal zero.payments send-prepayment <bankId> <customerId> (customer) or
send-prepayment-vendor <bankId> <vendorId>.1080; your books reference names the real one):
out = send-expense crediting the bank, debiting clearing; in = send-income debiting
the bank, crediting clearing. The clearing account must net to zero.create/create-purchase body (v2 currency flags). Merit loads ECB rates automatically;
book any rate difference as a separate send-income/send-expense line to the
exchange-rate-difference account so the totals match the statement.create-purchase), and the UI rejects the
GL route outright. Match it under Võlgnevused against the tax vendor.delete a payment only when the user explicitly asks — payments have complex GL
relations and deletion is high-risk over the API. Doing it in the UI (Maksed →
bank → Maksete nimekiri → Kustuta) is a normal supported operation, and it is the
required first step before a paid invoice can be re-customered or deleted — see
merit-sales-invoices → reference/paid-invoices.md.
Note the row's date, document no, customer, amount and viitenumber before deleting;
you re-enter them by hand afterwards.create* / send* /
import-statement / delete. Respect closed periods.merit-stripe.
To pull an LHV statement in directly instead of exporting a file, see merit-lhv.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub elnora-ai/elnora-merit-aktiva --plugin merit-aktiva-workspace18 skills in this plugin
/merit-aktiva-workspaceMerit Aktiva accounting — routes work to the elnora-merit CLI, slash commands, and agents. Use when: looking up or creating invoices, recording payments, checking financial reports, managing customers/vendors, or any Merit Aktiva accounting task. TRIGGERS: "merit", "merit aktiva", "aktiva", "invoice", "sales invoice", "purchase invoice", "create invoice", "unpaid invoices", "record payment", "customer balance", "vendor", "income statement", "profit and loss", "balance sheet", "VAT", "accounting", "bookkeeping", "chart of accounts", "general ledger", "reconcile stripe", "book stripe payouts", "card sales".
/merit-business-tripsHow to record Estonian foreign business trips (välislähetus) in Merit Aktiva correctly: tax-free daily allowance (välislähetuse päevaraha), the VAT treatment of flights and hotels (which is NOT reverse charge), paying a non-employee's travel via a käsundusleping, and client/partner meals (vastuvõtukulud). All figures are the current statutory limits — verify against Riigi Teataja, since the 2025 reform raised several of them and older blog figures are stale. Use when: booking per diem, a trip expense report, a foreign flight/hotel invoice, a contractor's covered travel, or a business-partner dinner. TRIGGERS: "lähetus", "välislähetus", "päevaraha", "daily allowance", "per diem", "business trip", "trip expenses", "kuluaruanne", "aruandev isik", "reporting person expense", "vastuvõtukulud", "representation costs", "client dinner", "äripartnerite toitlustamine", "TÖR", "töötamise register", "tasuta töötamine", "käsundusleping travel".
Other plugins' skills for the same job