Introduction to the Billora API

What you can build with the Billora REST API, how it is organized and the concepts worth knowing before you start.

The Billora API is a REST API over HTTPS that uses JSON for requests and responses. It is the same API the Billora web app uses, so everything you see in the app (invoices, customers, expenses, payments, cases…) can be read and automated from your own software.

https://api.billora.app/api/v1

What you can do

  • Invoice from your system: create draft invoices, issue them (numbering + VeriFactu record), email them, download the PDF or Facturae and record payments.
  • Sync master data: customers, suppliers, contact people, products and services, in both directions.
  • Track expenses and purchases: record received invoices with their VAT breakdown, confirm them and attach the original.
  • Manage cases: create cases and actions and upload documents (law firms, accountants, experts…).
  • React to events: receive signed webhooks when an invoice is issued or paid, a customer is created, an expense is confirmed, and more.
  • Export data to your ERP, BI or accounting: tax reports, VAT books and journal entries (read only).

Key concepts

Organization

Everything in Billora belongs to an organization (the company or professional who invoices). Each API key is created inside an organization and can only see and change that organization's data. If you manage several companies, you need one key per organization. The X-Organization-Id header used by the web app is ignored when you authenticate with an API key.

Documents and statuses

Sales documents (invoices, quotes, proformas and corrective invoices) are always created as drafts (draft). A draft can be edited or deleted freely. When you issue it, Billora assigns the series number and issue date and, for invoices, records it in VeriFactu. From then on the invoice can no longer be edited or deleted: only cancelled or corrected with a corrective invoice.

StatusMeaning
draftDraft: editable, no number.
sentIssued (and submitted to the Spanish Tax Agency if VeriFactu is enabled).
partially_paid / paidPartly or fully paid.
overduePast due and unpaid.
rectifiedIts amount is fully offset by issued corrective invoices.
cancelledCancelled.

VeriFactu

Billora is a VeriFactu invoicing system: when you issue an invoice it generates the chained invoicing record and submits it to the Spanish Tax Agency (AEAT) if the organization has VeriFactu enabled. This is irreversible and happens in the same issuing call. See Invoicing and VeriFactu.

Environments

There is no test environment (sandbox)

The API always works on real data. While developing, create a test organization separate from your real one (with its own API key), without VeriFactu enabled and with a test numbering series. That way you can issue, cancel and delete without affecting your invoicing or the tax agency.

Permissions

Each API key has scopes (invoices:read, contacts:write…) that limit what it can do. Keys are created and managed by the organization's owners and admins. See Authentication and API keys.

How the API is organized

  • Resources with plural paths (/invoices/, /customers/, /expenses/) and the usual operations: GET to list and read, POST to create, PATCH to update and DELETE to delete.
  • Actions on a resource with POST and a kebab-case name: /invoices/{id}/send/, /invoices/{id}/mark-paid/, /quotes/{id}/to-invoice/.
  • Paginated lists with count, next, previous and results. See Pagination, filtering and ordering.
  • Errors with a single format and a request_id for support. See Errors.

The API reference is generated from the public OpenAPI 3 specification, which you can download from /api/v1/openapi.json to generate clients in your language or import into Postman or Insomnia.

Spanish field values

Billora is built for Spanish invoicing. Field names are in English, but some values and every error detail message are in Spanish (for example tax names such as «IVA General 21%»). Codes (code, statuses, types) are stable identifiers you can rely on.

Requirements

  • A Billora account on a plan with API access (Pro or Business).
  • Being an owner or admin of the organization to create API keys.
  • HTTPS (TLS 1.2 or later). Unencrypted HTTP requests are not accepted.

Rather not write code? With the Claude integration (MCP) you can work with Billora in natural language.