Fatture in Cloud MCP by usefulapi

v1.12.0
io.usefulapi/fatture-in-cloud Checked 2 days ago Published 3 hours ago

Read invoices, clients, suppliers and cashbook; create invoices and clients in Fatture in Cloud.

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

fattureincloud_get_user Get the signed-in user

The Fatture in Cloud user this server is signed in as: id, name and email.

fattureincloud_list_companies List companies

The companies this sign-in can use, with their id (the company_id of the other tools), name, type, plan, VAT number and tax code. Accountants also see controlled_companies.

fattureincloud_get_company_info Get company info

One company's details: name, email, type, the user's role and permissions in it, and the Fatture in Cloud plan and its limits.

ParameterTypeDescription
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.

fattureincloud_list_clients List clients

Clients (Clienti) of a company, paged, with an optional filter.

ParameterTypeDescription
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).
pageintegerPage number, from 1 (default 1).
per_pageintegerItems per page, 5-100 (default 25). Fatture in Cloud refuses fewer than 5.
qstringFilter in Fatture in Cloud's query language, for example name like '%Rossi%' or date >= '2026-01-01' and date <= '2026-03-31'. Operators: = != < <= > >= like, contains, starts with, ends with, is null…
sortstringComma-separated fields to sort by; prefix a field with - for descending (for example -date).

fattureincloud_get_client Get a client

One client with every field (address, VAT number, defaults, e-invoice code).

ParameterTypeDescription
client_id *integerThe client id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).

fattureincloud_list_suppliers List suppliers

Suppliers (Fornitori) of a company, paged, with an optional filter.

ParameterTypeDescription
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).
pageintegerPage number, from 1 (default 1).
per_pageintegerItems per page, 5-100 (default 25). Fatture in Cloud refuses fewer than 5.
qstringFilter in Fatture in Cloud's query language, for example name like '%Rossi%' or date >= '2026-01-01' and date <= '2026-03-31'. Operators: = != < <= > >= like, contains, starts with, ends with, is null…
sortstringComma-separated fields to sort by; prefix a field with - for descending (for example -date).

fattureincloud_get_supplier Get a supplier

One supplier with every field.

ParameterTypeDescription
supplier_id *integerThe supplier id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).

fattureincloud_list_products List products

Products and services (Prodotti e servizi) of a company, paged, with an optional filter.

ParameterTypeDescription
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).
pageintegerPage number, from 1 (default 1).
per_pageintegerItems per page, 5-100 (default 25). Fatture in Cloud refuses fewer than 5.
qstringFilter in Fatture in Cloud's query language, for example name like '%Rossi%' or date >= '2026-01-01' and date <= '2026-03-31'. Operators: = != < <= > >= like, contains, starts with, ends with, is null…
sortstringComma-separated fields to sort by; prefix a field with - for descending (for example -date).

fattureincloud_get_product Get a product

One product with prices, default VAT, category and stock.

ParameterTypeDescription
product_id *integerThe product id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).

fattureincloud_list_issued_documents List issued documents

Issued documents of one type (invoices, quotes, credit notes, ...) of a company, paged. Unpaid invoices: type invoice with q next_due_date is not null. Date range: q date >= '2026-01-01' and date <= '2026-01-31'.

ParameterTypeDescription
type *stringThe document type.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).
pageintegerPage number, from 1 (default 1).
per_pageintegerItems per page, 5-100 (default 10). Fatture in Cloud refuses fewer than 5.
qstringFilter in Fatture in Cloud's query language, for example name like '%Rossi%' or date >= '2026-01-01' and date <= '2026-03-31'. Operators: = != < <= > >= like, contains, starts with, ends with, is null…
sortstringComma-separated fields to sort by; prefix a field with - for descending (for example -date).

fattureincloud_get_issued_document Get an issued document

One issued document with its customer, items, payments, totals, e-invoice status (ei_status) and PDF link.

ParameterTypeDescription
document_id *integerThe document id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).

fattureincloud_list_received_documents List received documents

Received documents (expenses, supplier credit notes, delivery notes, self-invoices) of a company, paged.

ParameterTypeDescription
type *stringThe received document type (expense = a supplier invoice or cost).
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).
pageintegerPage number, from 1 (default 1).
per_pageintegerItems per page, 5-100 (default 10). Fatture in Cloud refuses fewer than 5.
qstringFilter in Fatture in Cloud's query language, for example name like '%Rossi%' or date >= '2026-01-01' and date <= '2026-03-31'. Operators: = != < <= > >= like, contains, starts with, ends with, is null…
sortstringComma-separated fields to sort by; prefix a field with - for descending (for example -date).

