Naar de inhoud

Endpoint-referentie

Alle endpoints van de REST API v1 met parameters, body, antwoorden en voorbeelden.

Alle endpoints, gegenereerd uit de OpenAPI-specificatie. De veldbeschrijvingen zijn in het Engels. Wil je een client genereren? Gebruik de specificatie direct.

Machineleesbare specificatie (OpenAPI 3.1): https://eenfactuurmaken.nl/api/v1/openapi.json

Account

The authenticated user: plan, limits and usage.

GET /api/v1/me

Sleutel: alleen lezen

Get the current user, plan, limits and usage

Parameters en antwoorden

Antwoorden

  • 200 The caller. (application/json: Me)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/me" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Business

Your business profile (the seller on every invoice): KvK, btw-id, IBAN, numbering and defaults.

GET /api/v1/business

Sleutel: alleen lezen

Get your business profile

Parameters en antwoorden

Antwoorden

  • 200 Business profile. (application/json: Business)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/business" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/business

Sleutel: volledig

Update your business profile

Partial update. Numbering changes are validated so numbers stay unique and gap-free. Payment details (iban, bic, bankAccountName, defaultPaymentLink) and the reply-to email can only be changed in the web app with a recent sign-in, to protect against payment-redirection fraud: with an API key or AI app (MCP/OAuth) a request that changes one of them returns 403 session_required (sending the current value unchanged is fine). The account owner is always emailed when they change.

Parameters en antwoorden

Body: application/json BusinessUpdate

Body
VeldTypeOmschrijving
namestring
legalNamestring | null
addressLine1string | null
addressLine2string | null
postalCodestring | null
citystring | null
countrystring
kvkNumberstring | nullKvK number (8 digits). Required on Dutch invoices.
vatNumberstring | nullYour VAT number (btw-id), e.g. NL123456789B01. Required unless you use the KOR.
ibanstring | nullIBAN for payments. Web app session only: with an API key or AI app, changing iban, bic, bankAccountName, email or defaultPaymentLink returns 403 session_required.
bicstring | nullBIC of your bank. Web app session only (403 session_required with an API key).
bankAccountNamestring | nullAccount holder name. Web app session only (403 session_required with an API key).
emailstring (email) | null | ""Reply-to address of the invoice emails. Web app session only (403 session_required with an API key).
phonestring | null
websitestring | null
peppolIdstring | null
defaultVatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt"Default VAT treatment. Use kor if you use the small business scheme (kleineondernemersregeling).
defaultSupplyType"goods" | "services"
defaultVatExemptionReasonstring | null
notInHandelsregisterboolean
defaultVatRatestring | number
defaultPaymentTermDaysinteger
defaultCurrencystring
defaultInvoiceLocale"nl" | "en" | "de" | "fr"
defaultNotesstring | null
defaultFooterstring | null
defaultPaymentLinkstring (uri) | null | ""
defaultLayoutIdstring | null
houseStyleobject | null
showEpcQrByDefaultboolean
invoiceNumberFormatstringNumber format. Tokens: {YYYY} {YY} {MM} {SEQ} {SEQ:n}. Example: "{YYYY}-{SEQ:4}" → 2026-0001.
nextInvoiceSequenceinteger
creditNoteNumberFormatstringNumber format for credit notes, e.g. "C{YYYY}-{SEQ:4}".
nextCreditNoteSequenceinteger
resetSequenceYearlybooleanRestart the sequence at 1 every calendar year (needs a year token in the format).
quoteNumberFormatstring
nextQuoteSequenceinteger
defaultQuoteValidityDaysinteger
remindersEnabledboolean
reminderScheduleinteger[]Days after the due date to send automatic reminders (Pro), e.g. [7, 14, 30].
reminderMessagestring | null
invoiceEmailSubjectstring | null
invoiceEmailMessagestring | null

Antwoorden

  • 200 Updated profile. (application/json: Business)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/business" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kvkNumber":"87654321","vatNumber":"NL001234567B89","invoiceNumberFormat":"{YYYY}-{SEQ:4}"}'

Customers

Customers (afnemers). Deleting a customer that is used on invoices archives it instead.

GET /api/v1/customers

Sleutel: alleen lezen

List customers

Search with q (name, email, KvK, VAT number). externalId is an exact match on your own id and also finds archived customers.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
qstring (query)
pageinteger (query)
pageSizeinteger (query)
includeArchivedboolean | "0" | "1" | "true" | "false" | "" (query)
archivedboolean | "0" | "1" | "true" | "false" | "" (query)
externalIdstring (query)

Antwoorden

  • 200 A page of customers. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/customers" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/customers

Sleutel: facturenIdempotency-Key

Create a customer

An externalId that is already used returns 409 external_id_taken with details: { resource, id, archived } (checked before the Free customer limit, so a retry gets 409, not 402).

Parameters en antwoorden

Body: application/json CustomerInput

Body
VeldTypeOmschrijving
type"business" | "individual"business (B2B) or individual (consumer). Default: "business".
name*stringCompany or person name as printed on the invoice.
contactNamestring | null
emailstring (email) | null | ""
emailCcstring | nullExtra recipients (comma separated) for invoice emails.
phonestring | null
addressLine1string | null
addressLine2string | null
postalCodestring | null
citystring | null
countrystringISO 3166-1 alpha-2 country code. Defaults to NL.
kvkNumberstring | nullKvK number (Dutch Chamber of Commerce, 8 digits). Recommended for Dutch business customers.
vatNumberstring | nullCustomer VAT number (btw-id / VAT ID), e.g. NL123456789B01 or DE123456789. Required for reverse_charge and intra_eu invoices.
peppolIdstring | nullPeppol participant id, e.g. 0106:12345678 (KvK) or 0190:00000000000000000000 (OIN).
defaultVatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt" | nullVAT treatment suggested for new invoices to this customer.
defaultSupplyType"goods" | "services" | null
paymentTermDaysinteger | nullPayment term in days; overrides the business default.
locale"nl" | "en" | "de" | "fr" | nullLanguage of invoices and emails for this customer: nl, en, de or fr.
notesstring | null
defaultLayoutIdstring | null
externalIdstring | nullYour own id for this customer, e.g. the id in your CRM or webshop: 1 to 100 printable ASCII characters without spaces. Unique per account (archived customers included): a second create with the same externalId returns 409 external_id_taken with details.id of the existing customer. Find it with GET /customers?externalId=. On invoices, reference it with customerExternalId instead of sending the customer again. null clears it.

Antwoorden

  • 201 The new customer. (application/json: Customer)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/customers" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"type":"business","name":"Bakkerij De Gouden Korst B.V.","contactName":"Sanne de Vries","email":"administratie@goudenkorst.nl","addressLine1":"Marktstraat 12","postalCode":"3511 AB","city":"Utrecht","country":"NL","kvkNumber":"12345678","vatNumber":"NL123456789B01"}'

GET /api/v1/customers/{id}

Sleutel: alleen lezen

Get a customer

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The customer. (application/json: Customer)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/customers/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/customers/{id}

Sleutel: facturen

Update a customer

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json CustomerPatch

Body
VeldTypeOmschrijving
type"business" | "individual"
namestring
contactNamestring | null
emailstring (email) | null | ""
emailCcstring | null
phonestring | null
addressLine1string | null
addressLine2string | null
postalCodestring | null
citystring | null
countrystring
kvkNumberstring | null
vatNumberstring | null
peppolIdstring | null
defaultVatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt" | null
defaultSupplyType"goods" | "services" | null
paymentTermDaysinteger | null
locale"nl" | "en" | "de" | "fr" | null
notesstring | null
defaultLayoutIdstring | null
externalIdstring | null
archivedboolean

Antwoorden

  • 200 The updated customer. (application/json: Customer)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/customers/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"facturen@goudenkorst.nl","paymentTermDays":30}'

DELETE /api/v1/customers/{id}

Sleutel: volledig

Delete (or archive) a customer

Customers used on invoices are archived instead of deleted.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 What happened. (application/json: DeleteResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/customers/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/vat-check

Sleutel: alleen lezen

Check an EU VAT number (VIES)

Checks a customer VAT number with the EU VIES service, e.g. before an intra-EU (ICP) invoice. Rate-limited per user.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
vat*string (query)

Antwoorden

  • 200 VIES result. (application/json: VatCheck)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/vat-check?vat=…" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Products

Products and services with a default price and VAT rate.

GET /api/v1/products

Sleutel: alleen lezen

List products

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
qstring (query)
pageinteger (query)
pageSizeinteger (query)
includeArchivedboolean | "0" | "1" | "true" | "false" | "" (query)
archivedboolean | "0" | "1" | "true" | "false" | "" (query)

Antwoorden

  • 200 A page of products. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/products" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/products

Sleutel: facturenIdempotency-Key

Create a product

Parameters en antwoorden

Body: application/json ProductInput

Body
VeldTypeOmschrijving
name*string
descriptionstring | null
unitstringDefault: "C62".
unitPriceCents*integer
vatRatestring | number
skustring | null

Antwoorden

  • 201 The new product. (application/json: Product)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/products" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Consultancy","unit":"HUR","unitPriceCents":9500,"vatRate":"21"}'

