Developers

Your invoicing, connected to your AI and your code

Ask your AI assistant anything about your business, automate tasks from the terminal or integrate FacturaDirecta into your software. MCP server, CLI, REST API and webhooks on every plan, including Free.
187API operations
41webhook events
35MCP tools
v0.17.0CLI version

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
Connect my assistant

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
Install the CLI

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
See the 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 integrations

Which option suits you?

MCP serverCLIREST API
Designed forAnyone who uses Claude, ChatGPT or another AI assistantDevelopers, scripts and coding agents such as Claude Code or CodexDevelopers integrating FacturaDirecta into their software
How it connectsA URL and your FacturaDirecta userfacturadirecta login with the browser, a device code or an API keyPer-company API key or OAuth 2.0 with PKCE
What it can doLook up, create and update invoices, estimates, orders, expenses, contacts, products and banks, asking for your confirmation before changing anything, plus reports, accounting and tax returnsThe whole API: query, create, send and automateThe whole API, plus real-time notifications with webhooks
Coding required?NoNot really: they are commands, with JSON output if you want itYes

Guides

See all

This 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

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

Test without fear in a sandbox

Create isolated sandbox companies, with their own API keys and webhooks, to develop and test without touching your real data.

Discover sandboxes

Simplify your invoicing and save time

Join thousands of freelancers and SMEs who already manage their invoices quickly and easily with FacturaDirecta
Start Free