Invoicing REST API
Invoicing REST API. Your software, connected
Create and send invoices, record payments and connect customers, catalog and workflows to your ERP, store or application. An invoicing REST API with VeriFactu and FacturaE, using the same data as your team.
- Sandbox for testing
- TypeScript and PHP SDKs
- Public OpenAPI
Compatible integrations and formats

WhatsApp

API=https://api.factuarea.com/v1curl --request POST \ "$API/companies/$COMPANY_ID/invoices" \ -H "Authorization: Bearer $FACTUAREA_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "client_id": "f58fbf7f-333f-499b-affc-c0d396cbd83f", "issued_on": "2026-11-13", "due_on": "2026-12-13", "lines": [{ "description": "Consultoría", "quantity": 2, "unit_price": 150, "tax_rate": 21 }] }'{ "data": { "id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a42", "object": "invoice", "status": "draft", "total": 363, "currency": "EUR" }}API map
Everything Factuarea does, also through the API
736 operations across 55 resources. Pick an area of the product and see its real endpoints with a call and its response.
Invoices, delivery notes, proformas, quotes and recurring invoices, with numbering, PDF and sending.
- GET
/invoicesinvoices:read - POST
/invoicesinvoices:write - POST
/invoices/{invoice}/sendinvoices:send - GET
/invoices/{invoice}/pdfpdfs:read - POST
/quotes/{quote}/convertquotes:transition - POST
/recurring-invoicesrecurring_invoices:write
API=https://api.factuarea.com/v1curl \ "$API/companies/$COMPANY_ID/invoices?status=paid&limit=1" \ -H "Authorization: Bearer $FACTUAREA_API_KEY"{ "data": [ { "id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a42", "object": "invoice", "number": "F-2026-142", "status": "paid", "total": 363, "currency": "EUR" } ], "has_more": false, "next_cursor": null}Retries without duplicates
One operation, even if you retry.
The same idempotency key returns the first response for 24 hours; with a different body, the API answers 409.
- 1
Send with an Idempotency-Key
Every POST that creates something carries its own key, which you generate. The API creates the draft and answers 201.
API=https://api.factuarea.com/v1curl --request POST \ "$API/companies/$COMPANY_ID/invoices" \ -H "Authorization: Bearer $FACTUAREA_API_KEY" \ -H "Idempotency-Key: $INVOICE_REQUEST_ID" \ -H "Content-Type: application/json" \ -d @invoice.jsonResponseWaiting{ "data": { "object": "invoice", "status": "draft", "is_number_assigned": false }} - 2
Retry with the same key
If the network fails, repeat the identical request. You get the first response, marked with Idempotent-Replayed: true, and no second document is created.
API=https://api.factuarea.com/v1curl --request POST \ "$API/companies/$COMPANY_ID/invoices" \ -H "Authorization: Bearer $FACTUAREA_API_KEY" \ -H "Idempotency-Key: $INVOICE_REQUEST_ID" \ -H "Content-Type: application/json" \ -d @invoice.jsonResponseWaitingIdempotent-Replayed: true{ "data": { "object": "invoice", "status": "draft", "is_number_assigned": false }} - 3
Change the body and it is rejected
The key identifies one specific operation: using it with another body returns 409 idempotency_key_reused.
API=https://api.factuarea.com/v1curl --request POST \ "$API/companies/$COMPANY_ID/invoices" \ -H "Authorization: Bearer $FACTUAREA_API_KEY" \ -H "Idempotency-Key: $INVOICE_REQUEST_ID" \ -H "Content-Type: application/json" \ -d @otra-factura.jsonResponseWaiting{ "error": { "type": "idempotency_error", "code": "idempotency_key_reused", "doc_url": "https://docs.factuarea.com/guides/errors#idempotency_key_reused" }}
Invoicing in Spain
Integrate the invoice and its tax workflow
An invoicing API with VeriFactu should explain what document is created and what happens next. Factuarea keeps records, formats and statuses within the issuing company.
VeriFactu, according to your company’s mode
Issuance follows the company’s tax configuration. If VeriFactu is enabled, the record is generated and submitted; its statuses are available through the API. Using REST does not enable VeriFactu by itself.
F-2026-142 · 363,00 €NumberedPrevious hash7C21…B9F0Record hashA3F1…7B44Record typeCreation · F1AEATAccepted/invoices/{invoice}/verifactuFactuarea test mode
Validate the request before taking it to production
An invalid quantity fails in the sandbox too. Check the API response with fact_test_ and prepare your application to handle both success and rejection.
Explore the API sandboxcurl --request POST \ "$API/companies/$COMPANY_ID/invoices" \ -H "Authorization: Bearer $FACTUAREA_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "client_id": "f58fbf7f-333f-499b-affc-c0d396cbd83f", "issued_on": "2026-11-13", "due_on": "2026-12-13", "lines": [{ "description": "Consultoría", "quantity": 2, "unit_price": 150, "tax_rate": 21 }] }'{ "data": { "object": "invoice", "status": "draft", "number": null, "total": 363, "currency": "EUR" }}Draft created: €300.00 net and €63.00 VAT. No invoice number is used yet.
status: draft · number: nullReady to integrate
Test, retry and stay in control
The technical contract supports the result: authentication, permissions, idempotency, limits and versioning. Check the documentation before connecting real data.
Questions
Your questions when evaluating the API
Still have a question?
A person on the team answers, on any plan. Write to us the way you would to a colleague.
Monday to Friday, 9:00 to 18:00
Create, number and send invoices, retrieve PDFs, record payments and issue corrections. You can also work with contacts, catalog, purchases, quotes, recurring invoices and workflows. Each resource requires its permissions and corresponding modules.
A more connected business
Build your first invoicing workflow
Explore the sandbox, create a test invoice and connect the operations your business needs.
No card requiredA real person helps you