GET /api/v1/products/{id}

Sleutel: alleen lezen

Get a product

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The product. (application/json: Product)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/products/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/products/{id}

Sleutel: facturen

Update a product

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json ProductPatch

Body
VeldTypeOmschrijving
namestring
descriptionstring | null
unitstring
unitPriceCentsinteger
vatRatestring | number
skustring | null
archivedboolean

Antwoorden

  • 200 The updated product. (application/json: Product)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/products/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"unitPriceCents":10000}'

DELETE /api/v1/products/{id}

Sleutel: volledig

Delete (or archive) a product

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 What happened. (application/json: DeleteResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/products/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Invoices

Invoices and credit notes: drafts, issuing (number + frozen snapshots), payment status, credit notes.

GET /api/v1/invoices

Sleutel: alleen lezen

List invoices and credit notes

status also accepts overdue (unpaid past due date) and open (issued or sent).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
status"draft" | "issued" | "sent" | "paid" | "cancelled" | "overdue" | "open" (query)
kind"invoice" | "credit_note" (query)
customerIdstring (query)
qstring (query)
fromstring (YYYY-MM-DD) (query)
tostring (YYYY-MM-DD) (query)
pageinteger (query)
pageSizeinteger (query)
sort"issueDate" | "-issueDate" | "number" | "-number" | "total" | "-total" | "dueDate" | "-dueDate" | "createdAt" | "-createdAt" (query)
externalIdstring (query)

Antwoorden

  • 200 A page of invoices. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/invoices

Sleutel: facturenIdempotency-Key

Create a draft invoice (or create and issue)

Creates a DRAFT. Pass customerId, an inline customer or customerExternalId (an existing customer by your own id; 422 unknown_customer when there is none). Counts against the monthly quota (Free: 5 per month, 402 plan_limit_reached); credit notes never count. Issue it with POST /invoices/{id}/issue, or send issue: true to create and issue in ONE transaction: the response is the issued invoice, and any failure (402 plan_limit_reached, 403 session_required for a payment link other than your default with an API key, 409 number_taken / external_id_taken, 422 invoice_not_compliant with the compliance issues in details, 422 unknown_customer) rolls everything back, including an inline customer and the quota unit. An externalId that is already used returns 409 external_id_taken with details: { resource, id, status, kind } before anything is created.

Parameters en antwoorden

Body: application/json InvoiceInput

Body
VeldTypeOmschrijving
kind"invoice" | "credit_note"invoice (default) or credit_note. Credit notes for an existing invoice are easier via POST /invoices/{id}/credit-note. Default: "invoice".
customerIdstring | nullId of an existing customer.
customerCustomerInput | nullInline customer data instead of customerId. A customer record is created for it.
numberstring | nullNormally left empty: the number is assigned when you issue. Must be unique.
issueDatestring (YYYY-MM-DD)Invoice date (factuurdatum). Default: today.
dueDatestring (YYYY-MM-DD)Due date. Default: issue date + payment term.
supplyDatestring (YYYY-MM-DD) | nullDate of supply (leverdatum) if different from the invoice date.
supplyPeriodEndstring (YYYY-MM-DD) | nullEnd of the supply period, for services delivered over a period.
currencystringISO 4217 code. Default: EUR.
locale"nl" | "en" | "de" | "fr"Document language: nl, en, de or fr.
vatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt"standard (default), reverse_charge (btw verlegd, NL B2B), intra_eu (ICP, EU B2B), export (outside the EU), kor (small business scheme), exempt. Non-standard treatments charge 0% VAT and print the required legal note.
supplyType"goods" | "services"
pricesIncludeVatboolean
vatExemptionReasonstring | null
exchangeRatestring | number | null
exchangeRateDatestring (YYYY-MM-DD) | null
exchangeRateSourcestring | null
creditedInvoiceIdstring | null
creditedInvoiceNumberstring | null
creditedInvoiceDatestring (YYYY-MM-DD) | null
referencestring | nullYour own reference, e.g. a project or order number.
buyerReferencestring | nullThe customer's reference (PO number / inkoopordernummer). Some Peppol receivers require it.
notesstring | nullText printed above the totals.
footerstring | nullFooter text.
paymentLinkstring (uri) | null | ""Optional payment URL (e.g. a Tikkie or Mollie link) printed on the invoice. Omitted = the business default payment link. With an API key only null or the default link is accepted; any other link can only be set in the web app (403 session_required).
showEpcQrbooleanPrint the EPC QR code (SEPA payment QR) for banking apps.
layoutIdstring | nullPro: layout for this invoice (preset:classic|modern|minimal or a saved template id). Omit or null: the customer's layout, then the business default / house style. On Free only null or preset:classic is accepted (and the house style is used).
linesInvoiceLineInput[]Invoice lines (max. 500).
externalIdstring | nullYour own id for this invoice or credit note, e.g. the order id in your webshop: 1 to 100 printable ASCII characters without spaces. Unique per account (drafts included; invoices and credit notes share one namespace): a second create with the same externalId returns 409 external_id_taken with details.id, status and kind of the existing document, so a retry never makes a second invoice. Deleting the draft (or the Free plan retention purge) frees it. Find it with GET /invoices?externalId=.
customerExternalIdstringAn existing customer by its externalId (archived customers too), instead of customerId or customer. No match: 422 unknown_customer. Can't be combined with a customerId or customer.
issuebooleanCreate only. true = create AND issue in one transaction: the response is the issued invoice (201). number and issueDate act as the issue overrides. Any failure (402 plan_limit_reached, 409, 422 invoice_not_compliant, 422 unknown_customer) rolls everything back: no draft, no inline customer, no quota used.

Antwoorden

  • 201 The new draft, including a compliance check (with issue: true: the issued invoice). (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"customer":{"type":"business","name":"Bakkerij De Gouden Korst B.V.","contactName":"Sanne de Vries","email":"administratie@goudenkorst.nl","addressLine1":"Marktstraat 12","postalCode":"3511 AB","city":"Utrecht","country":"NL","kvkNumber":"12345678","vatNumber":"NL123456789B01"},"issueDate":"2026-10-01","dueDate":"2026-10-15","vatTreatment":"standard","reference":"Project nieuwe website","lines":[{"description":"Webdesign en ontwikkeling – september","quantity":"12","unit":"HUR","unitPriceCents":8500,"vatRate":"21"},{"description":"Hosting en onderhoud (jaar)","quantity":"1","unit":"ANN","unitPriceCents":12000,"vatRate":"21"}]}'

GET /api/v1/invoices/next-number

Sleutel: alleen lezen

Preview the next invoice and credit note numbers

Parameters en antwoorden

Antwoorden

  • 200 Next numbers (nothing is reserved). (application/json: NextNumberPreview)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices/next-number" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/invoices/{id}

Sleutel: alleen lezen

Get an invoice

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The invoice with lines, parties and (for drafts) the compliance check. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/invoices/{id}

Sleutel: facturen

Update a draft

Only drafts can be changed (409 invoice_locked). Correct issued invoices with a credit note.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json InvoiceUpdate

Body
VeldTypeOmschrijving
customerIdstring | null
customerCustomerInput | null
numberstring | null
issueDatestring (YYYY-MM-DD)
dueDatestring (YYYY-MM-DD)
supplyDatestring (YYYY-MM-DD) | null
supplyPeriodEndstring (YYYY-MM-DD) | null
currencystring
locale"nl" | "en" | "de" | "fr"
vatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt"
supplyType"goods" | "services"
pricesIncludeVatboolean
vatExemptionReasonstring | null
exchangeRatestring | number | null
exchangeRateDatestring (YYYY-MM-DD) | null
exchangeRateSourcestring | null
creditedInvoiceIdstring | null
creditedInvoiceNumberstring | null
creditedInvoiceDatestring (YYYY-MM-DD) | null
referencestring | null
buyerReferencestring | null
notesstring | null
footerstring | null
paymentLinkstring (uri) | null | ""
showEpcQrboolean
layoutIdstring | null
linesInvoiceLineInput[]
externalIdstring | null
customerExternalIdstring

Antwoorden

  • 200 The updated draft. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/invoices/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dueDate":"2026-10-31","lines":[{"description":"Webdesign en ontwikkeling – september","quantity":"12","unit":"HUR","unitPriceCents":8500,"vatRate":"21"},{"description":"Hosting en onderhoud (jaar)","quantity":"1","unit":"ANN","unitPriceCents":12000,"vatRate":"21"}]}'

DELETE /api/v1/invoices/{id}

Sleutel: volledig

Delete a draft

Only drafts can be deleted (409 invoice_locked). Issued invoices are kept (Dutch retention duty); cancel or credit them instead. Deleting a draft invoice gives its unit of the monthly quota back.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/invoices/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/invoices/{id}/duplicate

Sleutel: facturenIdempotency-Key

Duplicate into a new draft

Copies lines and settings into a new draft with today's dates and no number. Counts against the quota (credit notes do not).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json DuplicateInvoice

Body
VeldTypeOmschrijving
issueDatestring (YYYY-MM-DD)
dueDatestring (YYYY-MM-DD)
supplyDatestring (YYYY-MM-DD) | null
supplyPeriodEndstring (YYYY-MM-DD) | null

Antwoorden

  • 201 The new draft. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/duplicate" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/invoices/{id}/issue

Sleutel: facturenIdempotency-Key

Issue a draft

Runs the Dutch compliance check (422 invoice_not_compliant with details), assigns the next number (gap-free), freezes seller and customer data and locks the invoice.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json IssueInvoice

Body
VeldTypeOmschrijving
numberstring | nullOverride the generated number (must be unique).
issueDatestring (YYYY-MM-DD)Override the invoice date; the due date moves along.

Antwoorden

  • 200 The issued invoice. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/issue" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/invoices/{id}/credit-note

Sleutel: facturenIdempotency-Key

Create a credit note for an invoice

Creates a DRAFT credit note (creditfactuur) that references the invoice, with the same lines (full credit). Edit the lines for a partial credit, then issue it. Credit notes do not count against the monthly quota. Optional body { "externalId": "…" } (your own id for the credit note).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json CreditNoteCreate

Body
VeldTypeOmschrijving
externalIdstring

Antwoorden

  • 201 The draft credit note. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/credit-note" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"externalId":"refund-1042"}'

POST /api/v1/invoices/{id}/mark-paid

Sleutel: facturenIdempotency-Key

Mark as paid

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json MarkPaid

Body
VeldTypeOmschrijving
paidAtstring (YYYY-MM-DD)

Antwoorden

  • 200 The invoice. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/mark-paid" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"paidAt":"2026-10-10"}'

POST /api/v1/invoices/{id}/mark-unpaid

Sleutel: facturenIdempotency-Key

Mark as unpaid

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The invoice. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/mark-unpaid" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/invoices/{id}/cancel

Sleutel: volledigIdempotency-Key

Cancel an issued invoice

Only issued/sent unpaid invoices. The number stays used. For paid invoices, create a credit note. An invoice that already has an issued credit note can't be cancelled any more (409 invoice_has_credit_notes, details.creditNotes): the credit note is the correction.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The cancelled invoice. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/cancel" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/exchange-rate

Sleutel: alleen lezen

ECB exchange rate for a currency

Euro reference rate of the European Central Bank (EUR per unit) for invoices in another currency; date defaults to today. 422 exchange_rate_unknown_currency, 503 exchange_rate_unavailable (enter the rate manually).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
currency*string (query)
datestring (YYYY-MM-DD) (query)

Antwoorden

  • 200 The rate. (application/json: ExchangeRate)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)
  • 503 An external service (VIES, ECB, Stripe) is unavailable, or payment integrations are not available right now (integrations_unavailable). Try again later. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/exchange-rate?currency=…" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Quotes

