/merit-aktiva-workspace:merit-stripefrom merit-aktiva-workspace
Canonical method for booking Stripe card payments in Merit Aktiva: gross revenue + VAT, separate fee expense, clearing account, per-payout GL batches dated on charge month for VAT.
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.
Read when SKILL.md points to them.
How Stripe card payments are set up and recorded in Merit Aktiva. The implementation is
the elnora-merit reconcile command; this skill is the why and the rules so any agent
books it correctly and can spot a wrong entry.
The one thing to get right: Stripe is a clearing account, not your bank. Stripe holds the money, deducts its fee, then pays out the NET in batches. So you cannot book the bank deposit as revenue — it is already net of fees. Revenue is booked GROSS, the fee is a separate expense, and a clearing account in between holds the payout net until the real bank-import row clears it.
Each Stripe payout is booked as a single balanced sendglbatch. Card sales are aggregated
(no per-buyer customer or invoice — the canonical treatment for high-volume B2C card sales;
genuine company invoices that need an A/R record are booked separately).
Dr Clearing gross all card sales in the payout, VAT-inclusive
Cr Revenue net gross ÷ 1.24 — carries the 24% TaxId + VatAmount
[Cr VAT payable vat] output VAT — IMPLICIT, Merit posts it from the tag
Dr Stripe fees fees processing + platform fees, a separate expense
Cr Clearing fees
Dr Refunds / Cr Clearing only when the payout contains refunds
The clearing account is left holding exactly the payout net, which the real bank-import row clears against (one manual match in the Merit UI).
Estonian time of supply (KMS §11) is the earlier of supply or payment — for a card sale the
charge/capture date, not when Stripe pays out. reconcile dates each batch on the charge
month: usually equal to the payout arrival, except a month-end straddle (charges captured
in month N, paid out in N+1), which it dates back to the charge month so the output VAT lands
in the correct KMD period.
A payout whose charges span two or more months cannot be dated to one VAT month. The tool
flags it in preview and run skips it (marked not bookable) rather than mis-dating it —
it does not auto-split (yet). Book it by hand as one GL batch per charge month (DocNo
po_…-MAY / po_…-JUN), splitting gross/net/VAT/fees per charge, not by dividing the
aggregate ÷ 1.24. Per-charge rounding ties to the cent and matches the tool's
single-month batches; the aggregate method is ~1 cent off per batch. The two batches together
net to the payout and are cleared by the single bank row.
Configured in stripe-map.json in the references dir (MERIT_REFERENCES_DIR, default
~/.config/elnora-merit); reconcile init writes a placeholder. Confirm every code and the
VAT guid against your own company — from the company profile (elnora-merit profile sync
→ company-profile.json; profile show --section accounts|taxes) or live
(accounts list / taxes list).
| Role | Maps to | Notes |
|---|---|---|
clearing | a 10xx clearing / vahekonto account | nets to zero per payout |
revenue | your sales-revenue account | booked NET, VAT via the tag |
vatPayable | your output-VAT account | Merit posts here implicitly — never an explicit row |
stripeFees | a bank-service expense account | VAT-exempt payment service (see VAT below) |
platformFees | a fee-expense account | platform / application fee (e.g. an events platform's commission) |
refunds | contra-revenue account | |
vat.code / vat.rate | the standard-rate TaxId from taxes list / the rate (e.g. 0.24) | tags the revenue line for the KMD |
Output VAT is tagged, never an explicit row. The revenue line carries TaxId +
VatAmount; Merit both posts the VAT credit to the output-VAT account and flows it
onto the KMD from that tag. The batch's explicit rows are intentionally short by exactly the VAT amount —
Merit's implicit credit balances it. Adding a separate VAT-account row double-posts and
Merit rejects the batch (PR kanne ei ole tasakaalus). An untagged VAT row lands in
the GL but never reaches the KMD. So: tag the revenue line, add no VAT row.
Stripe processing fees are a VAT-EXEMPT payment service — NO reverse charge. Book
them to your bank-services expense account (e.g. 4340) like an ordinary pangateenus, with no TaxId and
no KMD reverse-charge lines. This is the explicit exception to [merit-reverse-charge]:
a payment service under the Payment Institutions Act §3 is exempt under KMS §16(2¹)(4)
regardless of who provides it, so it is NOT reverse-charged even though Stripe is foreign
(EMTA VAT-department position). Do not treat the Stripe fee like a US/EU SaaS bill.
Nuance — a platform fee (e.g. an events platform's commission) is not the payment
service; strictly it is a reverse-chargeable platform service. But when it arrives netted
inside the Stripe payout as an application fee (no separate invoice), this flow expenses it
to the fee-expense account alongside the Stripe fee. If the platform ever issues a
standalone invoice, book that one via the merit-reverse-charge skill.
VAT is always on the gross sale, never on the net payout.
Read-only preview first, then the gated write. The merit-bookkeeper agent owns the write.
elnora-merit reconcile preview # what WOULD book per payout — no writes
elnora-merit reconcile preview --payout po_… # one payout
elnora-merit reconcile run --yes # book; skips already-booked + unbalanced
elnora-merit reconcile status # booked vs outstanding
STRIPE_API_KEY (live secret key) + a populated stripe-map.json.~/.config/elnora-merit/reconcile-ledger.json) records every
booked payout — run never double-books. Only --force re-books, and only after you
confirm a payout was not already booked.See reference/recipe.md for first-time setup (reconcile init, the
map fields) and a worked payout.
merit-reverse-charge rule does not apply.)--yes to reconcile run without explicit approval, and never --force
without confirming the payout was not already booked.merit-reverse-charge skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 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".
/merit-company-lookupLook up Estonian companies in the Business Register (äriregister) using the two FREE live services via `elnora-merit ariregister`: invoicing requisites (legal name, VAT number, status, address) by registry code, and e-invoice capability. Use to fill or verify customer/invoice details from the authoritative source, or to check whether a company can receive e-invoices before sending one. Use when: looking up a company's registry data, getting a VAT number or address by registry code, verifying customer details before invoicing, or checking e-invoice capability. TRIGGERS: "äriregister lookup", "business register", "registrikood", "look up company", "company requisites", "VAT number for", "registry data", "verify customer", "e-invoice check", "can they receive e-invoices", "e-arve check", "kmkr number".
/merit-documentsKeep every Merit Aktiva transaction backed by its source document (receipt / supplier invoice). Audits Merit for invoices missing an attachment, searches configured sources (local folders, or Gmail/Drive/etc. via a command adapter) for the matching PDF, stages or attaches it, and reports what it cannot find to a Slack-compatible webhook. Runs on a schedule. Use when: "missing receipts", "which invoices have no document", "attach receipts", "receipt audit", "documents without invoices", "find missing invoices", "auto-attach receipts", "receipt reminder", "document compliance". TRIGGERS: "missing receipt", "missing invoice", "no attachment", "receipt audit", "document sync", "attach receipt", "which transactions lack a receipt", "unattached invoice", "receipt reminder", "merit documents".
/merit-lhvHow to pull an LHV bank statement straight into Merit Aktiva without touching a file export — LHV's own MCP server returns camt.053 XML, which is exactly what Merit's bank-statement import accepts. Covers connecting LHV (OAuth2 + Smart-ID, read-only), the 31-day window, the multi-currency trap, and where the statement stops being the agent's job and becomes a match-and-confirm in the Merit UI. Use when: importing an LHV statement, reconciling the LHV bank in Merit, pulling transactions or balances from LHV, connecting LHV to Claude, or backfilling several months of LHV history. TRIGGERS: "lhv", "lhv.ai", "lhv pank", "lhv statement", "lhv bank", "import lhv", "pull from lhv", "lhv transactions", "lhv balance", "connect lhv", "bank statement from lhv", "reconcile lhv", "lhv to merit", "camt from lhv", "lhv backfill".
/merit-palk-employeesHow to onboard employees and maintain contracts, contacts, and base salary agreements in Merit Palk via `elnora-merit palk`. Covers the sendemployees-vs-sendpayterms distinction, required import codes, and reading the employee / agreement lists. Use when: adding a new employee, creating a first contract, setting or updating a base salary agreement, adding an employee's bank/contact details, or listing employees/agreements. TRIGGERS: "add employee", "onboard employee", "new hire", "create contract", "tööleping", "base salary agreement", "palgakokkulepe", "change salary", "update salary agreement", "employee bank account", "employee contact", "list employees", "employee list".
npx claudepluginhub elnora-ai/elnora-merit-aktiva --plugin merit-aktiva-workspaceOther plugins' skills for the same job