Defontana MCP by usefulapi

v1.8.1
io.usefulapi/defontana Checked 2 days ago Published 1 day ago

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

ParameterTypeDescription
filterstringFilter by name, tax id, e-mail or user id.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
descriptionstringClient name or part of it.
legal_codestringClient tax id (RUT), exactly as stored, e.g. 76.123.456-7.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
statusstringFilter by state: all (default), active or inactive.

defontana_get_client_credit Get client credit

A client's credit position: credit amount, pending balance and the overdue-amount limit. GET /Accounting/GetClientCredit.

ParameterTypeDescription
legal_code *stringClient tax id (RUT), e.g. 76.123.456-7.
file_idstringClient 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.

ParameterTypeDescription
codestringProduct code.
descriptionstringProduct name or part of it.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
statusstringFilter 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.

ParameterTypeDescription
codestringService code.
descriptionstringService description or part of it.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).

defontana_list_sellers List sellers

List the sales people (vendedores): code and name. GET /sale/GetSellers.

ParameterTypeDescription
codestringSeller code.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
codestringShop code.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
codestringStorage code.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
storage_id *stringStorage code.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
from_date *stringFirst emission date, yyyy-mm-dd.
to_date *stringLast emission date, yyyy-mm-dd.
document_typestringDocument type id, e.g. BOLETAVTAFEC (from the company's document types).
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
document_type *stringDocument type id, e.g. XFVAELECT.
number *integerDocument 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.

ParameterTypeDescription
from_date *stringFirst creation date, yyyy-mm-dd.
to_date *stringLast creation date, yyyy-mm-dd.
from_numberintegerOnly orders with this number or higher.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
number *integerOrder 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.

ParameterTypeDescription
from_date *stringFirst date, yyyy-mm-dd.
to_date *stringLast date, yyyy-mm-dd.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
sii_document_codestringSII 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.

ParameterTypeDescription
document_type *stringDocument type code.
number *integerDocument number.
provider *stringProvider 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.

ParameterTypeDescription
from_date *stringFirst date, yyyy-mm-dd.
to_date *stringLast date, yyyy-mm-dd.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
providerstringProvider tax id or name.
statusstringOrder 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.

ParameterTypeDescription
number *integerPurchase order number.
seriesstringPurchase 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.

ParameterTypeDescription
descriptionstringProvider name or part of it.
legal_codestringProvider tax id (RUT).
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
statusstringFilter 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.

ParameterTypeDescription
fiscal_yearintegerFiscal year, e.g. 2026.
from_datestringVouchers dated on or after this day, yyyy-mm-dd.
from_numberintegerVoucher number from.
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).
to_datestringVouchers dated on or before this day, yyyy-mm-dd.
to_numberintegerVoucher number to.
userstringOnly vouchers entered by this user.
voucher_typestringVoucher 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.

ParameterTypeDescription
fiscal_year *integerFiscal year of the voucher.
number *integerVoucher number.
voucher_type *stringVoucher 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.

ParameterTypeDescription
code *stringBusiness 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.

ParameterTypeDescription
file_id *stringClient file id (tax id as stored).
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults 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.

ParameterTypeDescription
file_id *stringProvider file id (tax id as stored).
pageintegerPage number, from 1 (default 1). Pass the previous reply's paging.next_page.
per_pageintegerResults per page, 1-100 (default 25).