Quotes (offertes), free on every plan: drafts, finalizing (own number series), emailing the PDF, and accept (creates a normal draft invoice) or decline. Quotes are never part of revenue, VAT reports, exports, UBL or the invoice quota.

GET /api/v1/quotes

Sleutel: alleen lezen

List quotes

status also accepts open (sent, still valid), expired (sent, past validUntil) and invoiced (accepted, invoice exists).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
status"draft" | "sent" | "open" | "expired" | "accepted" | "invoiced" | "declined" (query)
customerIdstring (query)
qstring (query)
fromstring (YYYY-MM-DD) (query)
tostring (YYYY-MM-DD) (query)
pageinteger (query)
pageSizeinteger (query)
sort"issueDate" | "-issueDate" | "number" | "-number" | "total" | "-total" | "validUntil" | "-validUntil" | "createdAt" | "-createdAt" (query)

Antwoorden

  • 200 A page of quotes. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/quotes" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/quotes

Sleutel: volledigIdempotency-Key

Create a draft quote

Creates a DRAFT quote (offerte). Pass customerId or an inline customer. Free on every plan; never counts against the invoice quota. Finalize it with POST /quotes/{id}/finalize or email it with POST /quotes/{id}/send.

Parameters en antwoorden

Body: application/json QuoteInput

Body
VeldTypeOmschrijving
customerIdstring | null
customerCustomerInput | null
issueDatestring (YYYY-MM-DD)
validUntilstring (YYYY-MM-DD)
currencystring
locale"nl" | "en" | "de" | "fr"
vatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt"
supplyType"goods" | "services"
vatExemptionReasonstring | null
referencestring | null
notesstring | null
footerstring | null
layoutIdstring | null
linesInvoiceLineInput[]

Antwoorden

  • 201 The new draft quote. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"customerId":"9d2c1b0a-1234-4cde-8f00-aa11bb22cc33","validUntil":"2026-10-31","reference":"Nieuwe website","notes":"Inclusief twee feedbackrondes. Hosting start na oplevering.","lines":[{"description":"Webdesign en ontwikkeling","quantity":"40","unit":"HUR","unitPriceCents":8500,"vatRate":"21"},{"description":"Hosting en onderhoud (jaar)","quantity":"1","unit":"ANN","unitPriceCents":12000,"vatRate":"21"}]}'

GET /api/v1/quotes/next-number

Sleutel: alleen lezen

Preview the next quote number

Parameters en antwoorden

Antwoorden

  • 200 Next number (nothing is reserved). (application/json: QuoteNextNumberPreview)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/quotes/next-number" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/quotes/{id}

Sleutel: alleen lezen

Get a quote

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The quote with lines and parties. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/quotes/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/quotes/{id}

Sleutel: volledig

Update a draft quote

Only drafts can be changed (409 quote_locked). Duplicate a finalized quote to make a new version.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json QuoteUpdate

Body
VeldTypeOmschrijving
customerIdstring | null
customerCustomerInput | null
issueDatestring (YYYY-MM-DD)
validUntilstring (YYYY-MM-DD)
currencystring
locale"nl" | "en" | "de" | "fr"
vatTreatment"standard" | "reverse_charge" | "intra_eu" | "export" | "kor" | "exempt"
supplyType"goods" | "services"
vatExemptionReasonstring | null
referencestring | null
notesstring | null
footerstring | null
layoutIdstring | null
linesInvoiceLineInput[]

Antwoorden

  • 200 The updated draft. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/quotes/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"validUntil":"2026-11-15"}'

DELETE /api/v1/quotes/{id}

Sleutel: volledig

Delete a draft quote

Only drafts can be deleted (409 quote_locked); decline a finalized quote instead.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/quotes/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/quotes/{id}/finalize

Sleutel: volledigIdempotency-Key

Finalize a draft quote

Assigns the next quote number (own series), freezes seller, customer and layout and locks the quote (status sent). 422 quote_empty without lines. Does not email it.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json FinalizeQuote

Body
VeldTypeOmschrijving
numberstring | null
issueDatestring (YYYY-MM-DD)

Antwoorden

  • 200 The finalized quote. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/finalize" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/quotes/{id}/send

Sleutel: volledigIdempotency-Key

Email the quote

Emails the quote PDF to the customer email or to. A draft is finalized first. Same limits as invoice emails: Free can only email the customer's own address(es) on file or the account email (403 email_recipient_not_allowed), recipient limits per day/hour (429), at most 5 emails per quote per 24 hours (429 invoice_resend_limit). 422 no_recipient when there is no address.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json SendQuote

Body
VeldTypeOmschrijving
tostring (email)[]
ccstring (email)[]
subjectstring | null
messagestring | null

Antwoorden

  • 200 The quote after sending. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/send" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"message":"Hoi Sanne,\n\nHierbij de offerte voor de nieuwe website.\n\nGroet, Pieter"}'

POST /api/v1/quotes/{id}/accept

