CashCtrl MCP by usefulapi

v1.28.1
io.usefulapi/cashctrl Checked 2 days ago Published 22 hours ago

Read CashCtrl accounts, journal, orders, people, articles, salaries and reports; book and create.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cashctrl_list_accounts List accounts

The chart of accounts: number, name, category and the balance for the fiscal period. Not paged. GET /account/list.json.

ParameterTypeDescription
category_idintegerOnly accounts of this category (cashctrl_list_account_categories).
dirstringSort direction (each list has its own default).
filterarrayColumn filters, all must match (AND).
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods); default is the current period.
only_activebooleanOnly active accounts.
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).

cashctrl_get_account Get an account

One account of the chart of accounts by id. GET /account/read.json.

ParameterTypeDescription
id *integerThe account id (from cashctrl_list_accounts; not the account number).

cashctrl_get_account_balance Get an account balance

The balance of one account at the end of a day (default: the last day of the current fiscal period). GET /account/balance.

ParameterTypeDescription
id *integerThe account id (from cashctrl_list_accounts).
datestringBalance at the end of this day, yyyy-mm-dd.

cashctrl_list_account_categories List account categories

The categories of the chart of accounts (assets, liabilities, expenses, revenue and their sub-categories). GET /account/category/list.json.

cashctrl_list_bank_accounts List bank accounts

The bank accounts set up in CashCtrl (name, IBAN, linked ledger account). GET /account/bank/list.json.

cashctrl_list_journal List journal entries

Book entries of the journal (date, title, debit and credit account, amount, reference), newest first, for the current fiscal period unless fiscal_period_id is set. GET /journal/list.json.

ParameterTypeDescription
account_idintegerOnly entries of this account (cashctrl_list_accounts).
associate_idintegerOnly entries of this person (cashctrl_list_persons).
dirstringSort direction (each list has its own default).
filterarrayColumn filters, all must match (AND).
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods); default is the current period.
limitintegerRows to return, 1-500 (default 100).
only_collectivebooleanOnly collective entries.
only_importedbooleanOnly imported (bank) entries.
only_manualbooleanOnly manual entries.
only_purchasebooleanOnly entries created by purchase orders.
only_salarybooleanOnly entries created by salary statements.
only_salesbooleanOnly entries created by sales orders.
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).
startintegerIndex of the first row (default 0). Use next_start from the previous reply.

cashctrl_get_journal_entry Get a journal entry

One book entry by id, with its items for a collective entry. GET /journal/read.json.

ParameterTypeDescription
id *integerThe journal entry id (from cashctrl_list_journal).

cashctrl_list_orders List orders

Sales or purchase documents (quotes, order confirmations, invoices, delivery notes, credit notes, vendor bills) with number, date, customer, status and total. Newest first. GET /order/list.json.

ParameterTypeDescription
category_idintegerOnly this order category (cashctrl_list_order_categories), for example Invoice.
dirstringSort direction (each list has its own default).
filterarrayColumn filters, all must match (AND).
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods); default is the current period.
limitintegerRows to return, 1-500 (default 100).
only_openbooleanOnly open (not completed) orders, for example unpaid invoices.
only_overduebooleanOnly orders past their due date.
person_idintegerOnly orders of this person (cashctrl_list_persons).
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).
startintegerIndex of the first row (default 0). Use next_start from the previous reply.
status_idintegerOnly this status (the status ids are in cashctrl_list_order_categories).
typestringSALES or PURCHASE documents.

cashctrl_get_order Get an order

One order (invoice, quote, purchase document) by id, with its items, totals and status. GET /order/read.json.

ParameterTypeDescription
id *integerThe order id (from cashctrl_list_orders).

cashctrl_list_order_categories List order categories

The order categories (Quote, Invoice, Credit note, Purchase invoice and so on) with their statuses (Draft, Open, Paid) and the default accounts and sequence numbers. Use it to find category_id and status_id (type PURCHASE for purchase documents). GET /order/category/list.json.

