Defontana MCP by usefulapi
v1.8.1Read sales, purchases, stock, receivables and accounting vouchers in Defontana.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
defontana_get_company Get company
The Defontana company the login belongs to: id, name, tax id (legalCode), website and e-mail. GET /Company.
defontana_list_users List users
List the users of the Defontana company (name, phone, e-mail, tax id, user id). GET /User/List.
| Parameter | Type | Description |
|---|---|---|
filter | string | Filter by name, tax id, e-mail or user id. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_clients List clients
List the company's clients (customers): tax id (legalCode), name, address, e-mail, payment condition, price list, seller, active flag. Filter by tax id or name. GET /sale/GetClients.
| Parameter | Type | Description |
|---|---|---|
description | string | Client name or part of it. |
legal_code | string | Client tax id (RUT), exactly as stored, e.g. 76.123.456-7. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
status | string | Filter by state: all (default), active or inactive. |
defontana_search_client_by_legal_code Search client by tax id
Look up one client by tax id (RUT): name, taxpayer type, business line, region, province and commune. GET /Sale/SearchClientByLegalCode.
| Parameter | Type | Description |
|---|---|---|
legal_code * | string | Client tax id (RUT), e.g. 76.123.456-7. |
defontana_get_client_credit Get client credit
A client's credit position: credit amount, pending balance and the overdue-amount limit. GET /Accounting/GetClientCredit.
| Parameter | Type | Description |
|---|---|---|
legal_code * | string | Client tax id (RUT), e.g. 76.123.456-7. |
file_id | string | Client file id as stored in Defontana (see list_clients). Defaults to the tax id. |
defontana_list_products List products
List the company's products (articles): code, name, unit, currency, sell price and stock. Filter by code, name or state. GET /sale/GetProducts.
| Parameter | Type | Description |
|---|---|---|
code | string | Product code. |
description | string | Product name or part of it. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
status | string | Filter by state: all (default), active or inactive. |
defontana_list_services List services
List the company's service items: code, description, sell price, unit and unit cost. GET /Sale/GetServices.
| Parameter | Type | Description |
|---|---|---|
code | string | Service code. |
description | string | Service description or part of it. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_sellers List sellers
List the sales people (vendedores): code and name. GET /sale/GetSellers.
| Parameter | Type | Description |
|---|---|---|
code | string | Seller code. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_shops List shops
List the points of sale (locales): code, description, address, business code and default storage. GET /sale/GetShops.
| Parameter | Type | Description |
|---|---|---|
code | string | Shop code. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_storages List storages
List the storages (bodegas): code, description, whether sales are allowed and the active flag. GET /sale/GetStorages.
| Parameter | Type | Description |
|---|---|---|
code | string | Storage code. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_get_storage_stock Get storage stock
Stock per product in one storage (bodega), with the price-list prices. Get storage codes from defontana_list_storages. GET /Sale/GetStorageStock.
| Parameter | Type | Description |
|---|---|---|
storage_id * | string | Storage code. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_payment_conditions List payment conditions
The payment conditions (condiciones de pago): code, name, type, number of dues and days between payments. GET /Sale/GetPaymentConditions.
defontana_list_taxes List taxes
The taxes the company uses (for example IVA): code, name, value and type. GET /Sale/GetTaxes.
defontana_list_sales List sales documents
Sales documents (invoices, receipts, credit notes) issued between two dates, with client, seller, lines, net/exempt totals, tax and total. Optionally one document type. GET /Sale/GetSalebyDate.
| Parameter | Type | Description |
|---|---|---|
from_date * | string | First emission date, yyyy-mm-dd. |
to_date * | string | Last emission date, yyyy-mm-dd. |
document_type | string | Document type id, e.g. BOLETAVTAFEC (from the company's document types). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_get_sale Get sales document
One sales document by document type and folio number: client, lines, totals, tax, attached documents and accounting voucher. GET /sale/GetSale.
| Parameter | Type | Description |
|---|---|---|
document_type * | string | Document type id, e.g. XFVAELECT. |
number * | integer | Document folio number. |
defontana_list_orders List orders
Customer orders (pedidos) created between two dates: number, creation date and client. Use defontana_get_order for the detail. GET /Order/List.
| Parameter | Type | Description |
|---|---|---|
from_date * | string | First creation date, yyyy-mm-dd. |
to_date * | string | Last creation date, yyyy-mm-dd. |
from_number | integer | Only orders with this number or higher. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_get_order Get order
One customer order by number: client, seller, shop, lines, discounts and totals. GET /Order/Get.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Order number. |
defontana_list_purchases List purchase documents
Purchase documents (supplier invoices) between two dates: provider, document type and number, total, emission date, SII status and whether it is integrated. Optionally one SII document code (33, 34, ...). GET /Purchase/List.
| Parameter | Type | Description |
|---|---|---|
from_date * | string | First date, yyyy-mm-dd. |
to_date * | string | Last date, yyyy-mm-dd. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
sii_document_code | string | SII document code, e.g. 33 (invoice) or 34 (exempt invoice). |
defontana_get_purchase Get purchase document
One purchase document by provider code, document type and number, with lines and totals. GET /Purchase/Get.
| Parameter | Type | Description |
|---|---|---|
document_type * | string | Document type code. |
number * | integer | Document number. |
provider * | string | Provider code (the provider's tax id as stored). |
defontana_list_purchase_orders List purchase orders
Purchase orders (órdenes de compra) between two dates: provider, status, emission date, totals, series and number. Filter by provider name or tax id, or by status. GET /PurchaseOrder/List.
| Parameter | Type | Description |
|---|---|---|
from_date * | string | First date, yyyy-mm-dd. |
to_date * | string | Last date, yyyy-mm-dd. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
provider | string | Provider tax id or name. |
status | string | Order status (default all). |
defontana_get_purchase_order Get purchase order
One purchase order by number (and series, if the company uses series): provider, lines, taxes and totals. GET /PurchaseOrder/Get.
| Parameter | Type | Description |
|---|---|---|
number * | integer | Purchase order number. |
series | string | Purchase order series. |
defontana_list_providers List providers
List the company's providers (suppliers): tax id, name, address, contact data and the active flag. Filter by tax id or name. GET /PurchaseOrder/GetProviders.
| Parameter | Type | Description |
|---|---|---|
description | string | Provider name or part of it. |
legal_code | string | Provider tax id (RUT). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
status | string | Filter by state: all (default), active or inactive. |
defontana_get_account_plan Get chart of accounts
The chart of accounts (plan de cuentas) as a tree: account code, description and the related IFRS account. GET /Accounting/GetAccountPlan.
defontana_list_vouchers List accounting vouchers
Accounting vouchers (comprobantes) with type, fiscal year, date, entry date, user and number. Filter by type, fiscal year, date range, entering user or number range. Use defontana_get_voucher for the lines. GET /Accounting/GetVoucherList.
| Parameter | Type | Description |
|---|---|---|
fiscal_year | integer | Fiscal year, e.g. 2026. |
from_date | string | Vouchers dated on or after this day, yyyy-mm-dd. |
from_number | integer | Voucher number from. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
to_date | string | Vouchers dated on or before this day, yyyy-mm-dd. |
to_number | integer | Voucher number to. |
user | string | Only vouchers entered by this user. |
voucher_type | string | Voucher type id, e.g. VENTASELEC. |
defontana_get_voucher Get accounting voucher
One accounting voucher with its header and every line (account, debit, credit, file id, document, business center, classifiers). GET /Accounting/GetVoucher.
| Parameter | Type | Description |
|---|---|---|
fiscal_year * | integer | Fiscal year of the voucher. |
number * | integer | Voucher number. |
voucher_type * | string | Voucher type id, e.g. EGRESO. |
defontana_get_business_center Get business center
One business center (centro de negocio) by code: description, active and postable flags. GET /Accounting/GetBusinessCenter.
| Parameter | Type | Description |
|---|---|---|
code * | string | Business center code. |
defontana_list_receivables List documents to collect
Open (unpaid) sales documents of one client: document type, series, number, due date and amount. The client is the file id, usually the tax id. GET /Accounting/GetDocumentsToPay.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | Client file id (tax id as stored). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
defontana_list_payables List documents to pay
Open (unpaid) purchase documents of one provider: document type, series, number, due date and amount. The provider is the file id, usually the tax id. GET /Accounting/GetPurchaseDocumentsToPay.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | Provider file id (tax id as stored). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's paging.next_page. |
per_page | integer | Results per page, 1-100 (default 25). |