---
title: "Invoice API: create invoices from your own software · EenFactuurMaken.nl"
description: "Connect your web shop or SaaS to EenFactuurMaken.nl. REST API on every plan: create and issue an invoice in one call, PDF and UBL, safe retries. Webhooks on Pro."
url: "https://eenfactuurmaken.nl/en/invoice-api"
markdown_url: "https://eenfactuurmaken.nl/en/invoice-api.md"
language: "en-GB"
---

API

# Create invoices from your own software

Connect your web shop, booking system or SaaS to EenFactuurMaken.nl. One call creates an invoice that meets the Dutch rules, with a number, PDF and UBL. The API is on every plan, including the free one.

[Start free with the API](https://eenfactuurmaken.nl/en/signup) [Read the integration guide](https://eenfactuurmaken.nl/en/docs/api/integrate)

Works with any language that speaks HTTP, for example:

- OpenAPI 3.1
- cURL
- Node.js
- PHP
- Python

How it works

## Connected in three steps

No SDK or plugin needed. An API key and a plain HTTP request are enough.

1. ### Create an API key

   Go to Settings → API & AI and choose what the key may do. For an integration that only invoices, choose ‘Invoices’. You see the key once: keep it on your server, never in the browser.

   ```
   # Only on your server, never in the browser
   export EENFACTUURMAKEN_API_KEY=efm_…
   export API=https://eenfactuurmaken.nl/api/v1
   ```

2. ### Create the invoice and issue it

   Send the customer and the lines with issue: true. You get an issued invoice with its number back. If something isn't right, you get a clear error and nothing is created. With your own externalId and an Idempotency-Key, retrying is safe.

   cURL

   ```bash
   curl -X POST "$API/invoices" \
     -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
     -H "Content-Type: application/json" \
     -H "Idempotency-Key: invoice-order-1042" \
     -d '{
       "issue": true,
       "externalId": "order-1042",
       "customerExternalId": "cus_981",
       "lines": [
         { "description": "Subscription October", "quantity": "1", "unitPriceCents": 2900, "vatRate": "21" }
       ]
     }'

   # Issued invoice with its number
   { "id": "…", "number": "2026-0042", "status": "issued", "totalCents": 3509, … }
   ```

   Node.js

   ```js
   const res = await fetch(`${process.env.API}/invoices`, {
     method: 'POST',
     headers: {
       'Authorization': `Bearer ${process.env.EENFACTUURMAKEN_API_KEY}`,
       'Content-Type': 'application/json',
       'Idempotency-Key': `invoice-${order.id}`,
     },
     body: JSON.stringify({
       issue: true,
       externalId: order.id,
       customerExternalId: order.customerId,
       lines: [{ description: 'Subscription October', quantity: '1', unitPriceCents: 2900, vatRate: '21' }],
     }),
   })
   const invoice = await res.json() // Issued invoice with its number
   ```

3. ### Download it or send it

   Fetch the PDF and the UBL (Peppol) for your own system, or let us email the invoice to your customer, with the PDF and UBL attached.

   ```
   # Download the PDF and UBL
   curl "$API/invoices/$ID/pdf?download=1" \
     -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" -o invoice.pdf
   curl "$API/invoices/$ID/ubl" \
     -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" -o invoice.xml

   # Or email it to your customer
   curl -X POST "$API/invoices/$ID/send" \
     -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
     -H "Content-Type: application/json" -d '{}'
   ```

Ready for production

## Built for integrations that keep working

Networks hiccup and requests sometimes arrive twice. The API is built for that. Everything below is on every plan.

- ### Safe retries

  On every plan

  Send an Idempotency-Key with every POST. If the same request comes in again, you get the first response back instead of a second invoice. [How it works](https://eenfactuurmaken.nl/en/docs/api/idempotency)

- ### Your own IDs

  On every plan

  Give customers and invoices your own reference as externalId. If it already exists, you get a clear 409 with the existing ID. Later you simply look it up with ?externalId=.

- ### Create and issue in one go

  On every plan

  With issue: true we create and issue the invoice in one transaction. If anything goes wrong, such as a missing KvK number or your free limit, we roll everything back: no half-finished draft, no new customer, no used-up invoice.

- ### Dutch rules built in

  On every plan

  Mandatory invoice details, sequential numbering, reverse charge, KOR, intra-EU supplies and the VIES check on VAT numbers. If something isn't right, you see exactly what's missing.

- ### PDF and UBL (Peppol)

  On every plan

  Every invoice as a clean PDF in your own house style and as UBL following Peppol BIS Billing 3.0 and NLCIUS, ready for your accounting software.

- ### Keys with just enough access

  On every plan

  Choose per key: ‘Full’, ‘Invoices’ or ‘Read only’. A read-only key can't create or send anything, even if it leaks.

Webhooks on Pro

## Your software knows right away

With webhooks we send a message to your server as soon as something changes. So you don't have to keep asking whether an invoice has been paid yet.

### Events

`invoice.issued`

An invoice was issued.

`invoice.sent`

An invoice or credit note was sent by email.

`invoice.paid`

An invoice or credit note was marked as paid.

`invoice.cancelled`

An invoice or credit note was cancelled.

`credit_note.issued`

A credit note was issued.

`quote.accepted`

A quote was accepted, with the ID of the new draft invoice.

```
POST https://your-app.example/webhooks/eenfactuurmaken
webhook-id: msg_…
webhook-timestamp: 1793614500
webhook-signature: v1,…

{
  "type": "invoice.paid",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "number": "2026-0042",
    "status": "paid",
    "totalCents": 3509,
    "externalId": "order-1042",
    "customer": { "id": "…", "externalId": "cus_981" }
  }
}
```

### As reliable as it should be

- Signed following Standard Webhooks, so you can check that a message really comes from us.
- If delivery fails, we retry for up to about 45 hours.
- A delivery log per address, a test message and one-click redelivery.
- Rotate your signing secret without downtime: for a while, the old and the new one both work.
- No names, addresses or email addresses in the message. You fetch the details with your API key.

Webhooks are part of Pro. The rest of the API works on every plan.

[Read the webhook docs](https://eenfactuurmaken.nl/en/docs/api/webhooks)

Secure and in the EU

## Your customers' data stays in Europe

An integration processes your customers' data. That's why we set up the API strictly.

- Servers, database and backups are at Hetzner in Germany.

- You see an API key once. We only store it hashed.

- Every key has a level: ‘Full’, ‘Invoices’ or ‘Read only’.

- You can revoke a key yourself at any time, and it stops working immediately.

- At most 120 requests per minute per key, so a bug in your code can't get out of hand.

- Webhooks only go to public https addresses, never to internal networks.

- Only use your key on your server. The API isn't meant for the browser, because anyone could see your key there.

Examples

## What you can build with it

A few integrations we often see at web shops, SaaS companies and service providers.

- ### Web shop or subscriptions

  Every payment in your web shop or SaaS automatically becomes a correct invoice, with your own order ID as externalId.

- ### Bookings and appointments

  A completed booking in your scheduling tool creates the invoice right away and emails it to your customer.

- ### Hours and projects

  At the end of the month, turn the approved hours from your time tracking or CRM into invoices.

- ### Processing payments

  When a payment comes in at your bank or payment provider, mark the invoice as paid. With webhooks (Pro), your CRM knows right away.

Pricing

## The API is on every plan

You pay nothing extra for the API. You only choose how much you invoice.

### Free

**€0** forever

For building and for small volumes.

- 5 invoices a month, app and API combined
- The full REST API and MCP server
- API keys with three levels
- Invoices kept for 60 days

### Pro Unlimited

**€7** a month excl. VAT

For integrations that invoice every day.

- Unlimited invoices
- Webhooks to your own software
- Kept for 7 years, exactly the legal retention period
- Recurring invoices and automatic reminders

[Start for free](https://eenfactuurmaken.nl/en/signup) [See all differences between Free and Pro](https://eenfactuurmaken.nl/en/pricing)

Frequently asked questions

## Questions about the API

### Does the API cost extra?

No. The API is on every plan, including the free one. On Free you create 5 invoices a month, through the app and the API combined. Pro costs €7 a month excl. VAT and gives you unlimited invoices plus webhooks.

### Can I sign in with OAuth?

Not for the REST API. You use an API key, which you create in your settings and can revoke at any time. We only use OAuth to connect AI assistants through the MCP server.

### What happens if my request arrives twice?

Send an Idempotency-Key with every POST, for example a UUID. If the same request arrives again within 24 hours, you get the first response back and nothing is created twice. Also give invoices and customers an externalId: a duplicate create then returns a 409 with the ID that already exists.

### Can I set my own payment link per invoice?

Leave out paymentLink and the invoice uses the default payment link from your settings. A different payment link for a single invoice can only be set in the web app, not with an API key.

### I have several businesses. How do I connect them?

An account belongs to one business, with one business profile and one number series. If you have several businesses, create an account per business, each with its own API key.

### Where is my data stored?

Your account, invoices and customers are at Hetzner in Germany, and so are the backups. We send emails to your customers through Resend, from its EU region in Ireland (Resend is a US company). Webhooks only go to the addresses you set up. Read more on our security page.

### What happens to my webhooks if I stop Pro?

Your addresses stay saved and you can view or delete them, but we stop sending messages. If a message was still waiting at that moment, we skip it and email you about it once. If you go back to Pro, new events flow again. We don't resend what you missed in between: fetch that with the API.

## Ready to connect?

Create a free account and an API key, and make your first invoice from your own software today.

[Start for free](https://eenfactuurmaken.nl/en/signup) [Read the integration guide](https://eenfactuurmaken.nl/en/docs/api/integrate)
