Formats and pagination
The conventions of the EenFactuurMaken.nl REST API. JSON, amounts in cents, decimals as strings, dates, lists and pagination, filtering, sorting and PATCH.
JSON
You send JSON with Content-Type: application/json and get JSON back. Exceptions: PDF (application/pdf), UBL (application/xml), ZIP exports and logo uploads (multipart/form-data with a file field).
Amounts in cents
All amounts are whole cents in fields ending in Cents: unitPriceCents: 8500 is €85.00. That way you never get rounding differences. Line prices are excluding VAT.
Credit notes store amounts as positive numbers. Make them negative yourself in reports.
Decimals as strings
Quantities, discounts, VAT rates and exchange rates are decimals. Send them as a string or a number: "2.5", 2.5 and "2,5" all work. You get them back as strings, for example "quantity": "2.5000", "vatRate": "21.00".
Dates
- Business dates (invoice date, due date, supply date) are
YYYY-MM-DD, without a time. "Today" means today in the Netherlands. - Timestamps (fields ending in
At, likecreatedAtandpaidAt) are ISO 8601 in UTC.
Ids
Ids are strings (uuids). You only see your own data: the id of something belonging to someone else simply returns 404 not_found.
Your own ids (externalId)
Customers, invoices and credit notes have an externalId field for the id from your own system, such as a customer number or order number.
- 1 to 100 characters: letters, digits and punctuation, no spaces (printable ASCII). Leading and trailing spaces are removed.
- Unique within your account. Invoices and credit notes share one namespace, drafts included. Customers have their own namespace, archived ones included.
- A second
POSTwith anexternalIdthat already exists returns409 external_id_takenwith the id of what's already there indetails:{ "resource": "invoice", "id": "…", "status": "issued", "kind": "invoice" }or{ "resource": "customer", "id": "…", "archived": false }. So a repeat never creates a second invoice. - Look it up with
?externalId=onGET /invoicesandGET /customers(exact match, and for customers archived ones too). - On an invoice, refer to an existing customer with
customerExternalIdinstead ofcustomerId. No customer with that id:422 unknown_customer. - Change it with
PATCH(for invoices only while it's a draft);nullclears it. - We never copy it: not to a duplicate, a credit note or a recurring invoice.
- It becomes free again when you delete a draft or when an invoice on the Free plan is deleted after 60 days.
In the app it shows as External ID on the invoice and the customer. In the CSV export it's the last column.
Lists
Lists always return this:
{
"data": [ { "id": "…", "number": "2026-0001" } ],
"page": 1,
"pageSize": 25,
"total": 132
}Page through them with page (from 1) and pageSize (default 25, maximum 100).
Filtering invoices
GET /invoices accepts these parameters:
| Parameter | Values |
|---|---|
status | draft, issued, sent, paid, cancelled, overdue (unpaid and late), open (issued or sent, unpaid) |
kind | invoice or credit_note |
customerId | Invoices for one customer |
externalId | The invoice or credit note with this own id |
q | Search by number, customer or reference |
from, to | Invoice date from / up to and including (YYYY-MM-DD) |
sort | issueDate, number, total, dueDate, createdAt; prefix with - for descending. Default -createdAt |
Example: all overdue invoices, oldest due date first:
curl "https://eenfactuurmaken.nl/api/v1/invoices?status=overdue&sort=dueDate&pageSize=100" \
-H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"Search customers and products with q; include archived customers with includeArchived=true. externalId finds one customer by your own id, also when it's archived.
Creating and updating
POSTcreates something and returns the new object (status201). Actions like/issueand/mark-paidreturn the updated object (status200).- Send an
Idempotency-Keywith everyPOSTso you can retry it safely. See Idempotent requests. POST /invoiceswith"issue": truecreates the invoice and issues it in one go: you get the issued invoice back, or an error and then nothing was created. See Integrate with your SaaS.PATCHonly changes the fields you send. Fields you leave out stay as they were. Sendnull(or""for text) to clear a field.- For invoices,
linesin aPATCHreplaces all lines. So send the complete list. DELETEreturns a short response, like{ "id": "…", "deleted": true }. A customer or product that's still used on invoices is archived instead of deleted.
You can no longer change a finalised invoice with PATCH (409 invoice_locked). Use a credit note.
Defaults
If you leave out fields when creating an invoice, we fill them in like the app does: today's dates, the payment term, currency, language and VAT treatment of the customer or your business, and supplyType from the customer or your business (default services). See Choosing a VAT treatment.
The invoice object
GET /invoices/{id} returns all the invoice's fields, plus:
lines(in order) and the totals (subtotalCents,vatTotalCents,totalCents);displayStatus: the status, withoverduefor late invoices;sellerandcustomer: for a finalised invoice the frozen details, for a draft the current ones;compliance: the checks (drafts only);publicUrl: the online invoice, ornull;firstViewedAt,viewedAtandviewCount: when your customer viewed it;creditNotes: credit notes for this invoice;creditedInvoiceNumberandcreditedInvoiceDateon a credit note;externalId: your own id, ornull;sourceQuoteIdandsourceQuoteNumber: the quote the invoice was made from;downloadedAtandlastDownloadedAt: when you first and last downloaded it.
Lists return a short version: id, kind, status, displayStatus, number, dates, customer name, total, currency, paid date, externalId and the download dates.
Last updated on 29 October 2026
Stuck?
Email us at support@eenfactuurmaken.nl. Tell us what you tried and what happened, and we will help you out.