Developers

Invoicier API

Send Peppol e-invoices, Estonian e-invoices, and PDF invoices from any software with one HTTP call, and read the invoices your company sends and receives. One company, one key, plain JSON over HTTPS.

What the API does

The Invoicier API connects your own code to the same account you use in the Invoicier app. You post the invoice fields. Invoicier builds the legal e-invoice and a matching PDF, delivers it, and keeps the record in your account, where your team can see it.

Send

One call sends a Peppol invoice, an Estonian e-invoice, or a PDF invoice by email.

Receive

Read purchase invoices that arrived over Peppol or as Estonian e-invoices, with their PDF and original files.

Sync

List sales invoices, delivery status, and partners to keep your own system up to date.

You do not need your own Peppol access point. Invoicier registers your company on the Peppol network and handles the delivery.

Who it is for

Anyone whose invoices start in another system. Some examples:

  • ERP and accounting software. Send each issued invoice over Peppol and pull received supplier invoices back for booking.
  • Webshops. Send the invoice when an order is paid, by Peppol to business buyers and as a PDF by email to everyone else.
  • SaaS and indie makers. Bill your customers from your own backend in a few lines of code, with legal e-invoices from day one.
  • Agencies and freelancers. Turn time-tracking or project data into invoices without typing them again.
  • No-code automations. Any tool that can make an HTTP request, such as Make, Zapier, or n8n, can send an invoice.

The same plans apply as in the app, including the free plan. Read more in how to send Peppol invoices from your own software.

Quickstart

  1. In Invoicier, open Integrations and choose API.
  2. Create a key and copy it. It is shown once.
  3. Send your first invoice:
curl https://app.invoicier.com/api/v1/invoices \
  -H "Authorization: Bearer invoicier_sk_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-10452" \
  -d '{
    "channel": "peppol",
    "number": "2026-0142",
    "issueDate": "2026-11-27",
    "dueDate": "2026-12-11",
    "currency": "EUR",
    "buyer": {
      "name": "Example BV",
      "country": "BE",
      "vatNumber": "BE0878854464",
      "peppolId": "0208:0878854464",
      "address": "Rue de la Loi 16",
      "city": "Brussels",
      "postalCode": "1000"
    },
    "lines": [
      {"description": "Consulting", "quantity": 8, "unitPrice": 95, "taxRate": 21, "unit": "Hour"}
    ]
  }'

A sent invoice answers 200 with the stored invoice under data:

{
  "data": {
    "id": "15",
    "direction": "sales",
    "channel": "peppol",
    "number": "2026-0142",
    "status": "sent",
    "delivery": "sent",
    "currency": "EUR",
    "total": "919.60"
  }
}

Python and Node examples

The same invoice in Python with requests:

import os
import requests

invoice = {
    "channel": "peppol",
    "number": "2026-0142",
    "issueDate": "2026-11-27",
    "dueDate": "2026-12-11",
    "currency": "EUR",
    "buyer": {
        "name": "Example BV",
        "country": "BE",
        "vatNumber": "BE0878854464",
        "peppolId": "0208:0878854464",
        "address": "Rue de la Loi 16",
        "city": "Brussels",
        "postalCode": "1000",
    },
    "lines": [
        {"description": "Consulting", "quantity": 8, "unitPrice": 95, "taxRate": 21, "unit": "Hour"}
    ],
}

response = requests.post(
    "https://app.invoicier.com/api/v1/invoices",
    json=invoice,
    headers={
        "Authorization": f"Bearer {os.environ['INVOICIER_API_KEY']}",
        "Idempotency-Key": "order-10452",
    },
    timeout=60,
)
body = response.json()
if response.ok:
    print("Sent", body["data"]["id"])
else:
    print(response.status_code, body["error_code"], body["error"])

And in Node 18 or newer, with the built-in fetch:

const response = await fetch("https://app.invoicier.com/api/v1/invoices", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.INVOICIER_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": "order-10453",
  },
  body: JSON.stringify({
    channel: "pdf",
    number: "2026-0143",
    issueDate: "2026-11-27",
    dueDate: "2026-12-11",
    currency: "EUR",
    buyer: { name: "Jane Doe", country: "DE", email: "[email protected]" },
    lines: [{ description: "Annual plan", quantity: 1, unitPrice: 120, taxRate: 19 }],
  }),
});

const body = await response.json();
if (!response.ok) throw new Error(`${body.error_code}: ${body.error}`);
console.log("Sent", body.data.id);

