CashCtrl MCP by usefulapi
v1.28.1Read 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.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only accounts of this category (cashctrl_list_account_categories). |
dir | string | Sort direction (each list has its own default). |
filter | array | Column filters, all must match (AND). |
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods); default is the current period. |
only_active | boolean | Only active accounts. |
query | string | Full-text search. |
sort | string | Column 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The account id (from cashctrl_list_accounts). |
date | string | Balance 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.
| Parameter | Type | Description |
|---|---|---|
account_id | integer | Only entries of this account (cashctrl_list_accounts). |
associate_id | integer | Only entries of this person (cashctrl_list_persons). |
dir | string | Sort direction (each list has its own default). |
filter | array | Column filters, all must match (AND). |
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods); default is the current period. |
limit | integer | Rows to return, 1-500 (default 100). |
only_collective | boolean | Only collective entries. |
only_imported | boolean | Only imported (bank) entries. |
only_manual | boolean | Only manual entries. |
only_purchase | boolean | Only entries created by purchase orders. |
only_salary | boolean | Only entries created by salary statements. |
only_sales | boolean | Only entries created by sales orders. |
query | string | Full-text search. |
sort | string | Column to sort by (a column name of the list reply; each list has its own default). |
start | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only this order category (cashctrl_list_order_categories), for example Invoice. |
dir | string | Sort direction (each list has its own default). |
filter | array | Column filters, all must match (AND). |
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods); default is the current period. |
limit | integer | Rows to return, 1-500 (default 100). |
only_open | boolean | Only open (not completed) orders, for example unpaid invoices. |
only_overdue | boolean | Only orders past their due date. |
person_id | integer | Only orders of this person (cashctrl_list_persons). |
query | string | Full-text search. |
sort | string | Column to sort by (a column name of the list reply; each list has its own default). |
start | integer | Index of the first row (default 0). Use next_start from the previous reply. |
status_id | integer | Only this status (the status ids are in cashctrl_list_order_categories). |
type | string | SALES 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods); default is the current period. |
type | string | SALES (default) or PURCHASE categories. |
cashctrl_list_persons List people
Customers, vendors, employees and other contacts (name, company, number, roles, addresses). GET /person/list.json.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only this person category. |
dir | string | Sort direction (each list has its own default). |
filter | array | Column filters, all must match (AND). |
limit | integer | Rows to return, 1-500 (default 100). |
only_active | boolean | Only active people. |
only_customers | boolean | Only customers. |
only_employees | boolean | Only employees. |
only_vendors | boolean | Only vendors. |
query | string | Full-text search. |
sort | string | Column to sort by (a column name of the list reply; each list has its own default). |
start | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only this article category. |
dir | string | Sort direction (each list has its own default). |
filter | array | Column filters, all must match (AND). |
limit | integer | Rows to return, 1-500 (default 100). |
only_active | boolean | Only active articles. |
only_restock | boolean | Only articles that need restocking. |
query | string | Full-text search. |
sort | string | Column to sort by (a column name of the list reply; each list has its own default). |
start | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
dir | string | Sort direction (each list has its own default). |
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods); default is the current period. |
limit | integer | Rows to return, 1-500 (default 100). |
only_open | boolean | Only open (not yet paid) statements. |
only_overdue | boolean | Only statements past their payment date. |
person_id | integer | Only statements of this employee (cashctrl_list_persons). |
query | string | Full-text search. |
sort | string | Column to sort by (a column name of the list reply; each list has its own default). |
start | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
element_id * | integer | The report element id (from cashctrl_get_report_tree). |
end_date | string | End of the period, yyyy-mm-dd. |
fiscal_period_id | integer | Fiscal period id (cashctrl_list_fiscal_periods). It replaces start_date and end_date. |
start_date | string | Start 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.
| Parameter | Type | Description |
|---|---|---|
title * | string | Description of the entry (max 250 characters). |
amount | number | Amount of a simple entry, for example 125.50. |
associate_id | integer | The person this entry belongs to (cashctrl_list_persons). |
credit_account_id | integer | Credit account id (cashctrl_list_accounts). For a simple entry. |
date | string | Booking date, yyyy-mm-dd (CashCtrl uses today when omitted). |
debit_account_id | integer | Debit account id (cashctrl_list_accounts). For a simple entry. |
items | array | Lines of a collective entry. Use it instead of debit_account_id, credit_account_id and amount. |
reference | string | Receipt or reference text (max 100). |
sequence_number_id | integer | Sequence number that generates the reference (cashctrl_list_sequence_numbers). |
tax_id | integer | Tax 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.
| Parameter | Type | Description |
|---|---|---|
ids * | array | 1-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.
| Parameter | Type | Description |
|---|---|---|
associate_id * | integer | The customer or vendor (cashctrl_list_persons). |
category_id * | integer | Order category id (cashctrl_list_order_categories), for example the Invoice category. |
date * | string | Document date, yyyy-mm-dd. |
items * | array | 1-200 order items. |
account_id | integer | Debtors or creditors account id; default from the category. |
description | string | Description of the document (max 200). |
discount_percentage | number | Discount of the whole order in percent. |
due_days | integer | Days until payment is due. |
language | string | Language of the document. |
nr | string | Order number. Leave empty to use the sequence number of the category. |
sequence_number_id | integer | Sequence number for the order number (cashctrl_list_sequence_numbers). |
status_id | integer | Status 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.
| Parameter | Type | Description |
|---|---|---|
ids * | array | 1-20 order ids. |
status_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
ids * | array | 1-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.
| Parameter | Type | Description |
|---|---|---|
addresses | array | Addresses. |
category_id | integer | Person category id. |
company | string | Company name. |
contacts | array | E-mail addresses, phone numbers and websites. |
first_name | string | First name. |
is_customer | boolean | Mark as customer. |
is_vendor | boolean | Mark as vendor. |
language | string | Language of documents for this person. |
last_name | string | Last name. |
nr | string | Person number, for example the customer number. |
vat_uid | string | VAT number (UID), for example CHE-123.456.789 MWST. |