Developers
TomaTuFactura API
Connect your online shop, your CRM, your automations or an AI assistant to the whole app: 77 resources and 357 operations, with the same rules as the screens.
Base URL
https://tomatufactura.com/api/v1/
Header
Authorization: Bearer $TTF_CLAVE
MCP
https://tomatufactura.com/api/mcp
Getting started
- 1Create a keyIn Settings › Integrations and API, with just the permissions you need for what you are going to do.
- 2Make your first requestWith the key in the Authorization header. Every response is JSON.
- 3Get notified instantlySigned webhooks when an invoice is issued, collected, a contract is signed…
- 4Connect an AI assistantClaude, ChatGPT and others, with the MCP server and the same key.
Modules
The API is organised like the application, with these modules:
Sales and collections
Quotes, orders, delivery notes and invoices with their lines, due dates and receipts; recurring invoices and cycles; invoice follow-up and financial calendar.
Customers
Customer records with their addresses, contact history and bank accounts with SEPA mandate.
Contracts and commissions
Contracts signed by both parties, their recurring invoice and the sales reps' commissions.
Calendar, commercial calendar and CRM
Technician appointments, incidents, appointment types and series; commercial calendar appointments (visits, calls, meetings and tasks) and opportunities in the funnel.
Work orders
Technicians' work orders with their checks, fields, material used, customer signature and invoice, and the job types ("Work orders" module).
Catalogue and inventory
Items and services, variants, price lists, warehouses, movements, stock by batch and serial number, and restocking.
Purchases and expenses
Suppliers, supplier invoices and expenses with their payments, recurring expenses and purchase orders.
Banks and remittances
Bank accounts, statement transactions with their reconciliation and SEPA remittances.
Tax and reports
VeriFactu records of the invoices and their submission status to the AEAT.
Accounting and taxes
Journal entries, chart of accounts, fiscal years, trial balance and tax forms (303, 130, 111, 347…).
Team, clock-ins and payroll
Employees, working time clock-ins, monthly summary and payroll.
Notes, chat and WhatsApp
Notes, internal and customer chat, WhatsApp inbox and delivery log.
Company: users, roles and attachments
Users and roles (read-only), branches, departments and attachments of any record.
documentacion
Full documentation
The reference for every resource (fields, filters, operations and examples in curl, Python and JavaScript), the list of webhook events and the OpenAPI file are available to customers: sign in with a user who can create API keys or use an API key.