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.
Parametersdate_typeperiod_endrequiredmax_resultsunpaid_onlyperiod_startrequired
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.
Parametersinvoice_nocustomer_idmax_resultscustomer_name
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.
Parametersidrequired
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.
Parametersdate_typeperiod_endrequiredmax_resultsunpaid_onlyperiod_startrequired
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.
Parametersidrequired
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.
Parametersidnamereg_novat_reg_nomax_resultschanged_since
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.
Parametersidnamereg_novat_reg_nomax_resultschanged_since
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.
Parametersidcodetypedescriptionmax_resultslocation_code
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.
Parametersmax_results
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.
Parametersmax_results
merit_list_departments
List departments
Departments (code, name, active flag). GET /api/v2/departments.
Parametersmax_results
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.
Parametersmax_results
merit_list_financial_years
List financial years
Accounting periods (financial years) with start, end and active flag. POST /api/v2/getaccperiods.
Takes no parameters.
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.
Parametersall_valuesmax_results
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.
Parameterstypemax_results
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.
Parametersbank_iddate_typeperiod_endrequiredmax_resultspayment_typeperiod_startrequired
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.
Parametersbank_idrequireddirectionrequireddoc_date_torequiredmax_resultsdoc_date_fromrequired
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.
Parametersdate_typeperiod_endrequiredmax_resultsperiod_startrequired
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.
Parametersidrequired
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.
Parametersas_ofcustomer_idmax_resultscustomer_nameover_due_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.
Parametersperiod_endrequiredcustomer_idperiod_startrequiredcurrency_codecustomer_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.
Parametersend_daterequiredper_countdepartment_code
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.
Parametersend_daterequiredper_count
merit_sales_report
Sales report
Sales totals for a period, grouped by invoice, customer, item or country. POST /api/v2/getsalesrep.
Parametersend_daterequiredstart_daterequiredmax_resultsreport_typerequired
merit_purchase_report
Purchase report
Purchase totals for a period, grouped by invoice, vendor, item or fixed asset. POST /api/v2/getpurchrep.
Parametersend_daterequiredstart_daterequiredmax_resultsreport_typerequired
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.
Parameterscitynamerequiredemailcountyreg_noaddresscontactphone_nohome_pagevat_reg_nopostal_codebank_account+5 more