Facture App MCP by usefulapi

v1.5.1
io.usefulapi/facture-app Checked 2 days ago Published 1 day ago

Stamp, cancel and list CFDI invoices, and manage clients and products in Facture App.

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

facture_list_issuers List issuers

List the issuers (emisores: the taxpayers that can stamp invoices) on this Facture account, with their RFC. Use an RFC to filter branches. Facture API: GET /emisor/find.

ParameterTypeDescription
offsetintegerStart position (default 0).
sizeintegerPage size, 1 to 100 (default 10).

facture_list_branches List branches

List the branches (sucursales) that can stamp invoices. Each branch id is the branch_id that facture_stamp_invoice needs. Pass issuer_rfc to show only one issuer's branches. Facture API: GET /sucursal/find.

ParameterTypeDescription
issuer_rfcstringShow only branches of this issuer RFC.
offsetintegerStart position (default 0).
sizeintegerPage size, 1 to 100 (default 10).

facture_list_clients List clients

List the clients (receptores) in the account catalog: name, RFC, tax regime and address. Facture API: GET /cliente/find.

ParameterTypeDescription
offsetintegerStart position (default 0).
sizeintegerPage size, 1 to 100 (default 10).

facture_list_products List products and services

List the products and services (conceptos) in the account catalog, with their unit prices and SAT keys. Facture API: GET /concepto/find.

ParameterTypeDescription
offsetintegerStart position (default 0).
sizeintegerPage size, 1 to 100 (default 10).

facture_list_invoices List invoices

List the invoices (comprobantes) issued from this account: folio, series, total, receiver and cancelled flag. Facture API: GET /facturacion/find.

ParameterTypeDescription
offsetintegerStart position (default 0).
sizeintegerPage size, 1 to 100 (default 10).

facture_get_invoice Get an invoice

Get one stamped invoice by its fiscal UUID: date, type, folio, currency, cancelled flag and totals. Facture API: GET /facturacion?id=<uuid>.

ParameterTypeDescription
uuid *stringThe invoice's fiscal UUID (from facture_list_invoices).

facture_create_client Create a client

Create a client (receptor) in the account catalog. The SAT requires the RFC, tax regime, CFDI use and a fiscal address. Creates a record only; it stamps nothing. Facture API: POST /cliente.

ParameterTypeDescription
cfdi_use *stringCFDI use code, for example G01 (usoCFDI).
email *stringEmail address for invoices.
exterior_number *stringExterior number (numeroexterior).
municipality *stringMunicipality (municipio).
name *stringLegal name (nombre).
neighborhood *stringNeighborhood (colonia).
postal_code *stringPostal code (codigopostal).
rfc *stringRFC. Use XAXX010101000 for the general public.
state *stringState name, for example Michoacán de Ocampo (estado).
street *stringStreet (calle).
tax_regime *stringSAT tax regime code, for example 601 (regimen).
citystringCity (ciudad).
countrystringCountry name (pais). Default México.
interior_numberstringInterior number (numerointerior).
payment_formstringPayment form code, for example 03 (formaPago).
referencestringAddress reference (referencia).

facture_create_product Create a product or service

Create a product or service (concepto) in the account catalog with a unit price in MXN and one IVA rate. Creates a record only; it stamps nothing. Facture API: POST /concepto.

ParameterTypeDescription
description *stringDescription shown on the invoice (descripcion).
product_key *stringSAT product or service key, for example 43201902 (claveProdServ).
unit_key *stringSAT unit key, for example H87 for piece (claveUnidad).
unit_name *stringUnit name, for example Pieza (unidad).
unit_price *numberUnit price in MXN, before tax (precio).
codestringYour internal product code (codigo).
vat_ratenumberIVA rate as a fraction: 0.16 = 16%. Default 0.16.

facture_stamp_invoice Stamp an invoice

Stamp (timbrar) one CFDI invoice from a Facture JSON document, through the given branch. This issues a real tax invoice with the SAT and uses Facture credits: call it only after the user confirms every field. The stamped XML is left out of the reply; get it from Facture. Facture API: POST /timbrado/json.

ParameterTypeDescription
branch_id *integerBranch id that signs the invoice (from facture_list_branches).
invoice_json *stringThe CFDI as a Facture JSON document (text). It is sent base64 encoded.

facture_cancel_invoice Cancel an invoice

Cancel (cancelar) one stamped invoice with the SAT. Reason 01 means an error with a replacement invoice: it needs replacement_uuid. Reasons 02 to 04 need no replacement. Cancelling can need the receiver's approval; the reply says so. Facture API: POST /cancelacion.

ParameterTypeDescription
reason *string01 error with a replacement, 02 error without a replacement, 03 operation not carried out, 04 global invoice.
uuid *stringThe fiscal UUID of the invoice to cancel.
replacement_uuidstringFiscal UUID of the replacement invoice. Required for reason 01.