SuperFaktura MCP by usefulapi
v1.28.2Read SuperFaktura invoices, clients, expenses, bank and stock; create clients, expenses and drafts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
superfaktura_get_company Get the company profile and API limits
The company the API key is working in (name, IČO, DIČ, IČ DPH, address, VAT-payer flag, bank accounts) and the remaining API quota (SuperFaktura's fair-use policy is 1000 requests per day and 31000 per month; every tool call here uses one request). Good first call. With all_companies=true also the other companies the user can access (their ids are the company_id of the login). GET /users/getUserCompaniesData.
| Parameter | Type | Description |
|---|---|---|
all_companies | boolean | true = every company the user has access to, not only the current one. |
superfaktura_list_invoices List or search invoices
List issued documents with client, items, totals and payment status. type selects the document kind (default regular = ordinary invoices; also proforma, estimate = quote, order, cancel = credit note, delivery, draft, reverse_order; several allowed). Without a date filter SuperFaktura returns only the CURRENT YEAR; use created_period='all' or a date range for older ones. status: issued, partially_paid, paid, overdue. search matches client name, number, VS ... Paged: pass next_page as page. GET /invoices/index.json.
| Parameter | Type | Description |
|---|---|---|
amount_from | number | Minimum amount. |
amount_to | number | Maximum amount. |
client_id | integer | Only documents of this client (superfaktura_list_clients). |
created_period | string | Issue date as a period (default this_year when no date filter is given). |
created_since | string | Issued on or after (yyyy-mm-dd). |
created_to | string | Issued on or before (yyyy-mm-dd). |
direction | string | Sort direction (default DESC). |
invoice_no | string | Formatted document number, e.g. 2026001. |
modified_period | string | Last changed in this period. |
order_no | string | Order number the document was created from. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
search | string | Text to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records). |
status | string | Payment status. |
type | array | Document types (default: regular). |
variable | string | Variable symbol. |
superfaktura_get_invoice Get an invoice
One document (invoice, proforma, quote ...) with its header (number, dates, status, amounts, currency, symbols, comments), client, items, VAT summary, payments and related documents. The public access token and payment links of the document are not returned. GET /invoices/view/{id}.json.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | Invoice id (the id of a superfaktura_list_invoices row). |
superfaktura_list_clients List or search clients
List the address book (clients and suppliers) with contact data and totals. search matches name, IČO, DIČ, IČ DPH, bank account, e-mail, address, city, phone, note and tags. Paged: pass next_page as page. GET /clients/index.json.
| Parameter | Type | Description |
|---|---|---|
created_period | string | Created in this period. |
direction | string | Sort direction (default DESC). |
modified_period | string | Changed in this period. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
search | string | Text to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records). |
superfaktura_get_client Get a client
One client with address, tax ids, bank data, default currency/due days/discount and statistics. GET /clients/view/{id}.
| Parameter | Type | Description |
|---|---|---|
client_id * | integer | Client id (from superfaktura_list_clients). |
superfaktura_list_contact_persons List a client's contact persons
The contact persons (name, e-mail, phone) stored for one client. GET /contact_people/getContactPeople/{client_id}.
| Parameter | Type | Description |
|---|---|---|
client_id * | integer | Client id. |
superfaktura_list_expenses List or search expenses
List received documents (expenses: received invoices, bills, internal documents) with amounts, VAT, supplier and payment status. status: issued (new), partially_paid, paid, overdue. Without a date filter SuperFaktura applies its default period; pass created_period='all' for everything. Paged: pass next_page as page. GET /expenses/index.json.
| Parameter | Type | Description |
|---|---|---|
amount_from | number | |
amount_to | number | |
category_id | integer | Expense category id (superfaktura_list_expense_categories). |
client_id | integer | Supplier (client) id. |
created_period | string | Issue date as a period. |
created_since | string | Issued on or after (yyyy-mm-dd). |
created_to | string | Issued on or before (yyyy-mm-dd). |
direction | string | Sort direction (default DESC). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
search | string | Text to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records). |
status | string | Payment status. |
type | string | Expense type (note the vendor's spelling recieved_credit_note). |
superfaktura_get_expense Get an expense
One expense with its items, VAT rates, payments and supplier. Attachments are not returned. GET /expenses/view/{id}.json.
| Parameter | Type | Description |
|---|---|---|
expense_id * | integer | Expense id (from superfaktura_list_expenses). |
superfaktura_list_expense_categories List expense categories
The expense category tree (id, name, parent) for the category_id of expenses. GET /expenses/expense_categories.
superfaktura_list_bank_accounts List bank accounts
The company's bank accounts as stored in SuperFaktura (bank name, IBAN, SWIFT, default flag). GET /bank_accounts/index.
superfaktura_list_bank_moves List imported bank account moves
Bank transactions imported into SuperFaktura (date, amount, currency, variable symbol, counter account, matching state), newest first by default. Filter by date range, credit/debit or amount. Paged: pass next_page as page. GET /accounts/index.json.
| Parameter | Type | Description |
|---|---|---|
amount_from | number | |
amount_to | number | |
date_period | string | Transaction date as a period. |
date_since | string | Transactions on or after (yyyy-mm-dd). |
date_to | string | Transactions on or before (yyyy-mm-dd). |
direction | string | Sort direction. |
move_type | string | credit = incoming, debit = outgoing. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
search | string | Text to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records). |
superfaktura_list_cash_registers List cash registers
The company's cash registers with currency, number of entries and current balance (read only). GET /cash_registers/getDetails.
superfaktura_get_cash_register Get a cash register
One cash register with currency, number of entries and current balance (read only). GET /cash_registers/view/{id}.
| Parameter | Type | Description |
|---|---|---|
cash_register_id * | integer | Cash register id (from superfaktura_list_cash_registers). |
superfaktura_list_stock_items List or search stock items
List warehouse items (name, SKU, unit, price, VAT, quantity in stock). search matches name, SKU and description; sku matches the SKU. Paged: pass next_page as page. GET /stock_items/index.json.
| Parameter | Type | Description |
|---|---|---|
direction | string | Sort direction. |
in_stock_only | boolean | true = only items that are in stock. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
price_from | number | |
price_to | number | |
search | string | Text to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records). |
sku | string | Search by SKU. |
superfaktura_get_stock_item Get a stock item
One warehouse item with SKU, price, VAT, purchase price and quantity in stock. GET /stock_items/view/{id}.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | integer | Stock item id (from superfaktura_list_stock_items). |
superfaktura_list_stock_movements List stock movements of an item
The stock log of one item (quantity changes, notes, related invoice or expense). Paged: pass next_page as page. GET /stock_items/movements/{id}.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | integer | Stock item id. |
direction | string | Sort direction (default ASC). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (the account's profile default when omitted). |
superfaktura_list_tags List tags
The tags (id and name) usable on invoices, expenses and clients. GET /tags/index.json.
superfaktura_list_sequences List numbering sequences
The document numbering sequences per document type (id, name, mask, next formatted number, default flag); sequence ids are used when creating documents. GET /sequences/index.json.
superfaktura_list_countries List countries
SuperFaktura's country ids with ISO code and EU flag, for the country_id of clients. GET /countries/index/view_full:1.
superfaktura_get_response_by_checksum Recover the reply of a create by its checksum
If a superfaktura_create_invoice call timed out, fetch the reply of the ORIGINAL request by the checksum it was sent with (kept 3 months), so the document is not created twice. GET /api_logs/getResponseByChecksum/{checksum}.
| Parameter | Type | Description |
|---|---|---|
checksum * | string | The checksum given to superfaktura_create_invoice. |
superfaktura_create_client Create a client
WRITE: adds a new client to the SuperFaktura address book (only the name is required). Nothing is sent to the client. Not idempotent: calling twice creates two clients, so check superfaktura_list_clients first. POST /clients/create.
| Parameter | Type | Description |
|---|---|---|
name * | string | Client name (company or person). |
address | string | Street and number. |
city | string | |
comment | string | Internal note on the client. |
country_id | integer | Country id (superfaktura_list_countries); Slovakia is 191. Defaults to the instance's country. |
dic | string | Tax id (DIČ, Slovak). |
email | string | Client e-mail (stored only; nothing is sent to it). |
iban | string | |
ic_dph | string | VAT id (IČ DPH in Slovakia, DIČ in the Czech Republic). |
ico | string | Company id (IČO). |
phone | string | |
swift | string | |
zip | string |
superfaktura_add_contact_person Add a contact person to a client
WRITE: adds a contact person (name and e-mail, optional phone) to an existing client. Nothing is sent to that person. Not idempotent. POST /contact_people/add/api:1.
| Parameter | Type | Description |
|---|---|---|
client_id * | integer | Existing client id. |
email * | string | Contact person's e-mail (stored only). |
name * | string | Contact person's name. |
phone | string |
superfaktura_create_tag Create a tag
WRITE: adds a new tag name (usable on invoices, expenses and clients in the SuperFaktura app). A duplicate name is refused by SuperFaktura. POST /tags/add.
| Parameter | Type | Description |
|---|---|---|
name * | string | Tag name. |
superfaktura_create_expense Record a received expense
WRITE: records a received document (expense) with ONE total amount and VAT rate, e.g. a supplier invoice or a bill. It is created unpaid: no payment is recorded and nothing is sent. No attachments. Not idempotent: calling twice records two expenses. POST /expenses/add.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount WITHOUT VAT. |
name * | string | Expense name / what it is for. |
category_id | integer | Expense category id from superfaktura_list_expense_categories. |
client_id | integer | Supplier (client) id from superfaktura_list_clients. |
comment | string | Comment. |
created | string | Issue date (default today). |
currency | string | 3-letter currency code, e.g. EUR, CZK. |
delivery | string | Delivery date (default today). |
document_number | string | The supplier's document number. |
due | string | Due date (default today). |
type | string | Expense type (default invoice = received invoice). |
variable | string | Variable symbol. |
vat | number | VAT rate in percent (default 0). |
superfaktura_create_invoice Create an unsent invoice document
WRITE: creates ONE document in SuperFaktura for the user to review: type draft (concept, default), estimate (quote), order or proforma. A final regular invoice cannot be created here. It is NOT sent (no e-mail, no post), NOT marked paid or sent, and has no payment link or discount. Give an existing client_id (its name is read first with one extra GET /clients/view/{id}, so the call uses 2 requests of the daily quota) OR a new client's name (+ optional ico/dic/ic_dph/address...). Items: name, unit price without VAT, VAT rate, quantity. Not idempotent: pass a checksum (max 32 chars) so a timed-o…
| Parameter | Type | Description |
|---|---|---|
items * | array | 1-100 items. |
checksum | string | Your own unique token (max 32 chars) to recover the reply if the call times out. |
client_address | string | Client street and number, with client_name. |
client_city | string | Client city, with client_name. |
client_country_id | integer | Client country id (superfaktura_list_countries), with client_name. |
client_dic | string | Client tax id (DIČ), with client_name. |
client_email | string | Client e-mail, with client_name (stored only; nothing is sent). |
client_ic_dph | string | Client VAT id, with client_name. |
client_ico | string | Client company id (IČO), with client_name. |
client_id | integer | Existing client id (superfaktura_list_clients). Give this OR client_name. |
client_name | string | Name of a new/matching client (used when client_id is not given). |
client_zip | string | Client ZIP, with client_name. |
comment | string | Comment on the document. |
constant | string | Constant symbol. |
created | string | Issue date (default today). |
delivery | string | Delivery date. |
due | string | Due date. |
header_comment | string | Comment above the items (shown on the document). |
internal_comment | string | Internal comment (not shown on the document). |
invoice_currency | string | 3-letter currency code, e.g. EUR, CZK. |
name | string | Document title (default generated from the number). |
order_no | string | Order number. |
sequence_id | integer | Numbering sequence id (superfaktura_list_sequences). |
specific | string | Specific symbol. |
type | string | Document type: draft (default), estimate, order or proforma. |
variable | string | Variable symbol (the document number when empty). |