Merit Aktiva MCP by usefulapi

v1.28.1
io.usefulapi/merit-aktiva Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
period_end *stringLast day of the period, yyyy-mm-dd (max 3 months after the start).
period_start *stringFirst day of the period, yyyy-mm-dd.
date_typeWhich date the period filters: 0 = document date (default), 1 = date of last change.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
unpaid_onlybooleantrue = 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.

ParameterTypeDescription
customer_idstringCustomer id (from merit_list_customers).
customer_namestringCustomer name.
invoice_nostringInvoice number.
max_resultsintegerShow 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.

ParameterTypeDescription
id *stringInvoice 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.

ParameterTypeDescription
period_end *stringLast day of the period, yyyy-mm-dd (max 3 months after the start).
period_start *stringFirst day of the period, yyyy-mm-dd.
date_typeWhich date the period filters: 0 = document date (default), 1 = date of last change.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
unpaid_onlybooleantrue = 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.

ParameterTypeDescription
id *stringPurchase 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.

ParameterTypeDescription
changed_sincestringOnly customers created or changed on or after this date.
idstringCustomer id.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
namestringPart of the customer name.
reg_nostringRegistry number, exact.
vat_reg_nostringVAT 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.

ParameterTypeDescription
changed_sincestringOnly vendors created or changed on or after this date.
idstringVendor id.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
namestringPart of the vendor name.
reg_nostringRegistry number, exact.
vat_reg_nostringVAT 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.

ParameterTypeDescription
codestringPart of the item code.
descriptionstringPart of the item description.
idstringItem id.
location_codestringWarehouse code: adds goods on hand quantity and cost.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
type1 = 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.

ParameterTypeDescription
max_resultsintegerShow 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.

ParameterTypeDescription
max_resultsintegerShow 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.

ParameterTypeDescription
max_resultsintegerShow 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.

ParameterTypeDescription
max_resultsintegerShow 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.

ParameterTypeDescription
all_valuesbooleantrue = include expired dimension values (default false).
max_resultsintegerShow 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.

ParameterTypeDescription
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
type1 = 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.

ParameterTypeDescription
period_end *stringLast day of the period, yyyy-mm-dd (max 3 months after the start).
period_start *stringFirst day of the period, yyyy-mm-dd.
bank_idstringOnly this bank account (BankId from merit_list_banks).
date_typeWhich date the period filters: 0 = document date (default), 1 = date of last change.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
payment_typeintegerMerit 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.

ParameterTypeDescription
bank_id *stringBankId from merit_list_banks.
direction *stringincome = payments received, expense = payments made.
doc_date_from *stringDocument date from, yyyy-mm-dd.
doc_date_to *stringDocument date to, yyyy-mm-dd (max 3 months after doc_date_from).
max_resultsintegerShow 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.

ParameterTypeDescription
period_end *stringLast day of the period, yyyy-mm-dd (max 3 months after the start).
period_start *stringFirst day of the period, yyyy-mm-dd.
date_typeWhich date the period filters: 0 = document date (default), 1 = date of last change.
max_resultsintegerShow 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.

ParameterTypeDescription
id *stringBatch 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.

ParameterTypeDescription
as_ofstringDebt as of this date (default today).
customer_idstringCustomer id.
customer_namestringCustomer name; an empty string or omitting it with no customer_id selects ALL customers.
max_resultsintegerShow at most this many rows (default 100, max 1000); the reply says how many there are in total.
over_due_daysintegerOnly 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.

ParameterTypeDescription
period_end *stringPeriod end, yyyy-mm-dd.
period_start *stringPeriod start, yyyy-mm-dd.
currency_codestringCurrency, e.g. EUR.
customer_idstringCustomer id.
customer_namestringCustomer 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.

ParameterTypeDescription
end_date *stringLast day of the newest month, yyyy-mm-dd.
department_codestringOnly this department (code from merit_list_departments).
per_countintegerNumber 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.

ParameterTypeDescription
end_date *stringBalance date, yyyy-mm-dd.
per_countintegerNumber 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.

ParameterTypeDescription
end_date *stringPeriod end, yyyy-mm-dd.
report_type *1 = by invoices, 2 = by customers, 3 = by items, 4 = by countries, 5 = by countries (general).
start_date *stringPeriod start, yyyy-mm-dd.
max_resultsintegerShow 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.

ParameterTypeDescription
end_date *stringPeriod end, yyyy-mm-dd.
report_type *1 = by invoices, 2 = by vendors, 3 = by items, 4 = by fixed assets.
start_date *stringPeriod start, yyyy-mm-dd.
max_resultsintegerShow 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.

ParameterTypeDescription
country_code *string2-letter ISO country code, e.g. EE, PL.
name *stringCustomer name (unique in the company).
not_td_customer *booleantrue for private persons and foreign companies (Estonia), true for private persons (Poland); false for a local company.
addressstringStreet address.
bank_accountstringCustomer bank account (IBAN).
citystringCity.
contactstringContact person.
countystringCounty.
currency_codestringDefault currency, e.g. EUR.
emailstringE-mail address (stored only; Merit sends nothing).
home_pagestringWeb page.
payment_deadline_daysintegerPayment term in days (default from company settings).
phone_nostringPhone number.
postal_codestringPostal code.
reg_nostringRegistry or personal id code.
sales_invoice_languagestringInvoice language for this customer (Estonia: ET, EN, RU, FI; Poland: PL, EN, RU).
vat_reg_nostringVAT number.