ParameterTypeDescription
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods); default is the current period.
typestringSALES (default) or PURCHASE categories.

cashctrl_list_persons List people

Customers, vendors, employees and other contacts (name, company, number, roles, addresses). GET /person/list.json.

ParameterTypeDescription
category_idintegerOnly this person category.
dirstringSort direction (each list has its own default).
filterarrayColumn filters, all must match (AND).
limitintegerRows to return, 1-500 (default 100).
only_activebooleanOnly active people.
only_customersbooleanOnly customers.
only_employeesbooleanOnly employees.
only_vendorsbooleanOnly vendors.
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).
startintegerIndex of the first row (default 0). Use next_start from the previous reply.

cashctrl_get_person Get a person

One person or company by id, with addresses, contact data and bank accounts. GET /person/read.json.

ParameterTypeDescription
id *integerThe person id (from cashctrl_list_persons).

cashctrl_list_articles List inventory articles

Inventory articles (products and services) with number, name, price, stock and accounts. GET /inventory/article/list.json.

ParameterTypeDescription
category_idintegerOnly this article category.
dirstringSort direction (each list has its own default).
filterarrayColumn filters, all must match (AND).
limitintegerRows to return, 1-500 (default 100).
only_activebooleanOnly active articles.
only_restockbooleanOnly articles that need restocking.
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).
startintegerIndex of the first row (default 0). Use next_start from the previous reply.

cashctrl_get_article Get an inventory article

One inventory article by id. GET /inventory/article/read.json.

ParameterTypeDescription
id *integerThe article id (from cashctrl_list_articles).

cashctrl_list_salary_statements List salary statements

Payroll statements (employee, date, status, gross and net amounts), newest first. Sensitive personal data. GET /salary/statement/list.json.

ParameterTypeDescription
dirstringSort direction (each list has its own default).
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods); default is the current period.
limitintegerRows to return, 1-500 (default 100).
only_openbooleanOnly open (not yet paid) statements.
only_overduebooleanOnly statements past their payment date.
person_idintegerOnly statements of this employee (cashctrl_list_persons).
querystringFull-text search.
sortstringColumn to sort by (a column name of the list reply; each list has its own default).
startintegerIndex of the first row (default 0). Use next_start from the previous reply.

cashctrl_get_salary_statement Get a salary statement

One payroll statement by id, with its salary items. Sensitive personal data. GET /salary/statement/read.json.

ParameterTypeDescription
id *integerThe statement id (from cashctrl_list_salary_statements).

cashctrl_list_fiscal_periods List fiscal periods

All fiscal periods (id, name, start, end, current flag). The id is the fiscal_period_id of the other tools. GET /fiscalperiod/list.json.

cashctrl_list_tax_codes List tax codes

The VAT tax codes (id, code, name, rates). The id is the tax_id of the write tools. GET /tax/list.json.

cashctrl_list_sequence_numbers List sequence numbers

The number sequences (for journal references, order numbers, customer numbers). The id is the sequence_number_id of the write tools. GET /sequencenumber/list.json.

cashctrl_list_currencies List currencies

The currencies set up in CashCtrl with their exchange rates. GET /currency/list.json.

cashctrl_get_report_tree Get the report tree

The reports set up in CashCtrl (balance sheet, income statement, and so on) as a tree of collections and elements. The element id is the input of cashctrl_get_report_data. GET /report/tree.json.

cashctrl_get_report_data Get report data

The data of one report element (for example the balance sheet or the income statement) for a fiscal period or a date range. GET /report/element/data.json.

ParameterTypeDescription
element_id *integerThe report element id (from cashctrl_get_report_tree).
end_datestringEnd of the period, yyyy-mm-dd.
fiscal_period_idintegerFiscal period id (cashctrl_list_fiscal_periods). It replaces start_date and end_date.
start_datestringStart of the period, yyyy-mm-dd.

