Skip to content

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, like createdAt and paidAt) 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 POST with an externalId that already exists returns 409 external_id_taken with the id of what's already there in details: { "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= on GET /invoices and GET /customers (exact match, and for customers archived ones too).
  • On an invoice, refer to an existing customer with customerExternalId instead of customerId. No customer with that id: 422 unknown_customer.
  • Change it with PATCH (for invoices only while it's a draft); null clears 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:

json
{
  "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:

ParameterValues
statusdraft, issued, sent, paid, cancelled, overdue (unpaid and late), open (issued or sent, unpaid)
kindinvoice or credit_note
customerIdInvoices for one customer
externalIdThe invoice or credit note with this own id
qSearch by number, customer or reference
from, toInvoice date from / up to and including (YYYY-MM-DD)
sortissueDate, number, total, dueDate, createdAt; prefix with - for descending. Default -createdAt

Example: all overdue invoices, oldest due date first:

bash
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

  • POST creates something and returns the new object (status 201). Actions like /issue and /mark-paid return the updated object (status 200).
  • Send an Idempotency-Key with every POST so you can retry it safely. See Idempotent requests.
  • POST /invoices with "issue": true creates 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.
  • PATCH only changes the fields you send. Fields you leave out stay as they were. Send null (or "" for text) to clear a field.
  • For invoices, lines in a PATCH replaces all lines. So send the complete list.
  • DELETE returns 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, with overdue for late invoices;
  • seller and customer: for a finalised invoice the frozen details, for a draft the current ones;
  • compliance: the checks (drafts only);
  • publicUrl: the online invoice, or null;
  • firstViewedAt, viewedAt and viewCount: when your customer viewed it;
  • creditNotes: credit notes for this invoice;
  • creditedInvoiceNumber and creditedInvoiceDate on a credit note;
  • externalId: your own id, or null;
  • sourceQuoteId and sourceQuoteNumber: the quote the invoice was made from;
  • downloadedAt and lastDownloadedAt: 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.

support@eenfactuurmaken.nl