Merit Aktiva MCP by usefulapi
v1.28.1Read Merit Aktiva invoices, customers, vendors, items, payments and reports; create a customer.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
merit_list_sales_invoices List sales invoices
List sales invoices (header level: number, customer, dates, totals, paid flag) of a period. The period may span at most 3 months (Merit limit); for longer spans make several calls. Use merit_get_sales_invoice for the lines. POST /api/v2/getinvoices.
| Parameter | Type | Description |
|---|---|---|
period_end * | string | Last day of the period, yyyy-mm-dd (max 3 months after the start). |
period_start * | string | First day of the period, yyyy-mm-dd. |
date_type | Which date the period filters: 0 = document date (default), 1 = date of last change. | |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
unpaid_only | boolean | true = only unpaid invoices. |
merit_search_sales_invoices Find sales invoices by number or customer
Find sales invoices by invoice number, customer name or customer id (give at least one). POST /api/v2/getinvoices2.
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Customer id (from merit_list_customers). |
customer_name | string | Customer name. |
invoice_no | string | Invoice number. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_get_sales_invoice Get a sales invoice
One sales invoice in full: header, lines (items, quantities, VAT, accounts), payments and dimension allocations. The PDF attachment is never requested. POST /api/v2/getinvoice.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice id (SIHId from merit_list_sales_invoices). |
merit_list_purchase_invoices List purchase invoices
List purchase invoices (vendor bills) of a period: bill number, vendor, dates, totals, paid flag. The period may span at most 3 months (Merit limit); for longer spans make several calls. POST /api/v2/getpurchorders.
| Parameter | Type | Description |
|---|---|---|
period_end * | string | Last day of the period, yyyy-mm-dd (max 3 months after the start). |
period_start * | string | First day of the period, yyyy-mm-dd. |
date_type | Which date the period filters: 0 = document date (default), 1 = date of last change. | |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
unpaid_only | boolean | true = only unpaid bills. |
merit_get_purchase_invoice Get a purchase invoice
One purchase invoice in full: header, lines, payments. The attachment is never requested. POST /api/v2/getpurchorder.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase invoice id (PIHId from merit_list_purchase_invoices). |
merit_list_customers Search customers
Search customers by name (partial match), registry number or VAT number (exact), id, or changed since a date. At least one filter is required: Merit cannot return the whole customer list in one reply. POST /api/v1/getcustomers.
| Parameter | Type | Description |
|---|---|---|
changed_since | string | Only customers created or changed on or after this date. |
id | string | Customer id. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
name | string | Part of the customer name. |
reg_no | string | Registry number, exact. |
vat_reg_no | string | VAT number, exact. |
merit_list_vendors Search vendors
Search vendors (suppliers) by name (partial match), registry number or VAT number (exact), id, or changed since a date. At least one filter is required: Merit cannot return the whole vendor list in one reply. POST /api/v1/getvendors.
| Parameter | Type | Description |
|---|---|---|
changed_since | string | Only vendors created or changed on or after this date. |
id | string | Vendor id. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
name | string | Part of the vendor name. |
reg_no | string | Registry number, exact. |
vat_reg_no | string | VAT number, exact. |
merit_list_items List items (articles)
List items, services and stock articles with price, unit, VAT and accounts. Optional filters: code or description (partial), type, id. With location_code the reply adds stock quantity and cost of that warehouse. POST /api/v1/getitems.
| Parameter | Type | Description |
|---|---|---|
code | string | Part of the item code. |
description | string | Part of the item description. |
id | string | Item id. |
location_code | string | Warehouse code: adds goods on hand quantity and cost. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
type | 1 = stock item, 2 = service, 3 = item. |
merit_list_accounts List the chart of accounts
The general ledger chart of accounts (code, names, VAT, parent flag, active flag). GET /api/v2/accounts.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_taxes List VAT rates
All VAT rates of the company (TaxId, code, name, percent, active flag). The TaxId is what invoice rows refer to. GET /api/v2/taxes.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_departments List departments
Departments (code, name, active flag). GET /api/v2/departments.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_banks List bank accounts
The company's bank and cash accounts (BankId, name, IBAN, currency, ledger account). BankId feeds the payment tools. GET /api/v2/banks.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_financial_years List financial years
Accounting periods (financial years) with start, end and active flag. POST /api/v2/getaccperiods.
merit_list_dimensions List dimensions
Accounting dimensions and their values (DimId, name, value code, expiry). all_values = true also lists expired values. POST /api/v2/getdimensions.
| Parameter | Type | Description |
|---|---|---|
all_values | boolean | true = include expired dimension values (default false). |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_payment_types List payment types
Payment methods and sources (cash, banks, reporting entities, ledger accounts) usable for purchases, expense reports or sales. POST /api/v2/getpaymenttypes.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
type | 1 = purchases, 2 = expense reports, 3 = sales. |
merit_list_payments List payments
List payments (customer and vendor receipts and payouts) of a period, with the documents they paid. The period may span at most 3 months (Merit limit); for longer spans make several calls. POST /api/v2/getpayments.
| Parameter | Type | Description |
|---|---|---|
period_end * | string | Last day of the period, yyyy-mm-dd (max 3 months after the start). |
period_start * | string | First day of the period, yyyy-mm-dd. |
bank_id | string | Only this bank account (BankId from merit_list_banks). |
date_type | Which date the period filters: 0 = document date (default), 1 = date of last change. | |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
payment_type | integer | Merit payment type filter (see merit_list_payment_types). |
merit_list_bank_payments List income or expense payments of a bank account
List the income payments (money received) or expense payments (money paid out) booked on one bank account for a document-date period, with the documents each paid. The period may span at most 3 months (Merit limit); for longer spans make several calls. GET /api/v2/Banks/{bankId}/IncomePayments or /ExpensePayments.
| Parameter | Type | Description |
|---|---|---|
bank_id * | string | BankId from merit_list_banks. |
direction * | string | income = payments received, expense = payments made. |
doc_date_from * | string | Document date from, yyyy-mm-dd. |
doc_date_to * | string | Document date to, yyyy-mm-dd (max 3 months after doc_date_from). |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_list_gl_batches List general ledger transactions
List general ledger batches (journal entries, also those created from invoices and payments) of a period: batch code, number, date, total. The period may span at most 3 months (Merit limit); for longer spans make several calls. POST /api/v1/getglbatches.
| Parameter | Type | Description |
|---|---|---|
period_end * | string | Last day of the period, yyyy-mm-dd (max 3 months after the start). |
period_start * | string | First day of the period, yyyy-mm-dd. |
date_type | Which date the period filters: 0 = document date (default), 1 = date of last change. | |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_get_gl_batch Get a general ledger transaction
One general ledger batch with all its debit and credit lines (account, memo, department, tax, amounts). The attachment is never requested. POST /api/v1/getglbatch.
| Parameter | Type | Description |
|---|---|---|
id * | string | Batch id (GLBId from merit_list_gl_batches). |
merit_customer_debts_report Customer debts report
Open customer receivables: for each unpaid document the customer, date, due date, total, paid and unpaid amount. Give a customer name (empty string = all customers) or a customer id; over_due_days keeps only documents overdue by at least that many days. POST /api/v1/getcustdebtrep.
| Parameter | Type | Description |
|---|---|---|
as_of | string | Debt as of this date (default today). |
customer_id | string | Customer id. |
customer_name | string | Customer name; an empty string or omitting it with no customer_id selects ALL customers. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
over_due_days | integer | Only documents overdue by at least this many days. |
merit_customer_payments_report Customer payments report
Customer invoices with their unpaid amount and overdue flag for a period, for one customer (name or id). Only the FIRST page is returned: if has_more is true, narrow the period or the customer (the continuation endpoint is not supported). POST /api/v2/getcustpaymrep.
| Parameter | Type | Description |
|---|---|---|
period_end * | string | Period end, yyyy-mm-dd. |
period_start * | string | Period start, yyyy-mm-dd. |
currency_code | string | Currency, e.g. EUR. |
customer_id | string | Customer id. |
customer_name | string | Customer name. |
merit_income_statement Income statement (profit and loss)
The profit and loss report: one row per report line, with balances for per_count months counting back from end_date (newest first). Optional department filter. POST /api/v1/getprofitrep.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Last day of the newest month, yyyy-mm-dd. |
department_code | string | Only this department (code from merit_list_departments). |
per_count | integer | Number of monthly periods, counting back from end_date (default 1). |
merit_balance_sheet Balance sheet
The balance sheet: one row per report line (assets, liabilities, equity) with balances for per_count months counting back from end_date. POST /api/v1/getbalancerep.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Balance date, yyyy-mm-dd. |
per_count | integer | Number of monthly periods, counting back from end_date (default 1). |
merit_sales_report Sales report
Sales totals for a period, grouped by invoice, customer, item or country. POST /api/v2/getsalesrep.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Period end, yyyy-mm-dd. |
report_type * | 1 = by invoices, 2 = by customers, 3 = by items, 4 = by countries, 5 = by countries (general). | |
start_date * | string | Period start, yyyy-mm-dd. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_purchase_report Purchase report
Purchase totals for a period, grouped by invoice, vendor, item or fixed asset. POST /api/v2/getpurchrep.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Period end, yyyy-mm-dd. |
report_type * | 1 = by invoices, 2 = by vendors, 3 = by items, 4 = by fixed assets. | |
start_date * | string | Period start, yyyy-mm-dd. |
max_results | integer | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. |
merit_create_customer Create a customer
WRITE: creates ONE new customer record in the Merit company (name must be unique; an existing customer is never overwritten, Merit answers with an error). Nothing is invoiced, sent or paid. In Estonia not_td_customer must be true for private persons and foreign companies; city is required in Estonia for a non-EE country. Returns the new customer id. POST /api/v2/sendcustomer.
| Parameter | Type | Description |
|---|---|---|
country_code * | string | 2-letter ISO country code, e.g. EE, PL. |
name * | string | Customer name (unique in the company). |
not_td_customer * | boolean | true for private persons and foreign companies (Estonia), true for private persons (Poland); false for a local company. |
address | string | Street address. |
bank_account | string | Customer bank account (IBAN). |
city | string | City. |
contact | string | Contact person. |
county | string | County. |
currency_code | string | Default currency, e.g. EUR. |
email | string | E-mail address (stored only; Merit sends nothing). |
home_page | string | Web page. |
payment_deadline_days | integer | Payment term in days (default from company settings). |
phone_no | string | Phone number. |
postal_code | string | Postal code. |
reg_no | string | Registry or personal id code. |
sales_invoice_language | string | Invoice language for this customer (Estonia: ET, EN, RU, FI; Poland: PL, EN, RU). |
vat_reg_no | string | VAT number. |