Fiscalo MCP by usefulapi

v1.6.1
io.usefulapi/fiscalo Checked 2 days ago Published 1 day ago

Read and create customers, items and draft invoices in Fiscalo.

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

fiscalo_connection_test Test the connection

Check that the API key works and show its environment (sandbox or production). Use this first. Fiscalo API: GET /connection-test.

fiscalo_list_customers List customers

List customers of the company behind the API key. Filter by name, tax number or your own external_id. Fiscalo API: GET /customers.

ParameterTypeDescription
external_idstringFilter by your own customer id.
namestringFilter by customer name.
pageintegerPage number (default 1).
per_pageintegerResults per page (1 to 100).
tax_numberstringFilter by tax number (NIF).

fiscalo_get_customer Get a customer

Get one customer by its Fiscalo id. Fiscalo API: GET /customers/{id}.

ParameterTypeDescription
customer_id *stringThe customer id (from fiscalo_list_customers).

fiscalo_create_customer Create a customer

Create a customer (individual or company). Writes need production access on the company. Fiscalo API: POST /customers.

ParameterTypeDescription
customer_type *stringindividual or company.
name *stringFull name or company name.
address_line_1string
address_line_2string
citystring
countrystringTwo-letter country code, for example PT.
emailstring
external_idstringYour own id for this customer (used to find it again).
phonestring
postal_codestring
tax_numberstringTax number (NIF).
vat_number_countrystringTwo-letter VAT country code.

fiscalo_list_items List items

List products and services in the catalog. Fiscalo API: GET /items.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults per page (1 to 100).

fiscalo_get_item Get an item

Get one product or service by its Fiscalo id. Fiscalo API: GET /items/{id}.

ParameterTypeDescription
item_id *stringThe item id (from fiscalo_list_items).

fiscalo_create_item Create an item

Create a product or service with its unit price and tax rate. Writes need production access on the company. Fiscalo API: POST /items.

ParameterTypeDescription
name *stringItem name shown on documents.
tax_rate_id *stringTax rate id (from fiscalo_list_tax_rates).
type *stringproduct or service.
unit_price *numberUnit price, without tax.
cost_pricenumber
descriptionstring
external_idstringYour own id for this item.
skustring
tax_exemption_reason_idstringTax exemption reason id, when the tax rate is 0.
unitstringUnit label, for example un or h.

fiscalo_list_tax_rates List tax rates

List the global tax-rate catalog (read-only). Use it to find the tax_rate_id for an item or a document line. Fiscalo API: GET /tax-rates.

ParameterTypeDescription
active_onstringOnly rates active on this date (yyyy-mm-dd).
countrystringTwo-letter country code, for example PT.
pageintegerPage number (default 1).
per_pageintegerResults per page (1 to 100).
statusstringStatus filter, for example active.
typestringTax type filter, as the catalog names it.

fiscalo_list_document_series List document series

List the document series of the company. A draft needs an active series (series_id). Fiscalo API: GET /document-series.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults per page (1 to 100).

fiscalo_list_documents List documents

List documents (invoices, credit notes, quotes and others) with their status. Fiscalo API: GET /documents.

ParameterTypeDescription
external_idstringFind a document by your own id.
pageintegerPage number (default 1).
per_pageintegerResults per page (1 to 100).
series_idstringOnly documents of this series.

fiscalo_get_document Get a document

Get one document with its lines, taxes, totals and status (draft or issued). Fiscalo API: GET /documents/{id}.

ParameterTypeDescription
document_id *stringThe document id (from fiscalo_list_documents).

fiscalo_create_document_draft Create a document draft

Create a draft document for a customer in an active series. The draft is NOT issued: this tool cannot issue or cancel a document. Repeating the same call sends the same Idempotency-Key, so it does not create a second draft. Fiscalo API: POST /documents.

ParameterTypeDescription
customer_id *stringCustomer id (from fiscalo_list_customers or fiscalo_create_customer).
document_type *stringDocument type.
series_id *stringActive series id (from fiscalo_list_document_series).
currencystringCurrency code. The API default is EUR.
due_datestringDue date (yyyy-mm-dd).
external_idstringYour own id for this document. A repeated external_id returns the existing document.
idempotency_keystringOptional Idempotency-Key. When omitted, one is derived from the request.
internal_notesstringNotes kept inside the company.
issue_datestringIssue date (yyyy-mm-dd).
notesstringNotes printed on the document.
reference_document_idstringThe document this one corrects or refers to (for credit and debit notes).
reference_reasonstring

fiscalo_add_document_line Add a line to a draft

Add a line to a draft document. Only drafts accept lines; issued documents return document_not_editable. A retry adds the line again: check the document first. Fiscalo API: POST /documents/{id}/lines.

ParameterTypeDescription
document_id *stringThe draft document id.
quantity *numberQuantity (greater than 0).
descriptionstring
discount_ratenumberDiscount in percent (0 to 100).
item_idstringItem id (from fiscalo_list_items). Leave out for a free-text line.
sort_orderinteger
tax_exemption_reason_idstring
tax_rate_idstringTax rate id (from fiscalo_list_tax_rates).
unitstring
unit_pricenumberUnit price, without tax.