Keep the key on your server in an environment variable. Never ship it in a browser or mobile app.

Authentication

Send the key as a bearer token on every request:

Authorization: Bearer invoicier_sk_...

The key chooses the company, so you never send a workspace id. The base URL is https://app.invoicier.com/api/v1.

  • Keys work only in the Authorization header. A key in a query string (api_key, key, token, access_token) is refused.
  • Invoicier stores only a hash of the key. If you lose it, revoke it and create a new one.
  • A company can hold up to 10 live keys. Revoking a key stops it at once.
  • The API has no browser CORS access. Call it from your server, never from a web page.

The machine-readable OpenAPI 3 description is public at https://app.invoicier.com/api/v1/openapi.json. Import it into Postman, Insomnia, or a code generator to get every route and field.

Who can get a key

A key can be created once your company account is validated and live on Peppol. While the account is still being activated, the API section shows no key. Any team member with access to the company can create and revoke keys.

Send an invoice

POST/api/v1/invoices

Sends one invoice. The seller is always the company that owns the key. The bank account is bankId, or the first account saved in your company settings when you leave it out.

Invoicier checks the invoice before anything is sent. A missing or invalid field returns 400 with an error_code, nothing is delivered, and you can fix the body and retry with the same Idempotency-Key. Unknown fields are refused, so a typo never disappears silently.

Each sent invoice counts as one transaction on your Invoicier plan. When the plan is full the API answers 403 transaction_limit and sends nothing.

Channels

channelDeliversAlso required
peppolA Peppol BIS Billing 3.0 e-invoice to the buyer's access point, with the PDF attached.buyer.peppolId, buyer.address, buyer.city, buyer.postalCode
earveAn Estonian e-invoice (e-arve) to an Estonian company. Available to Estonian companies verified in Invoicier.Currency EUR, Estonian buyer.registryCode, unit and a positive quantity on each line
pdfThe invoice PDF by email, with the same default message the app uses.buyer.email

Every channel needs number, issueDate, dueDate, buyer.name, buyer.country, and at least one line with a price. Peppol country rules apply as in the app, for example the buyer reference and references on Greek public-sector invoices.

Request fields

FieldTypeNotes
channelstringpeppol, earve, or pdf. pdf_email is accepted as pdf.
numberstringYour invoice number. It must be unique for the company.
issueDate, dueDatestringYYYY-MM-DD. The issue date cannot be in the future.
currencystringISO code, for example EUR.
bankIdintegerOne of the company's saved bank accounts.
buyerobjectname, country, registryCode, vatNumber, peppolId, address, city, postalCode, email, legalEntityId.
linesarrayUp to 200 lines: description, quantity, unitPrice, taxRate, unit, cpv, vatTreatment.
notesstringPrinted on the invoice.
paymentReferencestringEstonian companies must use a valid 7-3-1 reference number.
buyerReference, purchaseOrder, contractReferencestringReferences the buyer asked for.
greekPublicSector, caCode, projectReference, budgetTypemixedOnly for Greek public-sector buyers.

Leave taxRate out when the line carries no VAT. A 0 rate is a real 0% line. For a VAT-registered Estonian seller, a 0% line on an Estonian e-invoice also needs vatTreatment: zero_rated, exempt, or not_taxable.

Idempotency

Every send needs an Idempotency-Key header of 8 to 200 letters, numbers, or . _ : -. Use something stable from your system, such as the order or invoice id.

  • The same key with the same body returns the stored result for 24 hours. It never sends a second invoice.
  • The same key with a different body returns 409 idempotency_conflict.
  • While the first request is still being sent, a repeat returns 409 idempotency_in_progress. Retry later with the same body.

So when a network error leaves you unsure, retry with the same key and body. That is always safe.

Send results

StatusMeaning
200The invoice was sent. data is the stored invoice.
202 earve_uncertainThe Estonian e-invoice may already exist. Do not send it again. Contact support.
400Refused before sending. Fix the field named by error_code.
403transaction_limit, or the company cannot use this channel yet.
409The idempotency key is in progress or was used for a different body.
500 send_uncertainThe Peppol invoice may already be delivered. Do not send it again. reference identifies it for support.

Treat send_uncertain and earve_uncertain as possibly sent. Sending the same invoice under a new key could deliver a duplicate legal invoice to your customer.

Delivery over Peppol continues after the send. Read the invoice later to see whether delivery moved to delivered, refused, or error.

Pagination

