Facturama automation · runs weekly
Issue Facturama CFDI invoices from a list of jobs
At the end of the week you have a list of finished jobs, and each row still has to become a CFDI 4.0 invoice with the right client RFC, tax regime and IVA, then reach the client by email.
Cotlet does it in your own Facturama account with list_clients, create_client, create_invoice and email_invoice, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can Facturama do this on its own?
Facturama's API issues CFDI 4.0 invoices once you buy the API module and prepaid API folios (checked 14 Oct 2026). Facturama has no MCP server, and no Facturama feature builds invoices from a list of jobs.
How you do it in Facturama today
- You sign in to Facturama in the browser (Iniciar sesión) with the account that holds your invoicing folios.
- You find the client in your client catalog, which Facturama keeps so you can invoice quickly, or add the client first.
- You add the product or service lines, check the amounts and issue the CFDI 4.0 invoice, which Facturama stamps for the SAT.
- You send the invoice to the client by email from Facturama and download the PDF and XML if you want your own copy.
- You repeat this for every client, and a skipped row is a late invoice.
How to issue Facturama CFDI invoices from a list of jobs
Here are this week's finished jobs. For each client, find them in Facturama (create the client if missing, and tell me), issue one CFDI invoice with 16% IVA, and email it to the client. - 01
Match each client first
The agent looks every client name up with list_clients. A name with no match or with two close matches goes on your list, and a client is created only when the RFC, name and tax details are in your prompt or files.
- 02
Check the receiver data
Before stamping, the agent confirms that each client has an RFC, a CFDI use, a tax zip code and a fiscal regime, the fields Facturama's own invoice example sends for the receiver. A client missing one is reported instead of guessed.
- 03
Group rows into one invoice per client
Rows for the same client share one invoice, each with its quantity and unit price. The agent adds the 16% IVA line you asked for and shows subtotal, tax and total for your OK before create_invoice runs.
- 04
Stamp, then read back the folio
create_invoice stamps the invoice with the SAT, so there is no draft stage. The agent reports the series, folio and UUID Facturama returns for every invoice.
- 05
Email only after the stamp
email_invoice runs for the invoices that were stamped, to the address you gave. A stamp that failed is reported once and never retried on its own.
What you get back
Rows in the list: 3 across 2 clients
Stamped: 2
- Estudio Norte SA de CV: FAC-101, 2 x 500.00 + IVA 160.00 = 1,160.00 MXN
- Clinica Alba SC: FAC-102, 1 x 800.00 + IVA 128.00 = 928.00 MXN
Emailed: 2
Needs you: 0 clients with missing RFC or fiscal regime Other ways to ask
- Issue one invoice for Estudio Norte with 2 hours of design review at 500 pesos plus IVA, but ask me before stamping.
- Every Friday, invoice the jobs in this sheet and email me a summary instead of emailing clients.
- Add Clinica Alba as a client from this constancia de situación fiscal and invoice its two jobs.
- Re-send the invoices I issued on Monday to the clients that did not get them.
What Facturama allows, and what to know first
- Facturama stamps CFDI 4.0 invoices for the SAT, and each stamp uses one folio from your plan.
- Folios bought for the API only work through the API; the invoicing plan has its own folios.
- The receiver of a CFDI 4.0 invoice carries an RFC, a name, a CFDI use, a tax zip code and a fiscal regime in Facturama's invoice example.
- The Facturama response identifies an invoice by Id, Folio and series, and the UUID sits under Complement.TaxStamp.Uuid.
- A stamped invoice is a legal tax act, so a wrong one is fixed by cancelling it or by a credit note, not by editing it.
create_invoice and email_invoice ask for your OK by default. To run it weekly without you, switch confirmation off for those tools in your dashboard.
Sources: Facturama: online electronic invoicing · Facturama docs: first invoice · Facturama: plans and prices · Facturama: API overview
Call create_invoice from a script
curl -X POST https://cotlet.dev/api/v1/facturama/clients/cl_4821/invoices \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":[{"description":"Design review hour","quantity":2,"unit_price":500,"tax_rate":0.16}],"payment_form":"transfer","payment_method":"single payment"}' {
"invoice_id": "Y61TLX-Ls_ZJFqzjanPN1w2",
"series": "FAC",
"folio": "101",
"uuid": "6f1c2a90-3b7e-4d55-9a1e-0c52b8e4d7a1",
"cfdi_type": "ingreso",
"status": "issued",
"issued_at": "2026-10-14T10:32:00-06:00",
"client": {
"client_id": "cl_4821",
"rfc": "XAXX010101000",
"name": "Estudio Norte SA de CV"
},
"items": [
{
"description": "Design review hour",
"quantity": 2,
"unit_price": 500,
"subtotal": 1000,
"tax_rate": 0.16,
"tax": 160,
"total": 1160
}
],
"subtotal": 1000,
"tax_total": 160,
"total": 1160,
"currency": "MXN"
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is facturama_write → create_invoice. Example data.
Schedule it in n8n, Make, Zapier or cronFacturama tools this automation uses
| Tool | Parameters |
|---|---|
| list_clients | search, limit, cursor |
| create_client | rfc, name, cfdi_use, tax_zip_code, fiscal_regime, email |
| create_invoice | client_id, items, payment_form, payment_method, series |
| email_invoice | invoice_id, emails |
Frequently asked questions
Is it safe to connect Facturama to Cotlet?
Yes. You sign in to Facturama yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get Facturama once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.
Give your agent access to Facturama.
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with Facturama.