cashctrl_create_journal_entry Create a journal entry

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. Creates a manual book entry in the journal. Either a simple entry (debit_account_id, credit_account_id, amount) or a collective entry (items, whose debit and credit sums must match). POST /journal/create.json.

ParameterTypeDescription
title *stringDescription of the entry (max 250 characters).
amountnumberAmount of a simple entry, for example 125.50.
associate_idintegerThe person this entry belongs to (cashctrl_list_persons).
credit_account_idintegerCredit account id (cashctrl_list_accounts). For a simple entry.
datestringBooking date, yyyy-mm-dd (CashCtrl uses today when omitted).
debit_account_idintegerDebit account id (cashctrl_list_accounts). For a simple entry.
itemsarrayLines of a collective entry. Use it instead of debit_account_id, credit_account_id and amount.
referencestringReceipt or reference text (max 100).
sequence_number_idintegerSequence number that generates the reference (cashctrl_list_sequence_numbers).
tax_idintegerTax code id of a simple entry (cashctrl_list_tax_codes).

cashctrl_delete_journal_entries Delete journal entries

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. DELETES manual journal entries by id (entries created by orders or salary statements cannot be deleted this way). Deleted entries are gone from the books; confirm the ids with the user first. POST /journal/delete.json.

ParameterTypeDescription
ids *array1-20 journal entry ids.

cashctrl_create_order Create an order

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. Creates ONE order document for ONE customer or vendor: a quote, invoice, credit note, purchase bill and so on, depending on category_id. Without status_id the first status of the category is used; a booking status (for example Open) also creates journal entries, so use a draft status unless the user asks otherwise. No e-mail is sent. POST /order/create.json.

ParameterTypeDescription
associate_id *integerThe customer or vendor (cashctrl_list_persons).
category_id *integerOrder category id (cashctrl_list_order_categories), for example the Invoice category.
date *stringDocument date, yyyy-mm-dd.
items *array1-200 order items.
account_idintegerDebtors or creditors account id; default from the category.
descriptionstringDescription of the document (max 200).
discount_percentagenumberDiscount of the whole order in percent.
due_daysintegerDays until payment is due.
languagestringLanguage of the document.
nrstringOrder number. Leave empty to use the sequence number of the category.
sequence_number_idintegerSequence number for the order number (cashctrl_list_sequence_numbers).
status_idintegerStatus id (cashctrl_list_order_categories). Default: the first status of the category.

cashctrl_update_order_status Change the status of orders

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. Sets the status of 1-20 orders (for example Draft to Open, or Open to Paid). A status can book journal entries or move stock, so the books change. POST /order/update_status.json.

ParameterTypeDescription
ids *array1-20 order ids.
status_id *integerThe new status id (from the statuses of the order category, cashctrl_list_order_categories).

cashctrl_delete_orders Delete orders

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. DELETES orders (invoices, quotes, purchase documents) by id, with the journal entries they created. Deleted documents are gone; confirm the ids with the user first. POST /order/delete.json.

ParameterTypeDescription
ids *array1-20 order ids.

cashctrl_create_person Create a person or company

WRITE: changes the accounting records. Makes one request that is never repeated; check the result before trying again. Creates a customer, vendor or other contact. Give company, first_name or last_name (at least one). Search first with cashctrl_list_persons so no duplicate is created. POST /person/create.json.

ParameterTypeDescription
addressesarrayAddresses.
category_idintegerPerson category id.
companystringCompany name.
contactsarrayE-mail addresses, phone numbers and websites.
first_namestringFirst name.
is_customerbooleanMark as customer.
is_vendorbooleanMark as vendor.
languagestringLanguage of documents for this person.
last_namestringLast name.
nrstringPerson number, for example the customer number.
vat_uidstringVAT number (UID), for example CHE-123.456.789 MWST.