List routes return {"data": [...], "nextCursor": "..."}, newest first. limit runs from 1 to 100 and defaults to 50. Pass nextCursor back as cursor to get the next page. On the last page it is null. Money amounts are decimal strings, so "919.60", never a float.

curl "https://app.invoicier.com/api/v1/invoices?limit=100&cursor=eyJ..." \
  -H "Authorization: Bearer invoicier_sk_..."

Sales invoices

GET/api/v1/invoices

Each item has id, channel (peppol, pdf_email, or earve), documentKind, number, status, delivery, dates, currency, the buyer name, and total. This includes invoices sent in the app, not only through the API.

GET/api/v1/invoices/{id}

Adds the seller, the buyer, lines, totals, notes, and the payment reference. delivery is delivered, sent, refused, or error. A refused or undelivered Peppol invoice includes deliveryReason.

Purchase invoices

GET/api/v1/purchases

Invoices your company received. Peppol purchases use ids like peppol:42, Estonian e-invoices use earve:42. Deleted invoices are left out.

GET/api/v1/purchases/{id}

Adds the supplier, lines, payment details, and attachments: the original extra files that arrived with the invoice. For an Estonian e-invoice, the original XML is attachment xml.

When a purchase arrives after your plan's monthly allowance, it is locked until you upgrade. A locked purchase shows the supplier and invoice date with locked: true, and leaves out the number, due date, currency, total, lines, and files.

Partners

GET/api/v1/partners GET/api/v1/partners/{id}

Customers and suppliers saved in Invoicier, with registry code, VAT number, address, email, and Peppol ID. role is customer, supplier, or both.

PDFs and files

GET/api/v1/invoices/{id}/pdf
GET/api/v1/purchases/{id}/pdf
GET/api/v1/purchases/{id}/attachments/{attachmentId}

Return the stored file. When no PDF is stored, the answer is 404 pdf_unavailable. A locked purchase returns 403 invoice_locked and no file.

Errors

A failed call is never a 200. The body is always:

{"error": "Enter a Peppol ID as four digits, a colon, and the identifier.", "error_code": "invalid_peppol_id"}

Build your logic on error_code. The error text is for people and can change.

StatusCodeWhen
401unauthorizedThe key is missing, revoked, or not valid.
403account_unavailableThe company cannot use the API right now.
403transaction_limitThe plan's monthly transactions are used up. Nothing was sent.
403invoice_lockedThe purchase is locked until the plan is upgraded.
404not_foundThe record is not in this company.
400unknown_fieldThe body has a field the API does not know.
400idempotency_key_requiredThe send has no valid Idempotency-Key.
400invalid_cursor, invalid_limitThe cursor or limit is not valid for this list.
413body_too_largeThe request body is over 256 KB.
429rate_limitedToo many requests. Wait and retry.

Limits

  • 60 read requests per minute per key.
  • 10 send requests per minute per key.
  • 30 failed authentications per minute per IP address.
  • 200 lines per invoice and 256 KB per request body.
  • Reads return what is stored in Invoicier. They do not query the Peppol network, so they are fast and do not count as transactions.

Security

  • Every request is limited to the company that owns the key. A key can never read or send for another company.
  • Keys are stored only as a SHA-256 hash and shown once.
  • Responses are marked Cache-Control: no-store.
  • All traffic is HTTPS. Data is hosted in the EU (Frankfurt).

FAQ

Can I send Peppol invoices with the Invoicier API?
Yes. Post to /api/v1/invoices with channel peppol. Invoicier builds the Peppol document and a PDF from your fields and delivers it over the Peppol network.
Do I need my own Peppol access point?
No. Invoicier registers your company on Peppol. Your software only calls the Invoicier API.
How do I avoid sending the same invoice twice?
Send an Idempotency-Key with every send. A retry with the same key and body returns the stored result instead of sending again.
Can I read invoices my company received?
Yes. /api/v1/purchases lists Peppol and Estonian e-invoices you received, with their PDF and original files.
Does the API cost extra?
No. An invoice sent through the API counts as one transaction on your normal plan, the same as an invoice sent in the app. Reads are free.
Is there a test environment?
Not yet. Send a first invoice to your own company's Peppol ID, or use the pdf channel to your own email, to check your integration.
Can I use it from Make, Zapier, or n8n?
Yes. Use their HTTP request step with the same URL, headers, and JSON body as the examples above.
Which programming languages are supported?
Any language that can send an HTTPS request with JSON. The OpenAPI file lets you generate a client for most languages.