/merit-aktiva-workspace:merit-purchase-invoicesfrom merit-aktiva-workspace
Enters vendor bills in Merit Aktiva via elnora-merit CLI, handling vendor resolution, VAT, ledger posting vs approval queue, credit notes, and expense claims.
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 enter vendor bills correctly with elnora-merit purchase-invoices. Every endpoint
is POST with a JSON body. Writes hit the live books and feed input VAT — confirm the
payload before posting.
For real expense-account codes and VAT guids, load the company profile (
elnora-merit profile sync→company-profile.json); vendor conventions come from your prose books reference if you keep one. Load what applies before posting.
| Situation | Command | Effect |
|---|---|---|
| Booking a confirmed bill straight to the ledger | create (sendpurchinvoice) | Posts the GL entry immediately. |
| Company uses an approval ring, or you want a draft | create-pending (sendpurchorder) | Waits for bookkeeper approval; no GL records until approved (in the Merit UI). |
| Employee out-of-pocket costs (no company-paid receipts) | create / create-pending with "ExpenseClaim": true | Books a liability to the reporting person. |
If the company has the approval ring (kinnitusring) switched on, an invoice cannot be
posted until an approver confirms it in the UI — use create-pending and hand off.
Id; create only when none matches.
vendors list MUST be filtered (unfiltered returns a server error).TaxId, not a percentage. From elnora-merit taxes list. Put it on each
InvoiceRow and mirror it in the top-level TaxAmount array. TotalAmount is net
without VAT.accounts list, taxes list, etc.) first.CountryCode right, leave the standard rate on the lines, and Merit
self-assesses the reverse charge. Full procedure in the merit-reverse-charge skill —
do not improvise it here.Payment block here — match it later in the
imported statement (see merit-payments-bank). Only mark payment inline for
cash / card / reporting-person settlements.elnora-merit vendors list --name "AWS" # broad match — always filter
elnora-merit vendors list --reg-no 12345678 # exact
Create (required: Name, CountryCode, VatAccountable lowercase "true"/"false"):
elnora-merit vendors create --data '{"Name":"Amazon Web Services EMEA SARL",
"CountryCode":"LU","VatAccountable":"true","VatRegNo":"LU26888617",
"Email":"","BankAccount":""}'
Set CountryCode correctly — it drives reverse-charge treatment. Uncheck VAT liability
("VatAccountable":"false") only for genuinely non-VAT-registered vendors.
Read the full schema with elnora-merit purchase-invoices create --help. Minimum body:
{
"Vendor": { "Id": "<vendor-guid>" },
"DocDate": "20260601",
"DueDate": "20260615",
"BillNo": "INV-99812",
"InvoiceRow": [
{ "Item": { "Code": "CLOUD", "Description": "Cloud hosting", "Type": 2 },
"Quantity": 1, "Price": 340.00, "TaxId": "<taxid>", "GLAccountCode": "<expense-acct>" }
],
"TaxAmount": [ { "TaxId": "<taxid>", "Amount": 81.60 } ],
"TotalAmount": 340.00
}
elnora-merit purchase-invoices create --file bill.json # straight to ledger
elnora-merit purchase-invoices create-pending --file bill.json # awaits approval
DocDate / DueDate are YYYYMMDD in the purchase body (note: different from the
sales body's YYYYMMDDHHMMSS). Item.Type: 1 stock, 2 service, 3 item.Attachment: { FileName, FileContent } (valid Base64 PDF
— broken Base64 is a common server-side failure).--v2 adds header/row Dimensions and Receiver support.--v2 (the v2 get returns
the Base64 Attachment; the v1 get omits it).A common, costly miscoding when you pick the expense account: food / catering at an event you sell tickets to (training, seminar, conference, hackathon) is an ordinary deductible expense with full input-VAT recovery, not representation (vastuvõtukulud, TuMS § 49). EMTA's test is the contractual relationship: representation is hosting guests or business partners you have no contract with; paying ticket-holders are customers, so catering provided to them is a direct cost of the taxable service sold. Book it to a normal event / operating-expense account, deduct the input VAT, and keep evidence the catering was part of the paid package available to all attendees. A separate free, invite-only dinner for partners / sponsors is representation (TuMS § 49 monthly limit, input VAT restricted). Source: EMTA TSD handbook, TuMS § 49.
Enter a normal purchase invoice with negative Quantity on the lines (Merit has no
separate create-credit for purchases). To net the credit against the original bill, use
a settlement (payments send-settlement, see merit-payments-bank).
elnora-merit purchase-invoices list --period-start 20260101 --period-end 20260331 # posted, max 3 months
elnora-merit purchase-invoices find --period-start 20260101 --period-end 20260331 # v2, richer rows
elnora-merit purchase-invoices list-pending # awaiting approval
elnora-merit purchase-invoices get <PIHId> # full detail
elnora-merit purchase-invoices pay --file payment.json # record a payment (sendPaymentV)
Prefer matching payments in the imported bank statement over pay — see
merit-payments-bank. Recording a vendor-bill payment is also payments create-purchase.
vendors list unfiltered — server stacktrace.merit-reverse-charge).Payment block for a bank-paid bill you'll reconcile from the statement —
that double-books it.create / create-pending / pay / delete. Respect closed periods.delete <id> is irreversible — only on a record the user named.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