Developers
Your invoicing, connected to your AI and your code
Updated on Oct 29, 2026
Choose how to connect
MCP server
With your AI assistant
Ask Claude, ChatGPT or Cursor about your invoices, payments, expenses and accounting in plain language. All you need is a URL: no coding required.
https://mcp.facturadirecta.com
CLI
From the terminal or your coding agent
One command per operation, JSON output for scripts and a skill that Claude Code and Codex install with a single command.
facturadirecta setup
REST API and webhooks
From your application
Create invoices, sync contacts and products, record payments and get notified on your server whenever something changes.
https://app.facturadirecta.com/api
No code
With Zapier and integrations
Connect FacturaDirecta to your online store and thousands of apps without writing a single line of code.
See integrationsWhich option suits you?
| MCP server | CLI | REST API | |
|---|---|---|---|
| Designed for | Anyone who uses Claude, ChatGPT or another AI assistant | Developers, scripts and coding agents such as Claude Code or Codex | Developers integrating FacturaDirecta into their software |
| How it connects | A URL and your FacturaDirecta user | facturadirecta login with the browser, a device code or an API key | Per-company API key or OAuth 2.0 with PKCE |
| What it can do | Look up, create and update invoices, estimates, orders, expenses, contacts, products and banks, asking for your confirmation before changing anything, plus reports, accounting and tax returns | The whole API: query, create, send and automate | The whole API, plus real-time notifications with webhooks |
| Coding required? | No | Not really: they are commands, with JSON output if you want it | Yes |
Guides
See allThis technical documentation is available in Spanish.
API Pública de FacturaDirecta
Conecta tu software con FacturaDirecta mediante la API REST pública. Accede a contactos, productos, facturas, presupuestos, albaranes, …
Inicio rápido con la API
Haz tu primera llamada a la API de FacturaDirecta en minutos. Guía paso a paso con ejemplos de cURL.
Autenticación
La API pública de FacturaDirecta soporta dos métodos de autenticación, OAuth2 y API key.
Paginación y filtros estándar
La API pública usa tres patrones de listado distintos, no uno. Cada operación que devuelve una lista escoge el patrón que mejor encaja con …
Errores y validaciones
Las respuestas de error de la API pública siguen siempre la misma forma base, independientemente del recurso.
Idempotencia y reintentos seguros
Cuando una petición que modifica datos termina en timeout o se corta la conexión, no sabes si el servidor llegó a ejecutarla.
Versiones de documentos
Cada vez que se crea, modifica, elimina o recupera un documento, FacturaDirecta guarda una copia completa de cómo queda.
Catálogo de impuestos
Esta guía trata los tipos impositivos que se aplican a las líneas de los documentos (IVA, IRPF, IGIC…).
Reference by resource
Sales
Purchases and expenses
Contacts and products
Accounting, taxes and payroll
Account and settings
Search and analytics
Webhooks
Get notified on your server whenever a document is created, changed or sent.
41 events
See webhooksDocumentation that agents read too
Every page in this section has a Markdown version, and the llms.txt index brings them together by area. Give them to your assistant so it can help you integrate FacturaDirecta.
llms.txtIndex for agents, by areallms-full.txtAll the documentation in a single fileopenapi.jsonOpenAPI specification · v1.0.10asyncapi.jsonWebhooks AsyncAPI specificationmcp.facturadirecta.comMCP server URLtools.jsonMCP tools catalog in JSONcommands.jsonCLI commands in JSON