Sleutel: volledigIdempotency-Key

Accept a quote (creates a draft invoice)

The customer agreed: in one transaction the quote becomes accepted and a normal DRAFT invoice is made from it (customer, lines, currency, VAT treatment, supply type, language, layout, notes; reference = the quote reference or "Offerte <number>"; dates and payment term from your defaults; never an exchange rate). A draft quote is finalized first. The invoice counts against the monthly quota: on Free with the quota used up you get 402 plan_limit_reached and nothing changes. Allowed from sent (also when expired).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The quote and the new draft invoice. (application/json: QuoteAcceptResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/accept" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/quotes/{id}/invoice

Sleutel: volledigIdempotency-Key

Make a new draft invoice from an accepted quote

When the invoice made from an accepted quote was deleted (invoiceId null), this makes a new draft invoice from it. Counts against the monthly quota.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 201 The quote and the new draft invoice. (application/json: QuoteAcceptResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/invoice" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/quotes/{id}/decline

Sleutel: volledigIdempotency-Key

Decline a quote

The customer declined. Allowed from sent (also when expired). Undo with POST /quotes/{id}/reopen.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The quote. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/decline" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/quotes/{id}/reopen

Sleutel: volledigIdempotency-Key

Reopen a declined quote

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The quote (status sent). (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/reopen" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/quotes/{id}/duplicate

Sleutel: volledigIdempotency-Key

Duplicate into a new draft quote

Copies lines and settings into a new draft dated today, with the same validity period and no number.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json DuplicateQuote

Body
VeldTypeOmschrijving
issueDatestring (YYYY-MM-DD)
validUntilstring (YYYY-MM-DD)

Antwoorden

  • 201 The new draft quote. (application/json: Quote)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/quotes/{id}/duplicate" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/quotes/{id}/pdf

Sleutel: alleen lezen

Download the quote PDF

?download=1 sets Content-Disposition: attachment. File name offerte-<number>.pdf; drafts get a "concept" watermark (offerte-concept-<id>.pdf). Quotes have no UBL.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
download"0" | "1" | "true" | "false" (query)

Antwoorden

  • 200 PDF file. (application/pdf: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/quotes/{id}/pdf" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Documents

PDF and UBL (Peppol BIS Billing 3.0 / NLCIUS) files, previews and compliance checks.

GET /api/v1/invoices/{id}/pdf

Sleutel: alleen lezen

Download the PDF

?download=1 sets Content-Disposition: attachment and marks an issued document as downloaded (downloadedAt). Drafts get a "concept" watermark.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
download"0" | "1" | "true" | "false" (query)
embedUbl"0" | "1" | "true" | "false" (query)

Antwoorden

  • 200 PDF file. (application/pdf: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices/{id}/pdf" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/invoices/{id}/ubl

Sleutel: alleen lezen

Download the UBL e-invoice

UBL 2.1, Peppol BIS Billing 3.0 / NLCIUS. Issued invoices only (409 invoice_not_issued). Dutch sellers need a KvK number for Peppol (409 peppol_kvk_required). Credit notes produce a CreditNote document. Marks the document as downloaded (downloadedAt).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
download"0" | "1" | "true" | "false" (query)
embedPdf"0" | "1" | "true" | "false" (query)

Antwoorden

  • 200 UBL XML. (application/xml: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices/{id}/ubl" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/invoices/{id}/compliance

Sleutel: alleen lezen

Check the Dutch invoice requirements

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Issues (empty = compliant). (application/json: ComplianceIssue[])
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/invoices/{id}/compliance" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/invoices/preview-pdf

Sleutel: facturen

Render a preview PDF

Renders an unsaved invoice and/or layout. Nothing is stored. Any plan may preview custom layouts.

Parameters en antwoorden

Body: application/json PreviewPdf

Body
VeldTypeOmschrijving
invoiceInvoiceInput | null
layoutIdstring | null
layoutLayoutConfig | null

Antwoorden

  • 200 PDF with a draft watermark. (application/pdf: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/preview-pdf" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/public/invoices/{token}

Openbaar

Public invoice page data

What the customer sees on /i/{token}: display-ready, in the invoice language. 404 when the token is unknown or the link was switched off. Rate-limited per IP.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{token}*string (path)Signed token from get_invoice_download_links.

Antwoorden

  • 200 The public invoice. (application/json: PublicInvoice)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/public/invoices/{token}"

GET /api/public/invoices/{token}/pdf

Openbaar

Public invoice PDF

PDF (with the UBL embedded). ?download=1 → attachment.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{token}*string (path)Signed token from get_invoice_download_links.
download"0" | "1" | "true" | "false" (query)

Antwoorden

  • 200 PDF file. (application/pdf: string)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/public/invoices/{token}/pdf"

GET /api/public/invoices/{token}/ubl

Openbaar

Public invoice UBL e-invoice

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{token}*string (path)Signed token from get_invoice_download_links.

Antwoorden

  • 200 UBL XML. (application/xml: string)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/public/invoices/{token}/ubl"

POST /api/public/invoices/{token}/view

Openbaar

Record a view of the public page

Called by the page in the browser. Not counted when the signed-in owner opens their own page; repeated views within 30 minutes count once.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{token}*string (path)Signed token from get_invoice_download_links.

Antwoorden

  • 200 Whether the view was recorded. (application/json: object)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/public/invoices/{token}/view"

Sending

Email invoices (PDF + UBL attached) and payment reminders.

POST /api/v1/invoices/{id}/send

Sleutel: facturenIdempotency-Key

Email the invoice

Emails the PDF and (unless attachUbl is false) the UBL e-invoice as attachments, to the customer email or to. Issued invoices only (409 invoice_not_issued). Status becomes sent. 422 no_recipient when there is no address. Limits: Free can only email the customer's own address(es) on file (email + CC) or the account email (403 email_recipient_not_allowed, details.addresses) and at most 30 recipients (to + cc) per 24 hours (429 email_daily_limit); Pro at most 500 recipients per hour (429 email_rate_limited). The same document can be emailed at most 5 times per 24 hours (429 invoice_resend_limit). Sending pauses for up to 7 days when recent emails of the account bounced or were marked as spam (403 email_sending_paused), and a platform-wide daily cap can apply (429 email_platform_limit).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json SendInvoice

Body
VeldTypeOmschrijving
tostring (email)[]Recipients. Default: the customer email.
ccstring (email)[]CC recipients.
subjectstring | nullSubject. Default: your template.
messagestring | nullMessage body (plain text). Default: your template.
attachUblbooleanAttach the UBL e-invoice next to the PDF. Default: true.

Antwoorden

  • 200 The invoice after sending. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/send" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"message":"Hoi Sanne,\n\nIn de bijlage vind je de factuur voor september.\n\nGroet, Pieter"}'

POST /api/v1/invoices/{id}/remind

Sleutel: facturenIdempotency-Key

Send a payment reminder now

Emails a friendly payment reminder (betalingsherinnering) for an open (issued/sent, unpaid) invoice. 409 invoice_not_remindable / reminder_too_early, 422 no_recipient.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The invoice (reminderCount and lastReminderAt updated). (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/invoices/{id}/remind" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Reports

Dashboard KPIs, the btw-aangifte helper and the ZIP export.

GET /api/v1/stats

Sleutel: alleen lezen

Dashboard KPIs and VAT per quarter

Open, overdue and paid amounts, revenue this year, and the btw-aangifte helper (rubrieken 1a–3b, plus exempt/KOR turnover) for this and the previous quarter. Pass quarter (and optionally year, default this year) to also get any other quarter in vat.selected.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
yearinteger (query)
quarterinteger (query)

Antwoorden

  • 200 Statistics. (application/json: Stats)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/stats" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/export

Pro Sleutel: alleen lezen

Export everything as ZIP

PDF + UBL for every issued invoice and credit note, plus invoices.csv. Optional issue date range. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
fromstring (YYYY-MM-DD) (query)
tostring (YYYY-MM-DD) (query)

Antwoorden

  • 200 ZIP archive (streamed). (application/zip: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/export" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/export/expiring

Sleutel: alleen lezen

Download the invoices that will be deleted soon

Every plan. Same ZIP as /export (PDF + UBL + invoices.csv) with the issued invoices and credit notes that the free-plan retention deletes within 30 days. Marks them as downloaded (downloadedAt). You remain responsible for the 7-year retention (bewaarplicht).

Parameters en antwoorden

Antwoorden

  • 200 ZIP archive (streamed). (application/zip: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/export/expiring" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Layouts

Invoice layouts. Every plan: the house style (PATCH /api/v1/business `houseStyle`: classic/modern/minimal template, colours, logo placement, QR and payment link) and the built-in presets as the account default. Pro: saved templates (fonts, page size, header/footer texts, label overrides) and choosing a layout per customer or per invoice.

GET /api/v1/layouts

Sleutel: alleen lezen

List layouts

Parameters en antwoorden

Antwoorden

  • 200 Built-in presets and your saved templates (custom layouts). The house style is on GET /api/v1/business (houseStyle). (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/layouts" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/layouts

Pro Sleutel: volledigIdempotency-Key

Create a saved template (custom layout)

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden

Body: application/json LayoutInput

Body
VeldTypeOmschrijving
name*string
config*LayoutConfig

Antwoorden

  • 201 The new layout. (application/json: Layout)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/layouts" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/layouts/{id}

Sleutel: alleen lezen

Get a layout

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The layout. (application/json: Layout)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/layouts/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/layouts/{id}

Pro Sleutel: volledig

Update a saved template (custom layout)

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json LayoutUpdate

Body
VeldTypeOmschrijving
namestring
configobject

Antwoorden

  • 200 The updated layout. (application/json: Layout)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/layouts/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

DELETE /api/v1/layouts/{id}

Sleutel: volledig

Delete a custom layout

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/layouts/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Recurring

Recurring invoices (Pro).

GET /api/v1/recurring

Pro Sleutel: alleen lezen

List recurring invoices

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
pageinteger (query)
pageSizeinteger (query)

Antwoorden

  • 200 Your schedules. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/recurring" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/recurring

Pro Sleutel: volledigIdempotency-Key

Create a recurring invoice

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden

Body: application/json RecurringInput

Body
VeldTypeOmschrijving
templateInvoiceId*string
frequency*"weekly" | "monthly" | "quarterly" | "yearly"
intervalintegerDefault: 1.
nextRunDate*string (YYYY-MM-DD)
endDatestring (YYYY-MM-DD) | null
autoIssuebooleanDefault: true.
autoSendbooleanDefault: false.
activebooleanDefault: true.

Antwoorden

  • 201 The schedule. (application/json: RecurringSchedule)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/recurring" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"templateInvoiceId":"0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60","frequency":"monthly","interval":1,"nextRunDate":"2026-11-01","autoIssue":true,"autoSend":true}'

GET /api/v1/recurring/{id}

Pro Sleutel: alleen lezen

Get a recurring invoice

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The schedule. (application/json: RecurringSchedule)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/recurring/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/recurring/{id}

Pro Sleutel: volledig

Update a recurring invoice

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json RecurringUpdate

Body
VeldTypeOmschrijving
frequency"weekly" | "monthly" | "quarterly" | "yearly"
intervalinteger
nextRunDatestring (YYYY-MM-DD)
endDatestring (YYYY-MM-DD) | null
autoIssueboolean
autoSendboolean
activeboolean

Antwoorden

  • 200 The schedule. (application/json: RecurringSchedule)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/recurring/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

DELETE /api/v1/recurring/{id}

Pro Sleutel: volledig

Delete a recurring invoice

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/recurring/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/recurring/{id}/run-now

Pro Sleutel: volledigIdempotency-Key

Run a recurring invoice now

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The created invoice. (application/json: Invoice)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/recurring/{id}/run-now" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Email

Custom sender domains (Pro) and the outbound email log.

GET /api/v1/email-domains

Pro Sleutel: volledig

List sender domains

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden

Antwoorden

  • 200 Your domains. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/email-domains" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/email-domains

Pro Sleutel: volledigIdempotency-Key

Add a sender domain

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden

Body: application/json EmailDomainInput

Body
VeldTypeOmschrijving
domain*string
fromLocalPartstringDefault: "facturen".
fromNamestring | null

Antwoorden

  • 201 The domain with the DNS records to add. (application/json: EmailDomain)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/email-domains" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"domain":"studiojansen.nl","fromLocalPart":"facturen","fromName":"Studio Jansen"}'

GET /api/v1/email-domains/check

Pro Sleutel: volledig

Check a domain before adding it

Looks up the DNS records that would clash with the sender-domain records (another mail service on send.<domain>, a DKIM key of another Resend account) and returns the return path that adding the domain will use. Read-only, rate-limited per user (20/min). Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
domain*string (query)

Antwoorden

  • 200 The check result. (application/json: EmailDomainCheck)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl "https://eenfactuurmaken.nl/api/v1/email-domains/check?domain=…" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/email-domains/{id}

Pro Sleutel: volledig

Get a sender domain

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The domain. (application/json: EmailDomain)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/email-domains/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

DELETE /api/v1/email-domains/{id}

Pro Sleutel: volledig

Remove a sender domain

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/email-domains/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/email-domains/{id}/verify

Pro Sleutel: volledig

Check the DNS records now

Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The domain with updated status. (application/json: EmailDomain)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/email-domains/{id}/verify" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/emails

Sleutel: alleen lezen

Outbound email log

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
pageinteger (query)
pageSizeinteger (query)

Antwoorden

  • 200 Sent emails, newest first. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/emails" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

Billing

Your EenFactuurMaken.nl subscription (paid through Stripe; our own invoices for every payment).

GET /api/v1/billing

Sleutel: volledig

Subscription and payments

Parameters en antwoorden

Antwoorden

  • 200 Subscription. (application/json: Billing)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/billing" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/billing/checkout

Alleen web-appIdempotency-Key

Start a Pro checkout

Parameters en antwoorden

Body: application/json CheckoutInput

Body
VeldTypeOmschrijving
interval*"month" | "year"
locale"nl" | "en"Language of the Stripe Checkout page and the return page.

Antwoorden

  • 200 Checkout URL. (application/json: CheckoutResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/billing/checkout" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"interval":"month"}'

POST /api/v1/billing/cancel

Alleen web-appIdempotency-Key

Cancel Pro at the end of the period

Web app session only (403 session_required with an API key).

Parameters en antwoorden

Antwoorden

  • 200 Subscription. (application/json: Billing)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/billing/cancel" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/billing/resume

Alleen web-appIdempotency-Key

Undo a cancellation

Restarts renewals before Pro ends (Stripe cancel_at_period_end = false). 409 not_cancelled / subscription_ended (start a new checkout). Web app session only.

Parameters en antwoorden

Antwoorden

  • 200 Subscription. (application/json: Billing)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/billing/resume" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/billing/sync

Sleutel: volledigIdempotency-Key

Re-check the checkout and subscription

Asks Stripe for the status of the open checkout session, or of the running subscription and its latest invoice (the return page polls this).

Parameters en antwoorden

Antwoorden

  • 200 Subscription. (application/json: Billing)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/billing/sync" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/billing/payments/{id}/invoice

Sleutel: volledig

Download our invoice for a payment

The EenFactuurMaken.nl invoice (PDF) for a paid subscription payment.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 PDF file. (application/pdf: string)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/billing/payments/{id}/invoice" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/billing/portal

Alleen web-appIdempotency-Key

Open the Stripe billing portal

Short-lived URL of the Stripe billing portal: update the payment method or cancel at the end of the period. Web app session only (403 session_required with an API key). 409 no_billing_account without a running subscription.

Parameters en antwoorden

Body: application/json BillingPortalInput

Body
VeldTypeOmschrijving
locale"nl" | "en"Language of the billing portal and the return page.

Antwoorden

  • 200 Portal URL. (application/json: BillingPortalResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/billing/portal" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"locale":"nl"}'

POST /api/webhooks/stripe

Openbaar

Stripe webhook (for Stripe only)

Called by Stripe. Requires a valid Stripe-Signature header over the raw body (400 otherwise). The object is re-fetched from the Stripe API, so the body is never trusted; events are idempotent per event id.

Parameters en antwoorden

Body: application/json object

Antwoorden

  • 200 Acknowledged. (application/json: object)
  • 400 Bad request. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/webhooks/stripe"

Integrations

Your own Stripe and Mollie accounts (connected with an API key, every plan): paid sales and refunds are imported into a sales inbox and become normal invoices / credit notes (our numbering, house style, compliance check, UBL), already marked paid. Turning a sale into an invoice by hand works on every plan (invoices count against the Free quota, credit notes never do); automatic drafts, issuing and e-mailing per connection need Pro (`salesAutomation`). Connecting, changing the key and disconnecting are web app only.

GET /api/v1/payment-connections

Sleutel: volledig

List connected payment accounts

Your connected Stripe and Mollie accounts with their settings and sync status. API keys are never returned (only keyHint).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
pageinteger (query)
pageSizeinteger (query)

Antwoorden

  • 200 Your connections. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/payment-connections" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/payment-connections

Alleen web-appIdempotency-Key

Connect a Stripe or Mollie account

Web app session only (403 session_required with an API key; not while an admin views the account). The key is checked with the provider (422 integration_invalid_key with details.reason: wrong_format, publishable_key, invalid_credentials, insufficient_permissions; 502 integration_provider_error when the provider is down), stored encrypted (503 integrations_unavailable when that is not possible) and the first import starts in the background. Stripe: a restricted key (rk_…) with read access to Invoices, Checkout Sessions, Customers, Charges & Refunds, Credit notes, Products, Prices, Tax rates and Events. Mollie: a website profile API key (live_… / test_…). importFrom defaults to 30 days ago (max 365). Settings mode draft / issue and autoSend need Pro (salesAutomation, 402). At most 10 connections per account (409 integration_limit_reached) and 10 key checks per hour (429 rate_limited with Retry-After).

Parameters en antwoorden

Body: application/json PaymentConnectionCreate

Body
VeldTypeOmschrijving
provider*"stripe" | "mollie"
apiKey*string
importFromstring (YYYY-MM-DD)
settingsConnectionSettingsInput

Antwoorden

  • 201 The new connection. (application/json: PaymentConnection)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)
  • 502 The connected payment provider (Stripe / Mollie) could not be reached or returned an error (integration_provider_error). Try again later. (application/json: Error)
  • 503 An external service (VIES, ECB, Stripe) is unavailable, or payment integrations are not available right now (integrations_unavailable). Try again later. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/payment-connections" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"provider":"stripe","apiKey":"rk_live_…","importFrom":"2026-10-01","settings":{"salesFilter":"business","defaultVatRate":"21"}}'

GET /api/v1/payment-connections/{id}

Sleutel: volledig

Get a connected payment account

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The connection. (application/json: PaymentConnection)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/payment-connections/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/payment-connections/{id}

Sleutel: volledig

Change a connection

settings is merged over the stored settings; switching automation on (mode draft / issue, autoSend) needs Pro (salesAutomation, 402). status active / paused. apiKey replaces the key (web app session only; it must belong to the same account and mode, else 422 integration_invalid_key with details.reason different_account) and clears a key error. Resuming a connection in status error checks the stored key again.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json PaymentConnectionUpdate

Body
VeldTypeOmschrijving
settingsConnectionSettingsInput
status"active" | "paused"
apiKeystring

Antwoorden

  • 200 The connection. (application/json: PaymentConnection)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)
  • 502 The connected payment provider (Stripe / Mollie) could not be reached or returned an error (integration_provider_error). Try again later. (application/json: Error)
  • 503 An external service (VIES, ECB, Stripe) is unavailable, or payment integrations are not available right now (integrations_unavailable). Try again later. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/payment-connections/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"settings":{"mode":"issue","autoSend":true}}'

DELETE /api/v1/payment-connections/{id}

Sleutel: volledig

Disconnect a payment account

Web app session only. Removes the connection, its stored key and its inbox rows. Invoices and credit notes made from its sales stay (they are your bookkeeping). Revoke the key at the provider too.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/payment-connections/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/payment-connections/{id}/sync

Sleutel: volledigIdempotency-Key

Sync now

Imports new sales and refunds right away (otherwise every 10 minutes). At most once a minute per connection (429 rate_limited with Retry-After). Provider problems end up on the connection (lastSyncStatus / lastSyncError), not as an error response. With Pro automation, new sales may be invoiced (and e-mailed) by this call.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The connection and the number of new inbox rows. (application/json: PaymentConnectionSyncResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)
  • 503 An external service (VIES, ECB, Stripe) is unavailable, or payment integrations are not available right now (integrations_unavailable). Try again later. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/payment-connections/{id}/sync" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/sales

Sleutel: alleen lezen

List imported sales (the sales inbox)

Newest payment first. status=open = new + needs_review + failed (the inbox). q searches the customer name / e-mail, the reference and the provider id; from / to filter on the payment date.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
status"open" | "new" | "needs_review" | "invoiced" | "ignored" | "failed" (query)
provider"stripe" | "mollie" (query)
connectionIdstring (query)
kind"sale" | "refund" (query)
qstring (query)
fromstring (YYYY-MM-DD) (query)
tostring (YYYY-MM-DD) (query)
pageinteger (query)
pageSizeinteger (query)

Antwoorden

  • 200 A page of sales. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/sales" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/sales/{id}

Sleutel: alleen lezen

Get an imported sale

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The sale with its invoice proposal (decision). (application/json: PaymentSale)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/sales/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/sales/{id}/invoice

Sleutel: facturenIdempotency-Key

Turn a sale into an invoice

A sale becomes a DRAFT invoice, a refund a DRAFT credit note for the invoice of its sale: prices incl. VAT (the total equals what was charged), invoice date today, supply date = payment date, no payment link or QR; the customer is matched (provider customer, VAT id, e-mail) or created. Issuing marks it paid at the payment date. issue: true issues it, send: true issues and e-mails it (the sale gets statusReason no_recipient when the customer has no e-mail). Invoices count against the Free quota (402, nothing changes); credit notes never do. Works on every plan; automatic conversion is Pro (salesAutomation). Issue / send are refused while an admin views the account.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json ConvertSale

Body
VeldTypeOmschrijving
issueboolean
sendboolean

Antwoorden

  • 201 The sale and the new invoice / credit note. (application/json: SaleConvertResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 403 Forbidden: api_key_permission_denied (the API key's access level is too low; details = { granted, required }) or session_required (web app only). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/sales/{id}/invoice" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"issue":true}'

POST /api/v1/sales/{id}/ignore

Sleutel: facturenIdempotency-Key

Ignore a sale

Takes it out of the open inbox (e.g. a private payment). It can be restored or still be invoiced by hand.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The sale. (application/json: PaymentSale)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/sales/{id}/ignore" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/sales/{id}/restore

Sleutel: facturenIdempotency-Key

Restore an ignored or failed sale

Back into the inbox (new or needs_review) with a fresh invoice proposal. Sales without an amount, voided ones and refunds covered by a credit note can't be restored (409 sale_not_convertible).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The sale. (application/json: PaymentSale)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/sales/{id}/restore" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Webhooks

Outgoing webhooks (Pro): signed POSTs to your own https URLs when an invoice is issued, sent, paid or cancelled, a credit note is issued or a quote is accepted. Standard Webhooks signatures, retries for about 45 hours, a delivery log and secret rotation. Reading, listing and deleting endpoints also works on Free (endpoints are paused there). The event payloads are in the `webhooks` section of this document. Guide: /en/docs/api/webhooks.

GET /api/v1/webhooks

Sleutel: volledig

List webhook endpoints

Your endpoints (at most 5). Also on Free, where they are paused (pausedByPlan).

Parameters en antwoorden

Antwoorden

  • 200 Your endpoints. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/webhooks" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/webhooks

Pro Sleutel: volledigIdempotency-Key

Add a webhook endpoint

Checks the URL (https on port 443, public addresses only) and returns the endpoint with its signing secret. The secret is only shown in this response; a replay with the same Idempotency-Key returns the same secret. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden

Body: application/json WebhookEndpointInput

Body
VeldTypeOmschrijving
url*stringReceiver URL: https, port 443, no user:password, no #fragment, max. 2048 characters. The host must resolve to public addresses only (no IP literals, internal names or private ranges). For local development use a tunnel with a public https URL.
descriptionstring | nullYour own label, e.g. "Production CRM" (max. 200 characters).
events*"invoice.issued" | "invoice.sent" | "invoice.paid" | "invoice.cancelled" | "credit_note.issued" | "quote.accepted"[]Events to receive (at least one, each once): invoice.issued, invoice.sent, invoice.paid, invoice.cancelled, credit_note.issued, quote.accepted.
activebooleanfalse = create it switched off. Default true.

Antwoorden

  • 201 The endpoint plus its secret (shown once). (application/json: WebhookEndpointCreated)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/webhooks" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/webhooks/eenfactuurmaken","description":"CRM","events":["invoice.issued","invoice.paid"]}'

GET /api/v1/webhooks/{id}

Sleutel: volledig

Get a webhook endpoint

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The endpoint. (application/json: WebhookEndpoint)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/webhooks/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

PATCH /api/v1/webhooks/{id}

Pro Sleutel: volledig

Update a webhook endpoint

Change the URL, label, events or payload version, or switch it on or off. Switching it back on resets the failure count. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json WebhookEndpointUpdate

Body
VeldTypeOmschrijving
urlstringNew receiver URL (checked like on create).
descriptionstring | nullYour own label. null or "" clears it.
events"invoice.issued" | "invoice.sent" | "invoice.paid" | "invoice.cancelled" | "credit_note.issued" | "quote.accepted"[]Replaces the list of events.
activebooleantrue switches the endpoint (back) on and resets the failure count; false switches it off.
payloadVersion"2026-11-01"Payload version to receive. Additive fields never change the version; a breaking change ships as a new version you opt into here.

Antwoorden

  • 200 The endpoint. (application/json: WebhookEndpoint)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X PATCH "https://eenfactuurmaken.nl/api/v1/webhooks/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"active":true}'

DELETE /api/v1/webhooks/{id}

Sleutel: volledig

Delete a webhook endpoint

Also on Free. Its delivery log is deleted too.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 Deleted. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X DELETE "https://eenfactuurmaken.nl/api/v1/webhooks/{id}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/webhooks/{id}/test

Pro Sleutel: volledig

Send a test event

Sends webhook.test now (also to a switched-off endpoint) through the same URL check and signing, and returns the result. Logged as a test delivery, never retried and not counted towards the auto-disable. 5 per minute per account (429 rate_limited with Retry-After). An Idempotency-Key header is accepted but ignored: every call sends a new test. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Antwoorden

  • 200 The result of the attempt. (application/json: WebhookTestResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/webhooks/{id}/test" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/webhooks/{id}/rotate-secret

Pro Sleutel: volledigIdempotency-Key

Create a new signing secret

The previous secret keeps signing for previousSecretTtlHours (default 24): until then every event carries both signatures. The new secret is only shown in this response. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.

Body: application/json WebhookRotate

Body
VeldTypeOmschrijving
previousSecretTtlHoursintegerHours the previous secret keeps signing too (0-72, default 24). 0 = it stops at once. Default: 24.

Antwoorden

  • 200 The endpoint and the new secret. (application/json: WebhookRotateResult)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/webhooks/{id}/rotate-secret" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"previousSecretTtlHours":24}'

GET /api/v1/webhooks/{id}/deliveries

Sleutel: volledig

Delivery log of an endpoint

Newest first. Kept for 30 days.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
status"pending" | "in_flight" | "succeeded" | "failed" | "skipped" (query)
pageinteger (query)
pageSizeinteger (query)

Antwoorden

  • 200 A page of deliveries. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/webhooks/{id}/deliveries" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /api/v1/webhooks/{id}/deliveries/{deliveryId}

Sleutel: volledig

One delivery with its payload

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
{deliveryId}*string (path)Resource id.

Antwoorden

  • 200 The delivery, the signed body and the start of the last response. (application/json: WebhookDeliveryDetail)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/webhooks/{id}/deliveries/{deliveryId}" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/retry

Pro Sleutel: volledigIdempotency-Key

Send a failed delivery again

Only failed or skipped deliveries (not test deliveries). It is queued with a fresh retry schedule; the event keeps its webhook-id, so your receiver can dedupe it. Requires the **Pro** plan (402 plan_upgrade_required on Free).

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{id}*string (path)Resource id.
{deliveryId}*string (path)Resource id.

Antwoorden

  • 200 The queued delivery. (application/json: WebhookDelivery)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 402 Plan limit reached (plan_limit_reached) or Pro needed (plan_upgrade_required). (application/json: Error)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 409 Conflict with the current state, e.g. invoice_locked, invoice_not_issued, number_taken, external_id_taken (details = { resource, id, … } of the existing record), idempotency_key_in_progress (the first request with this Idempotency-Key is still running; wait Retry-After seconds), webhook_endpoint_limit, invoice_has_credit_notes, invoice_fully_credited, peppol_kvk_required. Each operation lists its own codes. (application/json: Error)
  • 422 Validation failed (validation_failed, details = issues), the invoice does not meet the Dutch requirements (invoice_not_compliant, details = ComplianceIssue[]), unknown_customer (no customer with that customerExternalId), idempotency_key_invalid (1-255 printable ASCII characters), idempotency_key_mismatch (the key was used for a different request), webhook_url_invalid or webhook_url_blocked. (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

AI

Machine-readable entry points: this spec, the MCP server and signed download links.

GET /api/v1/openapi.json

Openbaar

This OpenAPI 3.1 document

Parameters en antwoorden

Antwoorden

  • 200 OpenAPI document. (application/json: object)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/api/v1/openapi.json"

POST /mcp

Elke sleutel

MCP server (Streamable HTTP)

Model Context Protocol endpoint for AI assistants (ChatGPT, Claude, Gemini, Cursor, VS Code). JSON-RPC 2.0 over Streamable HTTP, stateless. Authenticate with an API key or an OAuth access token. See /docs/mcp.

Parameters en antwoorden

Body: application/json object

Antwoorden

  • 200 JSON-RPC response. (application/json: object)
  • 401 Missing or invalid API key (unauthenticated, invalid_api_key). (application/json: Error)
  • 429 Too many requests (rate_limited). Wait the number of seconds in the Retry-After header. (application/json: Error)

Voorbeeld

cURL

cURL

curl -X POST "https://eenfactuurmaken.nl/mcp" \
  -H "Authorization: Bearer $EENFACTUURMAKEN_API_KEY"

GET /d/{token}

Openbaar

Signed download link

Short-lived link (default 15 minutes) to an invoice PDF or UBL file, created by the MCP tool get_invoice_download_links. No authentication: the token is signed. 410 link_expired after expiry.

Parameters en antwoorden
Parameters
ParameterTypeOmschrijving
{token}*string (path)Signed token from get_invoice_download_links.

Antwoorden

  • 200 The file. (application/pdf: string)
  • 404 Not found (also for resources of other accounts). (application/json: Error)
  • 410 Gone (expired link). (application/json: Error)

Voorbeeld

cURL

cURL

curl "https://eenfactuurmaken.nl/d/{token}"

Webhook-events

Wat we naar je eigen endpoint sturen (Pro). Elk bericht is een POST met JSON en drie handtekeningheaders. Controleer de handtekening voordat je de body leest.

POST invoice.issued

Pro

An invoice was issued

Fires when an invoice gets its number (POST /invoices/{id}/issue, issue: true on create, or a recurring run). We POST this JSON to every active endpoint subscribed to invoice.issued (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookInvoiceEvent)

data (WebhookInvoiceEvent)
VeldTypeOmschrijving
object"invoice"
idstring
kind"invoice" | "credit_note"invoice.sent, invoice.paid and invoice.cancelled also fire for credit notes (kind credit_note).
numberstring | null
statusstringStatus after the event: issued, sent, paid or cancelled.
issueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
dueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
currencystring
subtotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
vatTotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
issuedAtstring | null
sentAtstring | null
paidAtstring | null
cancelledAtstring | null
externalIdstring | nullYour own id of the document.
customerobject | null
creditedInvoiceIdstring | null
sourceQuoteIdstring | null
resendbooleaninvoice.sent: true when the document had been sent before. Always false for other events.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "invoice.issued",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "id": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "kind": "invoice",
    "number": "2026-0042",
    "status": "issued",
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "currency": "EUR",
    "subtotalCents": 114000,
    "vatTotalCents": 23940,
    "totalCents": 137940,
    "issuedAt": "2026-11-01T09:12:00.000Z",
    "sentAt": null,
    "paidAt": null,
    "cancelledAt": null,
    "externalId": "inv_123",
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "creditedInvoiceId": null,
    "sourceQuoteId": null,
    "resend": false,
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
      "pdf": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60/pdf"
    }
  }
}

POST invoice.sent

Pro

An invoice or credit note was emailed

Fires after a successful send (POST /invoices/{id}/send, or a recurring run with auto-send). Also for credit notes (data.kind). data.resend is true when it had been sent before. Reminders do not fire it. We POST this JSON to every active endpoint subscribed to invoice.sent (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookInvoiceEvent)

data (WebhookInvoiceEvent)
VeldTypeOmschrijving
object"invoice"
idstring
kind"invoice" | "credit_note"invoice.sent, invoice.paid and invoice.cancelled also fire for credit notes (kind credit_note).
numberstring | null
statusstringStatus after the event: issued, sent, paid or cancelled.
issueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
dueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
currencystring
subtotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
vatTotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
issuedAtstring | null
sentAtstring | null
paidAtstring | null
cancelledAtstring | null
externalIdstring | nullYour own id of the document.
customerobject | null
creditedInvoiceIdstring | null
sourceQuoteIdstring | null
resendbooleaninvoice.sent: true when the document had been sent before. Always false for other events.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "invoice.sent",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "id": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "kind": "invoice",
    "number": "2026-0042",
    "status": "sent",
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "currency": "EUR",
    "subtotalCents": 114000,
    "vatTotalCents": 23940,
    "totalCents": 137940,
    "issuedAt": "2026-11-01T09:12:00.000Z",
    "sentAt": "2026-11-01T09:13:00.000Z",
    "paidAt": null,
    "cancelledAt": null,
    "externalId": "inv_123",
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "creditedInvoiceId": null,
    "sourceQuoteId": null,
    "resend": false,
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
      "pdf": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60/pdf"
    }
  }
}

POST invoice.paid

Pro

An invoice or credit note was marked as paid

Fires on every change to paid, also after mark-unpaid followed by mark-paid. Also for credit notes (data.kind). We POST this JSON to every active endpoint subscribed to invoice.paid (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookInvoiceEvent)

data (WebhookInvoiceEvent)
VeldTypeOmschrijving
object"invoice"
idstring
kind"invoice" | "credit_note"invoice.sent, invoice.paid and invoice.cancelled also fire for credit notes (kind credit_note).
numberstring | null
statusstringStatus after the event: issued, sent, paid or cancelled.
issueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
dueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
currencystring
subtotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
vatTotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
issuedAtstring | null
sentAtstring | null
paidAtstring | null
cancelledAtstring | null
externalIdstring | nullYour own id of the document.
customerobject | null
creditedInvoiceIdstring | null
sourceQuoteIdstring | null
resendbooleaninvoice.sent: true when the document had been sent before. Always false for other events.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "invoice.paid",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "id": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "kind": "invoice",
    "number": "2026-0042",
    "status": "paid",
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "currency": "EUR",
    "subtotalCents": 114000,
    "vatTotalCents": 23940,
    "totalCents": 137940,
    "issuedAt": "2026-11-01T09:12:00.000Z",
    "sentAt": "2026-11-01T09:13:00.000Z",
    "paidAt": "2026-11-02T10:15:00.000Z",
    "cancelledAt": null,
    "externalId": "inv_123",
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "creditedInvoiceId": null,
    "sourceQuoteId": null,
    "resend": false,
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
      "pdf": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60/pdf"
    }
  }
}

POST invoice.cancelled

Pro

An invoice or credit note was cancelled

Fires when an issued document is cancelled. Also for credit notes (data.kind). We POST this JSON to every active endpoint subscribed to invoice.cancelled (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookInvoiceEvent)

data (WebhookInvoiceEvent)
VeldTypeOmschrijving
object"invoice"
idstring
kind"invoice" | "credit_note"invoice.sent, invoice.paid and invoice.cancelled also fire for credit notes (kind credit_note).
numberstring | null
statusstringStatus after the event: issued, sent, paid or cancelled.
issueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
dueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
currencystring
subtotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
vatTotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
issuedAtstring | null
sentAtstring | null
paidAtstring | null
cancelledAtstring | null
externalIdstring | nullYour own id of the document.
customerobject | null
creditedInvoiceIdstring | null
sourceQuoteIdstring | null
resendbooleaninvoice.sent: true when the document had been sent before. Always false for other events.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "invoice.cancelled",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "id": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "kind": "invoice",
    "number": "2026-0042",
    "status": "cancelled",
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "currency": "EUR",
    "subtotalCents": 114000,
    "vatTotalCents": 23940,
    "totalCents": 137940,
    "issuedAt": "2026-11-01T09:12:00.000Z",
    "sentAt": null,
    "paidAt": null,
    "cancelledAt": "2026-11-03T08:00:00.000Z",
    "externalId": "inv_123",
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "creditedInvoiceId": null,
    "sourceQuoteId": null,
    "resend": false,
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
      "pdf": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60/pdf"
    }
  }
}

POST credit_note.issued

Pro

A credit note was issued

Fires when a credit note gets its number. data.creditedInvoiceId is the invoice it corrects (null for an invoice made outside EenFactuurMaken.nl). We POST this JSON to every active endpoint subscribed to credit_note.issued (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookInvoiceEvent)

data (WebhookInvoiceEvent)
VeldTypeOmschrijving
object"invoice"
idstring
kind"invoice" | "credit_note"invoice.sent, invoice.paid and invoice.cancelled also fire for credit notes (kind credit_note).
numberstring | null
statusstringStatus after the event: issued, sent, paid or cancelled.
issueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
dueDatestring (YYYY-MM-DD)Calendar date, YYYY-MM-DD.
currencystring
subtotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
vatTotalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
issuedAtstring | null
sentAtstring | null
paidAtstring | null
cancelledAtstring | null
externalIdstring | nullYour own id of the document.
customerobject | null
creditedInvoiceIdstring | null
sourceQuoteIdstring | null
resendbooleaninvoice.sent: true when the document had been sent before. Always false for other events.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "credit_note.issued",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "invoice",
    "id": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "kind": "credit_note",
    "number": "C2026-0004",
    "status": "issued",
    "issueDate": "2026-11-01",
    "dueDate": "2026-11-15",
    "currency": "EUR",
    "subtotalCents": 114000,
    "vatTotalCents": 23940,
    "totalCents": 137940,
    "issuedAt": "2026-11-01T09:12:00.000Z",
    "sentAt": null,
    "paidAt": null,
    "cancelledAt": null,
    "externalId": "inv_123",
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "creditedInvoiceId": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "sourceQuoteId": null,
    "resend": false,
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
      "pdf": "https://eenfactuurmaken.nl/api/v1/invoices/0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60/pdf"
    }
  }
}

