SuperFaktura MCP by usefulapi

v1.28.2
io.usefulapi/superfaktura Checked 2 days ago Published 12 hours ago

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

ParameterTypeDescription
all_companiesbooleantrue = 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.

ParameterTypeDescription
amount_fromnumberMinimum amount.
amount_tonumberMaximum amount.
client_idintegerOnly documents of this client (superfaktura_list_clients).
created_periodstringIssue date as a period (default this_year when no date filter is given).
created_sincestringIssued on or after (yyyy-mm-dd).
created_tostringIssued on or before (yyyy-mm-dd).
directionstringSort direction (default DESC).
invoice_nostringFormatted document number, e.g. 2026001.
modified_periodstringLast changed in this period.
order_nostringOrder number the document was created from.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (the account's profile default when omitted).
searchstringText to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records).
statusstringPayment status.
typearrayDocument types (default: regular).
variablestringVariable 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.

ParameterTypeDescription
invoice_id *integerInvoice 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.

ParameterTypeDescription
created_periodstringCreated in this period.
directionstringSort direction (default DESC).
modified_periodstringChanged in this period.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (the account's profile default when omitted).
searchstringText 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}.

ParameterTypeDescription
client_id *integerClient 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}.

ParameterTypeDescription
client_id *integerClient 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.

ParameterTypeDescription
amount_fromnumber
amount_tonumber
category_idintegerExpense category id (superfaktura_list_expense_categories).
client_idintegerSupplier (client) id.
created_periodstringIssue date as a period.
created_sincestringIssued on or after (yyyy-mm-dd).
created_tostringIssued on or before (yyyy-mm-dd).
directionstringSort direction (default DESC).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (the account's profile default when omitted).
searchstringText to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records).
statusstringPayment status.
typestringExpense 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.

ParameterTypeDescription
expense_id *integerExpense 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.

ParameterTypeDescription
amount_fromnumber
amount_tonumber
date_periodstringTransaction date as a period.
date_sincestringTransactions on or after (yyyy-mm-dd).
date_tostringTransactions on or before (yyyy-mm-dd).
directionstringSort direction.
move_typestringcredit = incoming, debit = outgoing.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (the account's profile default when omitted).
searchstringText 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}.

ParameterTypeDescription
cash_register_id *integerCash 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.

ParameterTypeDescription
directionstringSort direction.
in_stock_onlybooleantrue = only items that are in stock.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (the account's profile default when omitted).
price_fromnumber
price_tonumber
searchstringText to search for (matched by SuperFaktura in names, numbers, e-mails ... of the records).
skustringSearch 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}.

ParameterTypeDescription
stock_item_id *integerStock 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}.

ParameterTypeDescription
stock_item_id *integerStock item id.
directionstringSort direction (default ASC).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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}.

ParameterTypeDescription
checksum *stringThe 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.

ParameterTypeDescription
name *stringClient name (company or person).
addressstringStreet and number.
citystring
commentstringInternal note on the client.
country_idintegerCountry id (superfaktura_list_countries); Slovakia is 191. Defaults to the instance's country.
dicstringTax id (DIČ, Slovak).
emailstringClient e-mail (stored only; nothing is sent to it).
ibanstring
ic_dphstringVAT id (IČ DPH in Slovakia, DIČ in the Czech Republic).
icostringCompany id (IČO).
phonestring
swiftstring
zipstring

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.

ParameterTypeDescription
client_id *integerExisting client id.
email *stringContact person's e-mail (stored only).
name *stringContact person's name.
phonestring

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.

ParameterTypeDescription
name *stringTag 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.

ParameterTypeDescription
amount *numberAmount WITHOUT VAT.
name *stringExpense name / what it is for.
category_idintegerExpense category id from superfaktura_list_expense_categories.
client_idintegerSupplier (client) id from superfaktura_list_clients.
commentstringComment.
createdstringIssue date (default today).
currencystring3-letter currency code, e.g. EUR, CZK.
deliverystringDelivery date (default today).
document_numberstringThe supplier's document number.
duestringDue date (default today).
typestringExpense type (default invoice = received invoice).
variablestringVariable symbol.
vatnumberVAT 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…

ParameterTypeDescription
items *array1-100 items.
checksumstringYour own unique token (max 32 chars) to recover the reply if the call times out.
client_addressstringClient street and number, with client_name.
client_citystringClient city, with client_name.
client_country_idintegerClient country id (superfaktura_list_countries), with client_name.
client_dicstringClient tax id (DIČ), with client_name.
client_emailstringClient e-mail, with client_name (stored only; nothing is sent).
client_ic_dphstringClient VAT id, with client_name.
client_icostringClient company id (IČO), with client_name.
client_idintegerExisting client id (superfaktura_list_clients). Give this OR client_name.
client_namestringName of a new/matching client (used when client_id is not given).
client_zipstringClient ZIP, with client_name.
commentstringComment on the document.
constantstringConstant symbol.
createdstringIssue date (default today).
deliverystringDelivery date.
duestringDue date.
header_commentstringComment above the items (shown on the document).
internal_commentstringInternal comment (not shown on the document).
invoice_currencystring3-letter currency code, e.g. EUR, CZK.
namestringDocument title (default generated from the number).
order_nostringOrder number.
sequence_idintegerNumbering sequence id (superfaktura_list_sequences).
specificstringSpecific symbol.
typestringDocument type: draft (default), estimate, order or proforma.
variablestringVariable symbol (the document number when empty).