fattureincloud_get_received_document Get a received document

One received document with its supplier, items, payments and totals.

ParameterTypeDescription
document_id *integerThe document id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
fieldsetstringbasic = the main fields (default for lists), detailed = every field (default for single records).

fattureincloud_list_cashbook_entries List cashbook entries

Cashbook (Prima nota) entries of a company between two dates: money in and out, with the linked documents and payment accounts. Returns 25 entries per reply by default; use limit and offset to read the rest (next_offset is null on the last page).

ParameterTypeDescription
date_from *stringStart date (YYYY-MM-DD).
date_to *stringEnd date (YYYY-MM-DD).
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
limitintegerEntries per reply, 1-100 (default 25).
offsetintegerEntries to skip before the reply starts, for paging (default 0).
payment_account_idintegerOnly this payment account (from fattureincloud_list_settings).
typestringMoney in, money out, or all (default all).

fattureincloud_list_settings List company settings

Reference lists of a company that other tools need: vat_types (the vat_id of document items), payment_methods, payment_accounts (for paid payments and cashbook filters), revenue_centers, cost_centers, product_categories, received_document_categories.

ParameterTypeDescription
kind *string
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.

fattureincloud_get_new_document_info Get new document info

What Fatture in Cloud needs to create a document of one type: numerations and next numbers, templates, default values (default VAT, template, payment method), payment methods and accounts, languages and units. Large reference tables are left out unless you ask for them in include: vat_types (also in fattureincloud_list_settings), currencies, countries, e_invoice_codes (SDI document types, regimes, cassa, withholding and payment reason codes) and e_invoice_structure (the XML field limits).

ParameterTypeDescription
type *stringThe document type.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
includearrayOptional reference tables to add. Each one makes the reply larger; ask only for what the task needs.

fattureincloud_verify_einvoice_xml Verify an e-invoice XML

Check whether an issued document produces a valid e-invoice XML before it goes to the SDI. Returns success or the validation errors.

ParameterTypeDescription
document_id *integerThe issued document id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.

fattureincloud_get_einvoice_rejection Get an e-invoice rejection reason

Why the SDI rejected an e-invoice: the reason, the e-invoice status, the error code and a suggested solution.

ParameterTypeDescription
document_id *integerThe issued document id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.

fattureincloud_create_client Create a client

Create a client (Cliente) in a company's registry. Returns the new client with its id.

ParameterTypeDescription
name *stringCompany name, or full name of a person.
address_citystring
address_postal_codestring
address_provincestringProvince code, for example MI.
address_streetstring
certified_emailstringPEC address.
codestringYour own client code.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
countrystringCountry name in Italian, for example Italia.
ei_codestringE-invoice recipient code (Codice destinatario, 7 characters; 6 for public administration).
emailstring
notesstring
phonestring
tax_codestringTax code (Codice fiscale).
typestringcompany, person, pa (public administration) or condo.
vat_numberstringVAT number (Partita IVA).

fattureincloud_create_product Create a product

Create a product or service in a company's catalogue. Returns the new product with its id.

ParameterTypeDescription
name *string
categorystring
codestring
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
descriptionstring
gross_pricenumberPrice with VAT; use it instead of net_price for gross pricing.
measurestringUnit of measure, for example ore or pz.
net_costnumberPurchase cost without VAT.
net_pricenumberPrice without VAT, in the company currency (euro), for example 100.5.
vat_idintegerDefault VAT type id (fattureincloud_list_settings kind vat_types).

fattureincloud_create_issued_document Create an issued document

