Web shop or subscriptions
Every payment in your web shop or SaaS automatically becomes a correct invoice, with your own order ID as externalId.
API
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.
Works with any language that speaks HTTP, for example:
How it works
No SDK or plugin needed. An API key and a plain HTTP request are enough.
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/v1Send 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
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
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 numberFetch 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
Networks hiccup and requests sometimes arrive twice. The API is built for that. Everything below is on every plan.
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
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=.
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.
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.
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.
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
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.
invoice.issuedinvoice.sentinvoice.paidinvoice.cancelledcredit_note.issuedquote.acceptedPOST 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" }
}
}Webhooks are part of Pro. The rest of the API works on every plan.
Secure and in the EU
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
A few integrations we often see at web shops, SaaS companies and service providers.
Every payment in your web shop or SaaS automatically becomes a correct invoice, with your own order ID as externalId.
A completed booking in your scheduling tool creates the invoice right away and emails it to your customer.
At the end of the month, turn the approved hours from your time tracking or CRM into invoices.
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
You pay nothing extra for the API. You only choose how much you invoice.
€0 forever
For building and for small volumes.
€7 a month excl. VAT
For integrations that invoice every day.
Frequently asked questions
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.
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.
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.
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.
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.
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.
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.
Create a free account and an API key, and make your first invoice from your own software today.