POST quote.accepted

Pro

A quote was accepted

Fires when a quote is accepted (POST /quotes/{id}/accept). data.invoiceId is the new draft invoice. We POST this JSON to every active endpoint subscribed to quote.accepted (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookQuoteEvent)

data (WebhookQuoteEvent)
VeldTypeOmschrijving
object"quote"
idstring
numberstring | null
statusstringaccepted
acceptedAtstring | null
currencystring
totalCentsintegerAmount in euro cents (integer). 12345 = €123.45.
externalIdnull
customerobject | null
invoiceIdstring | nullThe draft invoice made from the accepted quote.
linksobjectAbsolute URLs: fetch the full object (and the PDF) with your API key.

Voorbeeld

JSON

JSON

{
  "type": "quote.accepted",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "quote",
    "id": "3b9d1c2e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
    "number": "OFF2026-0007",
    "status": "accepted",
    "acceptedAt": "2026-11-02T10:15:00.000Z",
    "currency": "EUR",
    "totalCents": 425920,
    "externalId": null,
    "customer": {
      "id": "9d2c1b0a-1234-4cde-8f00-aa11bb22cc33",
      "externalId": "cus_9"
    },
    "invoiceId": "0f8e2a52-7d0b-4c47-9a1e-3c1b2d4e5f60",
    "links": {
      "api": "https://eenfactuurmaken.nl/api/v1/quotes/3b9d1c2e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
      "pdf": "https://eenfactuurmaken.nl/api/v1/quotes/3b9d1c2e-5f60-4a7b-8c9d-0e1f2a3b4c5d/pdf"
    }
  }
}

