Fakturowo MCP by usefulapi

v1.16.1
io.usefulapi/fakturowo Checked 2 days ago Published 1 day ago

Read invoices, clients and products in Fakturowo; create documents and update payment status.

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

fakturowo_list_documents List documents

List invoices and other documents on the account, 100 per page: id (api_numer), type, number, issue and sale date, currency, net/VAT/gross value, seller and buyer, payment status, due date and KSeF number. Filter by document type or by seller/buyer tax number. Values are the vendor's own (dates DD-MM-YYYY; dokument_rodzaj is the type code with a readable name for common types). Fakturowo api_zadanie=3.

ParameterTypeDescription
buyer_tax_idstringOnly documents of the buyer with this tax number (NIP).
document_typestringOnly this document type.
pageintegerPage number, from 1 (default 1; 100 rows per page). Pass the previous reply's next_page.
seller_tax_idstringOnly documents of the seller with this tax number (NIP).

fakturowo_get_document Get document

One document by its id (api_numer, from fakturowo_list_documents or the id returned when it was created): the header fields and every line item (name, unit, quantity, net/gross price, discount, VAT rate and amount, gross value). Fakturowo api_zadanie=3 with api_numer.

ParameterTypeDescription
document_id *integerThe document's api_numer.

fakturowo_get_next_document_number Get next document number

The running number Fakturowo will give the next document of a type (the sequence counter saved on the account). Nothing is created. Fakturowo api_zadanie=8.

ParameterTypeDescription
document_typestringDocument type (default vat_invoice).

fakturowo_list_clients List clients

List the saved clients (contractors), 100 per page: id (api_numer), name, address, tax number, contact details, account number and notes. PESEL and ID-card numbers are never returned. Fakturowo api_zadanie=4.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1; 100 rows per page). Pass the previous reply's next_page.

fakturowo_get_client Get client

One saved client by id (api_numer, from fakturowo_list_clients). PESEL and ID-card numbers are never returned. Fakturowo api_zadanie=4 with api_numer.

ParameterTypeDescription
client_id *integerThe client's api_numer.

fakturowo_list_products List products

List the saved products and services (the catalogue used on documents), 100 per page: id (api_numer), name, unit, VAT rate, net price, gross value, currency, comment, GTU code and discount. Fakturowo api_zadanie=6.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1; 100 rows per page). Pass the previous reply's next_page.

fakturowo_get_product Get product

One saved product by id (api_numer, from fakturowo_list_products). Fakturowo api_zadanie=6 with api_numer.

ParameterTypeDescription
product_id *integerThe product's api_numer.

fakturowo_create_document Create document

WRITE: issue a new document (invoice, proforma, receipt...) on the account. It is saved immediately and takes the next number in its sequence; this tool cannot delete it again, and calling it twice issues two documents. Issue documents one at a time and wait for each reply: Fakturowo says overlapping saves can get the same number when the account's numbering check is off. Needs a buyer and at least one line item; the seller defaults to what the account has saved only if Fakturowo allows that, otherwise pass seller. Returns the new document's id (api_numer); with public_links true also a public…

ParameterTypeDescription
buyer *objectBuyer details.
items *arrayLine items (1-300).
currencystringCurrency code (default PLN).
document_typestringDocument type (default vat_invoice).
issue_datestringIssue date (default today).
notesstringNotes printed on the document.
paid_amountnumberAmount already paid (subtracted from the total).
payment_statusstringPayment status (default unpaid).
payment_typestringPayment method / term.
placestringPlace of issue (default: the account's saved place).
public_linksbooleanReturn public PDF and preview links (default false).
sale_datestringSale date (default today).
sellerobjectSeller details.

fakturowo_set_document_payment_status Set document payment status

WRITE: change the payment status of an existing document (unpaid, paid, partially_paid) and optionally the amount already paid. Only those fields are sent; Fakturowo edits the document in place. Fakturowo api_zadanie=1 with api_numer.

ParameterTypeDescription
document_id *integerThe document's api_numer.
status *stringNew payment status.
paid_amountnumberAmount already paid (for partially_paid, or to record the amount).