Skip to content

Black Friday.Get 70% off your first two months70% off70% off your first 2 months

Get my 70%Get it
Ends 30 NovemberSales+34 608 911 052

Black Friday

Start with 70% off your first two months

Try Factuarea for 10 days with no card and, if you choose the monthly plan, pay only 30% of your first two months. On the annual plan, the discount equals two months at 70%.

Get my 70%See pricing

For new sign-ups until 30 November

Ends in

Esencial monthly: €2.97 a month for the first two months, instead of €9.90Annual: €83.74 for the first year, instead of €94.80Prices exclude VAT.

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

  • Stripe
  • WhatsAppWhatsApp
  • Facturae
POST/v1/companies/{company}/invoices
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 }] }'
ResponseWaiting
{ "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
GET/v1/companies/{company}/invoices
API=https://api.factuarea.com/v1curl \ "$API/companies/$COMPANY_ID/invoices?status=paid&limit=1" \ -H "Authorization: Bearer $FACTUAREA_API_KEY"
ResponseWaiting
{ "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. 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.

    POST/v1/companies/{company}/invoices
    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.json
    ResponseWaiting
    { "data": { "object": "invoice", "status": "draft", "is_number_assigned": false }}
  2. 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.

    POST/v1/companies/{company}/invoices
    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.json
    ResponseWaiting
    Idempotent-Replayed: true{ "data": { "object": "invoice", "status": "draft", "is_number_assigned": false }}
  3. 3

    Change the body and it is rejected

    The key identifies one specific operation: using it with another body returns 409 idempotency_key_reused.

    POST/v1/companies/{company}/invoices
    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.json
    ResponseWaiting
    { "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.

F-2026-142Estudio Ribera
Invoice total363,00 €

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 €Numbered
Previous hash7C21…B9F0
Record hashA3F1…7B44
Record typeCreation · F1
AEATAccepted
GET/invoices/{invoice}/verifactu

Factuarea 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 sandbox
POST/v1/companies/{company}/invoices
curl --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 }] }'
Waiting
{ "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: null

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.

Message us on WhatsApp+34 608 911 052

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.

Try free for 10 daysGet my 70%

No card requiredA real person helps you

Questions before you get started?See the quickstart