Create an invoice, quote, proforma, receipt, delivery note, credit note or order. It gets the next number unless you give one. Give client_id (the tool copies the stored client's details, as Fatture in Cloud does not fill them in) or a client object. Each item needs a vat_id (fattureincloud_list_settings kind vat_types). Without payments, invoices, proformas, receipts and credit notes get one unpaid payment of the full total, due on due_date or the document date. This does NOT send anything: e-mail it with fattureincloud_send_document_email or send an e-invoice with fattureincloud_send_einvoic…

ParameterTypeDescription
items *array
type *stringThe document type.
clientobjectA customer that is not in the registry (one-off). Use client_id instead for a stored client.
client_idintegerAn existing client (fattureincloud_list_clients).
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
datestringDocument date; default today (YYYY-MM-DD).
due_datestringDue date of the automatic single payment (YYYY-MM-DD).
e_invoicebooleantrue = an electronic invoice for the SDI. The customer needs ei_code or certified_email.
ei_bank_beneficiarystringBank beneficiary to include in the e-invoice XML. Requires e_invoice: true.
ei_bank_ibanstringIBAN to include in the e-invoice XML. Requires e_invoice: true.
ei_bank_namestringBank name to include in the e-invoice XML. Requires e_invoice: true.
ei_payment_methodstringE-invoice payment method code (ModalitaPagamento), for example MP05 bank transfer. Required for e-invoices.
ei_vat_kindstringVAT due: I immediate, D deferred, S split payment.
notesstringNotes printed on the document (HTML allowed by Fatture in Cloud).
numberintegerDocument number; default the next free number.
numerationstringNumbering series (sezionale), for example /A.
payment_method_idintegerPayment method (kind payment_methods).
paymentsarray
show_payment_methodbooleanShow the selected payment method details on the PDF. true requires payment_method_id.
subjectstringInternal subject (not on the PDF).
use_gross_pricesbooleantrue = item prices include VAT (gross_price). Default false.
visible_subjectstringSubject printed on the document.

fattureincloud_record_issued_document_payment Record a payment on an issued document

Mark an existing invoice, proforma, receipt or credit note as paid (saldata), in full or in part: one unpaid installment gets status paid, the paid date and the payment account (conto di saldo). A part payment splits that installment into a paid part and an unpaid rest with the same due date. Items, totals and the other installments stay as they are. payment_account_id comes from fattureincloud_list_settings kind payment_accounts (Fatture in Cloud refuses a paid installment without one). Not idempotent: after an uncertain result, read the document with fattureincloud_get_issued_document before…

ParameterTypeDescription
document_id *integerThe issued document id.
payment_account_id *integerThe account the money went to (conto di saldo): fattureincloud_list_settings kind payment_accounts.
amountnumberAmount received, with VAT, in the document currency, at most 2 decimals. Default: the whole installment. Less than the installment = a part payment (the rest stays unpaid). More than the installment i…
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
installment_idintegerThe unpaid installment (payments_list id from fattureincloud_get_issued_document). Required when the document has more than one unpaid installment.
paid_datestringDate paid; default today (Italian time) (YYYY-MM-DD).

fattureincloud_send_document_email E-mail an issued document

IRREVERSIBLE: e-mail an issued document to the customer from Fatture in Cloud. Use only when the user asks to send it. Recipient, sender, subject and body default to Fatture in Cloud's suggestions for this document. Other files (attachment, delivery note, accompanying invoice) go only when you ask for them.

ParameterTypeDescription
document_id *integerThe issued document id.
attach_pdfbooleanAttach the document PDF. Default: the company's own setting for this document (default_attach_pdf), else true.
bodystringMessage text (HTML allowed). Default: Fatture in Cloud's template text.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
include_accompanying_invoicebooleanAlso include the accompanying invoice, if any (default false).
include_attachmentbooleanAlso include the document's attached file, if it has one (default false).
include_delivery_notebooleanAlso include the linked delivery note, if any (default false).
recipient_emailstringRecipient address(es), comma-separated. Default: the customer's address.
send_copybooleanSend a copy to the sender (default false).
sender_emailstringOne of the company's sender addresses. Default: the company's default sender.
subjectstring

fattureincloud_send_einvoice Send an e-invoice to the SDI

IRREVERSIBLE: send an issued e-invoice (e_invoice true) to the Italian exchange system SDI. Use only when the user asks to send it. Run fattureincloud_verify_einvoice_xml first; dry_run true checks the send without sending. A real send first reads the document's ei_status and refuses a document that is being sent or was sent (attempt, sent, pending, processing, accepted, no_response, not_delivered). If a send fails without a clear refusal, do not send again: read ei_status with fattureincloud_get_issued_document.

ParameterTypeDescription
document_id *integerThe issued document id.
company_idintegerThe company id (from fattureincloud_list_companies). Optional when the sign-in reaches only one company.
dry_runbooleantrue = validate only, send nothing (default false).