POST webhook.test

Pro

Test event

Sent only by POST /webhooks/{id}/test (the test button). You can't subscribe to it. We POST this JSON to every active endpoint subscribed to webhook.test (Pro). Verify the signature over the raw body before parsing it. Delivery is at least once and unordered: dedupe on webhook-id.

Headers en velden

Headers

Headers
VeldTypeOmschrijving
webhook-idstring (header)Event id (msg_…). The same on every retry: store it and ignore events you have already processed.
webhook-timestampstring (header)Unix time in seconds of this attempt. Reject messages more than 5 minutes from your clock.
webhook-signaturestring (header)Space-separated v1,<base64 HMAC-SHA256> signatures of ${webhook-id}.${webhook-timestamp}.${raw body}, keyed with the base64-decoded part of your secret after whsec_. Two signatures during a secret rotation: accept the message when one matches.

data (WebhookTestEvent)

data (WebhookTestEvent)
VeldTypeOmschrijving
object"test"
endpointIdstring
messagestring

Voorbeeld

JSON

JSON

{
  "type": "webhook.test",
  "timestamp": "2026-11-02T10:15:00.000Z",
  "version": "2026-11-01",
  "data": {
    "object": "test",
    "endpointId": "8a7b6c5d-…",
    "message": "Test event from EenFactuurMaken.nl. Your endpoint is reachable and can verify the signature."
  }
}

Laatst bijgewerkt op 29 oktober 2026

Kom je er niet uit?

Mail ons op support@eenfactuurmaken.nl. Vertel wat je probeerde en wat er gebeurde, dan helpen we je verder.

support@eenfactuurmaken.nl