E-invoicing
Register the companies on your platform for e-invoicing. We check their numbers, send a letter with a code to the address in the trade register, and once your customer types in that code, we put the company on the network. You follow every registration with its status, its timeline and webhooks. From then on the company sends its e-invoices through us, receives the ones sent to it, and answers them with invoice responses.
Peppol is the network today. A registration says which networks it is on in networks, which is
["peppol"] for now. Where something only holds for Peppol, such as its identifier schemes, this
guide says Peppol.
| Operation | Endpoint | What it does |
|---|---|---|
e_invoicing.countries |
GET /v1/e-invoicing/countries |
Per country: which numbers a registration needs, whether the address is found automatically, and the prices for your account. Free. |
e_invoicing.registration |
POST /v1/e-invoicing/registrations |
Register a company. One-off, with a price per country, charged when the letter is sent. |
e_invoicing.read |
GET /v1/e-invoicing/registrations, GET, PATCH and DELETE /v1/e-invoicing/registrations/{id}, POST …/verify, POST …/documents, POST …/reactivate |
Follow a registration, pass the code, upload a document, change it, withdraw or deregister it. Free. |
e_invoicing.send |
POST /v1/e-invoicing/documents |
Send an invoice or credit note from an active registration. Per document, charged once it is delivered. See sending e-invoices. |
e_invoicing.read |
GET /v1/e-invoicing/documents, GET /v1/e-invoicing/documents/{id}, GET …/file, POST …/acknowledge |
The e-invoices you sent and the ones received for your registrations. Free. See receiving e-invoices. |
e_invoicing.response |
POST /v1/e-invoicing/documents/{id}/responses |
Answer a received e-invoice: acknowledged, accepted, rejected, paid. Free. See invoice responses. |
e_invoicing.letter |
POST /v1/e-invoicing/registrations/{id}/letters |
A new letter with a new code, when the first did not arrive. With a price per country. |
e_invoicing.active_registration |
— | The monthly price of a company on the network, charged per day. |
e_invoicing.lookup |
GET /v1/e-invoicing/participants/{participant_id} |
Whether a number is on the Peppol network, and through which access point. Free. See looking up a participant. |
A key needs the scope e_invoicing, or the operation itself (see
scopes).
Availability. In preview: the status of the operations in
GET /v1/pricing is preview. Test keys work for everyone; see
test mode. Live registrations open together with sending and receiving e-invoices
through AccountCloud: a company on the network needs somewhere for its invoices to go. Until then
a live key gets 503 operation_unavailable on
POST /v1/e-invoicing/registrations, POST /v1/e-invoicing/documents and
POST …/responses. A dry_run of sending works with a live key already.
How a registration works
Section titled “How a registration works”- Ask which countries you can register in, and what it costs:
GET /v1/e-invoicing/countries. - Register the company with its numbers:
POST /v1/e-invoicing/registrations. The answer is202,pending. - We send a letter with a 6-digit code to the official address of the company, within
seconds:
awaiting_code. Where we cannot find that address automatically, our team does it first:in_review. - Your customer types in the code on your platform, and you pass it on:
POST /v1/e-invoicing/registrations/{id}/verify. The company is put on the network:active.
The letter is what makes it safe: it only reaches the company itself. Someone who registers a number that is not theirs never gets the code.
The letter tells the company where it was registered and where to type in the code. It names your platform by the name of your account. Do your customers know your platform by another name, such as a product name? Ask us, and we set that name on the API key you register with.
Where the letter goes
Section titled “Where the letter goes”The letter only goes to an address from an official source, never to an address in your request.
- The trade register of the country, by
company_number: the Netherlands, Belgium, France, Switzerland, the Czech Republic, Finland and Norway. The letter carries the name in the register. - VIES, by
vat_number, where the country gives a usable address there. - Our team, everywhere else, or when the register shields the address, the company is not
active, or the letter came back. The registration is then
in_reviewwith the reason, and our team sends the letter, asks for a document, or rejects it.
One source fills the whole address. Which countries go automatically is verification in
GET /v1/e-invoicing/countries: automatic (the letter goes within
seconds) or manual (our team looks up the address first; count on a working day more).
The address you send in the request is only used on the network, when the register has none.
verification.address_source on the registration says where the address of the letter came from;
the address itself is never in the API.
Countries and prices
Section titled “Countries and prices”curl https://api.accountcloud.io/v1/e-invoicing/countries \ -H "Authorization: Bearer ac_test_…"{ "object": "list", "data": [ { "object": "e_invoicing_country", "country": "DE", "available": true, "identifiers": { "required": [], "optional": ["vat_number"] }, "verification": "manual", "prices": { "registration": "8.00", "letter": "2.50", "monthly": "0.25", "currency": "EUR", "vat_included": false } }, { "object": "e_invoicing_country", "country": "NL", "available": true, "identifiers": { "required": ["company_number"], "optional": ["oin", "vat_number"] }, "verification": "automatic", "prices": { "registration": "4.50", "letter": "2.50", "monthly": "0.25", "currency": "EUR", "vat_included": false } } ]}The amounts are an example; the list has every country with a Peppol scheme.
| Field | What it is |
|---|---|
available |
Whether your account can register companies in this country. false gets 422 country_not_available. |
identifiers |
The numbers of a registration, by their field in the request: those the country cannot go without (required), and those it takes as well (optional). With no required, at least one of optional is needed. |
verification |
automatic or manual; see where the letter goes. |
prices |
Your prices, excluding VAT: registration once, letter for a new letter, monthly per company on the network. With your own prices where you agreed them. |
The prices can change per country; ask before you register. The same prices are in
GET /v1/pricing: e_invoicing.registration and e_invoicing.letter have a
variant per country (nl, de, …), and e_invoicing.active_registration has the monthly price.
Register a company
Section titled “Register a company”curl https://api.accountcloud.io/v1/e-invoicing/registrations \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 9a1c4e7b-2f38-4d6a-b0c5-7e81f3a29d64" \ -H "AccountCloud-Entity: adm_42" \ -d '{ "country": "NL", "name": "Bakkerij De Korenaar B.V.", "company_number": "90000001", "vat_number": "NL123456789B01", "receive": true, "invoice_responses": true, "language": "nl", "reference": "adm_42" }'| Field | What it is |
|---|---|
country |
Required. The country of the company, ISO 3166-1 alpha-2. |
name |
Required. The name of the company. The letter uses the name in the trade register where there is one. |
company_number |
The number in the trade register: a KvK number (NL, 8 digits), an enterprise number (BE), a SIREN (FR), a CVR (DK), a UID (CH), … |
vat_number |
The VAT number, with or without the country prefix. |
oin |
NL only: the OIN of a government body. |
address |
lines, postal_code and city: the address on the network, only used when the register has none. The letter never goes here. |
receive |
true (default): send and receive e-invoices. false: send only; the company is not listed as a receiver. Fixed once registered. |
invoice_responses |
Also receive invoice responses. Defaults to receive; needs receive: true. |
language |
The language of the letter: en (default), nl, de, fr, es, it, pl, pt or ro. |
networks |
The networks to register on. Only ["peppol"] today, which is also the default. |
reference |
Your own id, returned as is, and a filter on the list. |
We check the numbers for the country (their format and, where they have one, the check digit) and
whether they are free, and answer 202 with the registration in pending:
{ "id": "eir_01jbx6y4q9t2m8rz1v3k5n7p0a", "object": "e_invoicing_registration", "environment": "live", "networks": ["peppol"], "status": "awaiting_code", "status_reason": null, "country": "NL", "name": "BAKKERIJ DE KORENAAR B.V.", "identifiers": [ { "participant_id": "0106:12345678", "scheme": "0106", "value": "12345678", "published": true }, { "participant_id": "9944:NL123456789B01", "scheme": "9944", "value": "NL123456789B01", "published": true } ], "receive": true, "invoice_responses": true, "language": "nl", "verification": { "method": "letter", "address_source": "kvk", "letter": { "status": "sent", "sent_at": "2026-11-17T09:12:00Z", "expected_by": "2026-11-20" }, "letters_sent": 1, "code_expires_at": "2027-01-16T09:12:00Z", "attempts_remaining": 5, "document": null }, "price": { "registration": "4.50", "monthly": "0.25", "currency": "EUR", "vat_included": false }, "charge": { "operation": "e_invoicing.registration", "status": "captured", "amount": "4.5000", "currency": "EUR" }, "rejection": null, "deregistration_possible_from": null, "reference": "adm_42", "created_at": "2026-11-17T09:11:58Z", "activated_at": null, "deregistered_at": null}This is the registration a few seconds later, once the letter went; the amounts are an example.
identifiersare the numbers the company is registered under, as participant ids: the official ICD scheme (0106for a KvK number,0208for a Belgian enterprise number,9944for a Dutch VAT number, …) and the value.publishedistruewhen the company is listed as a receiver.verification.methodis how we know the company is who it says:letter(the code),document(an extract or an authorisation),manual(our team approved it, without a code or a document) ormigrated(it was already on the network through our access point before this registration was made).priceis what this registration costs your account;chargeis what was charged so far:none,reserved(until the letter goes),capturedorreleased.- One registration per number. A number that your account already registered is
409registration_exists, with theregistration_id; a number another account registered with us is409identifier_taken.
Send an Idempotency-Key with every registration: a retry with the same key
gives the same registration, never a second letter.
GET /v1/e-invoicing/registrations lists the registrations of the key’s environment, newest first,
filtered on status, reference and identifier (a number, or a participant id such as
0106:12345678), with limit and cursor. With an AccountCloud-Entity header, only those of
that entity.
Statuses
Section titled “Statuses”status |
What it means | What you do |
|---|---|---|
pending |
Received; we look up the official address. Seconds. | Wait. |
awaiting_code |
The letter with the code is on its way or delivered. | Have your customer type in the code, and verify. |
in_review |
Our team looks at it; status_reason says why. |
Wait. It moves on to awaiting_code, document_required, activating or rejected. |
document_required |
We need an extract from the trade register or an authorisation. | Upload it. |
activating |
The code or the document was right; the company is being put on the network. | Wait: seconds, longer when the access point is busy. |
active |
On the network. | — |
rejected |
Rejected; see rejection.reason. |
Register again with the right details, if that applies. |
cancelled |
Withdrawn by you before it was active. | — |
deregistered |
Taken off the network; see status_reason. |
— |
status_reason while in_review:
status_reason |
Why |
|---|---|
no_official_address |
Neither the register nor VIES gave an address. |
address_shielded |
The register shields the address. |
company_not_active |
The register does not know the company, or it is no longer active. |
letter_undeliverable |
The letter came back. |
letter_failed |
The letter could not be sent. |
too_many_attempts |
The code was wrong five times. |
identifier_conflict |
A number is already on the network through another access point. |
country_not_supported |
We cannot post a letter to this country. |
document_submitted |
You uploaded a document; our team checks it. |
activation_failed |
The access point did not take the registration; our team looks into it. |
status_reason when deregistered: requested (you deregistered it), credit_exhausted (our team
deregistered it because the monthly price was not paid), subscription_ended (the same, because the
subscription ended) or support (our team, for another reason).
rejection.reason when rejected: invalid_vat, invalid_coc (the company number),
vat_already_in_use, coc_already_in_use, oin_already_in_use, suspicious_activity,
document_rejected or other. Nothing that was not charged yet is charged for a rejected
registration.
The code
Section titled “The code”curl https://api.accountcloud.io/v1/e-invoicing/registrations/eir_01jbx6y4q9t2m8rz1v3k5n7p0a/verify \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -d '{ "code": "123456" }'- A right code puts the company on the network:
200withstatus: active, or202withstatus: activatingwhen that takes longer;e_invoicing_registration.activatedfollows. We check the numbers again first, because the network can have changed since the request. - A wrong code is
422invalid_codewithattempts_remaining. Only a wrong code counts as an attempt. - The fifth wrong code is
423verification_locked: the registration goes toin_review(too_many_attempts), and our team decides how to go on. - An expired code is
410code_expired. A code is valid for 60 days after the letter was sent (verification.code_expires_at). Ask for a new letter. - A registration that does not wait for a code is
409invalid_state.
The code is 6 digits. It is never in an API answer, a webhook, a log or our backoffice: only on the letter.
A new letter
Section titled “A new letter”When the letter did not arrive, POST /v1/e-invoicing/registrations/{id}/letters sends a new one,
with a new code, to the same official address. The old code stops working. The answer is 202 with
the registration.
- Only while the registration is
awaiting_code; otherwise409invalid_state. - From seven working days after the previous letter, and at most twice. Earlier, or a third time,
is
429letter_limit_reached, withavailable_fromwhen it is a matter of waiting. - Charged per letter, at the
letterprice of the country.
verification.letter.expected_by says when the letter should have arrived. A letter that comes
back moves the registration to in_review (letter_undeliverable) by itself, with the
e_invoicing_registration.letter_undeliverable webhook.
Documents
Section titled “Documents”Where a letter cannot do it, our team asks for a document: the registration becomes
document_required, with the e_invoicing_registration.document_required webhook. Upload an
extract from the trade register, or an authorisation, as a PDF of at most 10 MB in the multipart
field file:
curl https://api.accountcloud.io/v1/e-invoicing/registrations/eir_01jbx6y4q9t2m8rz1v3k5n7p0a/documents \ -H "Authorization: Bearer ac_test_…" \The registration then goes to in_review (document_submitted) until our team approved it
(activating, then active) or rejected it (rejected, with document_rejected). In any other
status an upload is 409 invalid_state.
Change, withdraw or deregister
Section titled “Change, withdraw or deregister”PATCH /v1/e-invoicing/registrations/{id}changesinvoice_responses, nothing else. Whether a company receives or only sends is fixed: deregister it and register it again to change that.DELETE /v1/e-invoicing/registrations/{id}withdraws a registration that is not active yet (cancelled), or takes an active one off the network (deregistered, withstatus_reason: requested). While it isactivating, or once it ended, it is409invalid_state.
A number that is no longer registered is free again for a new registration.
The monthly price, and an empty credit
Section titled “The monthly price, and an empty credit”A company on the network has a monthly price (e_invoicing.active_registration), from the day it
became active until the day it is deregistered, charged per day from your credit. A registration
that waits for its code costs nothing per month.
When the credit runs out and the monthly price can no longer be charged:
- We warn you right away. Every active registration gets the
e_invoicing_registration.deregistration_warningwebhook, andderegistration_possible_fromis set on it: 14 days later. The owner and the billing members of your account get an e-mail, with reminders on day 7 and day 12. The portal shows it too. - Top up, and it is over. What could not be charged in the meantime is charged, and
e_invoicing_registration.deregistration_warning_clearedfollows, withderegistration_possible_fromback tonull. - From day 14 our team may deregister the companies (
deregistered, withstatus_reason: credit_exhausted). That never happens by itself: it is always a decision of a person, and we contact you first.
The same holds when the base subscription ended (subscription_ended). The
credit.low_balance webhook already says how many active
registrations you have, in e_invoicing_active_registrations, before the credit is used up.
Back on the network. Within 90 days after we deregistered a company for this reason,
POST /v1/e-invoicing/registrations/{id}/reactivate puts it back without a new letter and without a
new one-off price; the monthly price starts again. Top up first: the credit must cover what is still
owed and a month of the monthly price, otherwise it is 402
insufficient_credits. The numbers are checked again. After
90 days, register the company again.
Webhooks
Section titled “Webhooks”| Type | When |
|---|---|
e_invoicing_registration.letter_sent |
The letter with the code was handed to the postal service. |
e_invoicing_registration.letter_undeliverable |
The letter came back; the registration goes to review. |
e_invoicing_registration.in_review |
The registration waits for our team; see status_reason. |
e_invoicing_registration.document_required |
Upload a document. |
e_invoicing_registration.activated |
The company is on the network. |
e_invoicing_registration.rejected |
The registration was rejected; see rejection. |
e_invoicing_registration.deregistered |
The company was taken off the network; see status_reason. |
e_invoicing_registration.deregistration_warning |
The monthly price is no longer paid; see deregistration_possible_from. |
e_invoicing_registration.deregistration_warning_cleared |
The account was topped up; the warning is over. |
e_invoicing_document.received |
An e-invoice came in for one of your registrations. |
e_invoicing_document.delivered |
An e-invoice you sent reached the access point of the receiver. |
e_invoicing_document.failed |
An e-invoice you sent could not be delivered; see failure.code. |
e_invoicing_document.response_received |
The receiver answered an e-invoice you sent; see response.code. |
e_invoicing_document.response_failed |
An invoice response you sent did not arrive. |
They go to the endpoints of the registration’s environment, and follow the API
key that made the registration. The data of an e_invoicing_registration.* webhook is the
registration as GET /v1/e-invoicing/registrations/{id} gives it: never the code, and never an
address. Both carry the entity the registration was made with (the AccountCloud-Entity header
you sent), so you know which of your customers it is for. An e_invoicing_document.* webhook of a
document you sent follows the key that sent it.
Sending e-invoices
Section titled “Sending e-invoices”An active registration sends invoices and credit notes over Peppol. You send the invoice as JSON, in the same shape as the result of a document from OCR; we check it, turn it into the document the network expects (Peppol BIS Billing 3.0) and send it to the receiver’s access point.
curl https://api.accountcloud.io/v1/e-invoicing/documents \ -H "Authorization: Bearer ac_live_…" \ -H "AccountCloud-Entity: adm_42" \ -H "Idempotency-Key: 6c1f4e0a-…" \ -H "Content-Type: application/json" \ -d @invoice.json{ "registration_id": "eir_01jbx6y4q9t2m8rz1v3k5n7p0a", "receiver": { "participant_id": "0106:87654321" }, "document": { "document_type": "invoice", "invoice_number": "F2026-0042", "issue_date": "2026-11-23", "due_date": "2026-12-23", "currency": "EUR", "order_reference": "PO-7781", "payment": { "means": "bank" }, "supplier": { "iban": "NL91ABNA0417164300" }, "customer": { "name": "Klant B.V.", "vat_number": "NL123456789B01", "address": { "street": "Stationsplein", "house_number": "1", "postal_code": "3511 ED", "city": "Utrecht", "country_code": "NL" } }, "lines": [ { "description": "Consultancy, November", "quantity": "8", "unit_code": "HUR", "amount_excl_vat": "800.00", "vat_rate": "21", "vat_amount": "168.00" } ], "vat_breakdown": [ { "rate": "21", "category": "S", "taxable_amount": "800.00", "vat_amount": "168.00" } ], "totals": { "amount_excl_vat": "800.00", "vat_amount": "168.00", "amount_incl_vat": "968.00" } }, "attachments": [ { "name": "F2026-0042.pdf", "content_base64": "JVBERi0xLjcK…" } ], "reference": "inv_8812", "metadata": { "invoice_id": "8812" }}registration_idis the sender: anactiveregistration of this account and environment, and of the entity inAccountCloud-Entitywhen you send that header. The supplier on the invoice is the registration, with its name, address and numbers;document.supplieroverrides the name and address, and adds what the registration does not know, such as the IBAN.receiver.participant_idis where it goes: the customer’s Peppol participant id. Look it up first withGET /v1/e-invoicing/participants/{participant_id}. For Italy and Germany,receiver.routing_idcarries the codice destinatario or the Leitweg-ID.- Amounts are text with a dot (
"968.00"), in the currency of the invoice. A credit note (document_type: credit_note) carries positive amounts, as in EN 16931. attachments: at most 10 files, together at most 15 MB as base64. Send your PDF of the invoice here, so the receiver sees the invoice as you made it.- Not sent yet:
customer_reference,preceding_invoice_reference,payment.referenceandpayment.terms,delivery_date,invoice_period, and per lineitem_identifier,standard_identifierandperiod. Leave themnull; a value gives422with “Not sent over Peppol yet”. They will follow.
Before anything is sent we check, in this order. Each failure is an answer straight away, and nothing goes to the network or is charged:
| Check | Error |
|---|---|
| The body: required fields, amounts, categories, sizes | 422 validation_failed, with the messages per field |
| The sender is an active registration of yours | 422 sender_not_registered |
| The receiver is on Peppol and receives this type of document. When the network does not answer, we send anyway | 422 receiver_not_on_network |
| The registration did not send a document of this type with this number before (one that failed does not count) | 409 duplicate_document, with document_id |
| Your credit covers the price | 402 insufficient_credits |
"dry_run": true runs every check, sends nothing and costs nothing: 200 with the outcome
(object: e_invoicing_document_check, the sender, the receiver and the price). Use it before your
user presses send.
Otherwise the answer is 202 with the document, direction: outgoing and status: queued. We
hold the price on your credit; it is charged when the document is delivered, and released when it
fails. Send an Idempotency-Key: a retry with the same key gives the same
document, never a second invoice on the network.
status |
What it means |
|---|---|
queued |
Checked and accepted; on its way to the network. |
submitting |
Being handed to the network. |
submitted |
The network took it. |
delivered |
The access point of the receiver has it. Charged now. evidence says which access point, with the message id and the time of its receipt. |
failed |
It will not arrive; see failure.code: rejected_by_access_point (refused before sending, with failure.details), receiver_unreachable (no route to the receiver) or transmission_failed. Nothing is charged. |
The status only moves forward. You get e_invoicing_document.delivered or
e_invoicing_document.failed, with the reference you sent. Then:
GET /v1/e-invoicing/documents/{id}gives the document with its status,evidence,failure, and the answers of the receiver inresponseandresponses[](see invoice responses).GET /v1/e-invoicing/documents/{id}/filegives the JSON you sent; with?version=transmittedthe document as the network carried it, once it is delivered (409before). We keep both for 30 days after the final status, then410content_purged. Store them on your side.GET /v1/e-invoicing/documents?direction=outgoinglists what you sent, filtered further onstatusandregistration_id.
Receiving e-invoices
Section titled “Receiving e-invoices”An e-invoice sent over Peppol to a number of an active registration that receives (receive: true)
comes in at AccountCloud. We store it exactly as it was exchanged, read the type, number, date and
the two parties from it, and send e_invoicing_document.received to the endpoints of the key that
made the registration, with its entity:
{ "type": "e_invoicing_document.received", "timestamp": "2026-11-23T10:15:04Z", "data": { "id": "ein_01jdz3k8w2m4p6r8t0v2x4z6b8", "object": "e_invoicing_document", "direction": "incoming", "network": "peppol", "status": "received", "registration_id": "eir_01jbx6y4q9t2m8rz1v3k5n7p0a", "entity": "adm_42", "document_type": "invoice", "document_number": "F2026-0042", "format": "ubl", "received_at": "2026-11-23T10:15:03Z" }}The webhook is thin on purpose. Then:
GET /v1/e-invoicing/documents/{id}?include=resultgives the document:document_type(invoiceorcredit_note),document_number,issue_date,senderandreceiver(each with itsparticipant_idandname), andformat:ubl,cii, orunknownwhen the document could not be read. It is delivered anyway. Withinclude=resultyou also get the invoice itself as JSON inresult, in the same shape as the result of a document you send for OCR: one parser for both. See the invoice as JSON.GET /v1/e-invoicing/documents/{id}/filegives the file as it came over the network (application/xml), and with?version=pdfthe PDF the sender attached (application/pdf). We keep both for 30 days; after that it is410content_purgedand the rest of the object stays. Store them on your side: the legal retention of invoices is yours.POST /v1/e-invoicing/documents/{id}/acknowledgeconfirms you have it.
Missed a webhook? GET /v1/e-invoicing/documents?acknowledged=false lists the received
documents you have not acknowledged yet, newest first. Filter further with registration_id,
direction and status, and with the AccountCloud-Entity header.
Receiving is free: it is part of the monthly price of an active registration. A document is delivered also when the credit is empty, and also when the registration ended while the document was on its way.
The invoice as JSON
Section titled “The invoice as JSON”result_available and pdf_available on the document say what there is besides the original. With
include=result (only on GET /v1/e-invoicing/documents/{id}, not on the list):
{ "id": "ein_01jdz3k8w2m4p6r8t0v2x4z6b8", "object": "e_invoicing_document", "direction": "incoming", "format": "ubl", "result_available": true, "pdf_available": true, "result": { "document_type": "invoice", "direction": "purchase", "invoice_number": "F2026-0042", "issue_date": "2026-11-20", "due_date": "2026-12-20", "currency": "EUR", "payment": { "reference": "1234567890123456", "terms": null, "means": "bank" }, "supplier": { "name": "Leverancier B.V.", "vat_number": "NL000099998B57", "registration_number": "90000020", "registration_scheme": "0106", "iban": "NL91ABNA0417164300", "bic": "ABNANL2A", "address": { "street": "Teststraat 1", "house_number": null, "postal_code": "3511 AA", "city": "Utrecht", "country_code": "NL", "raw": "Teststraat 1\n3511 AA Utrecht" } }, "lines": [ { "description": "Advies", "quantity": "2", "unit_price": "50.00", "amount_excl_vat": "100.00", "vat_rate": "21.00", "vat_amount": "21.00" } ], "vat_breakdown": [ { "rate": "21.00", "category": null, "taxable_amount": "100.00", "vat_amount": "21.00", "amount_incl_vat": "121.00", "exemption_reason": null, "derived": false } ], "totals": { "amount_excl_vat": "100.00", "vat_amount": "21.00", "amount_incl_vat": "121.00", "paid_amount": null, "rounding_amount": null, "amount_due": null } }}The example is shortened. The answer always has every key of the
result, with null (or an empty list) where nothing is known.
- Read from the e-invoice, not by OCR. No
confidence, nolocations: a value is as the e-invoice states it. - What is filled in: the type (
credit_notefor a credit note), number, dates and currency; the supplier’s name, address, VAT number, Dutch KvK number (registration_scheme0106), IBAN and BIC; the payment reference, andpayment.meansbankfor a credit transfer; the lines with their quantity, unit price, amount and VAT rate; the VAT per rate; and the totals. - Allowances and charges on the whole invoice, such as shipping or a discount, are lines of their
own, so the lines add up to
totals.amount_excl_vat: a charge positive, an allowance negative. - Amounts are decimal strings with two decimals, with the sign the e-invoice gives them. A unit
price keeps its decimals (
"3.0345").vat_amountof a line is calculated: amount × rate. - The address has
street,postal_code,cityandcountry_code; a second street line and a region are only inraw, which has the whole address, line by line. - Not filled in yet (
null): the customer (that is your registration; seereceiveron the document), the order, buyer and preceding invoice references, line numbers, units, article numbers, VAT categories and exemption reasons, payment terms, and the paid, rounding and due amounts. Read those from the original. resultisnull, andresult_availablefalse, when the network could not read the document (format: unknown), after the 30 days, and for a document you sent: its JSON is the one you submitted, atGET …/file.- The PDF is the first PDF the sender attached. Without one,
GET …/file?version=pdfis404not_found. Other attachments are in the original.
Availability. Receiving from the network starts together with live registrations. With a test key you can build and test it now: see test mode.
Invoice responses
Section titled “Invoice responses”An invoice response is the receiver’s answer to an e-invoice: acknowledged, accepted, rejected, paid. They go both ways.
Answers to what you sent. When the receiver of your e-invoice answers, you get
e_invoicing_document.response_received. response on the document is the latest answer
(code, status, when it came), and responses[] has all of them with their clarifications and
note. An answer also means the document was delivered. The registration only gets answers when it
has invoice_responses: true.
code |
status |
Meaning |
|---|---|---|
AB |
acknowledged |
Received by the buyer. |
IP |
in_process |
Being processed. |
UQ |
under_query |
The buyer has a question; see the clarifications. |
CA |
conditionally_accepted |
Accepted with conditions; see the clarifications. |
RE |
rejected |
Rejected; see the clarifications. |
AP |
accepted |
Accepted for payment. |
PD |
paid |
Paid. |
null |
partially_paid |
Partly paid. |
Answering what you received. POST /v1/e-invoicing/documents/{id}/responses on a received
document of an active registration:
{ "code": "RE", "clarifications": [ { "type": "reason", "code": "REF" }, { "type": "action", "code": "NOA" } ], "note": "Unknown order number", "effective_date": "2026-11-24"}code:AB,IP,UQ,CA,RE,APorPD.clarifications:typereason(the reason codes of Peppol, such asREF,PRI,QUA,OTH) oraction(such asNOA,PIN,NIN), withcode, andtextforOTHandPPD.CA,UQandREneed at least one;PPDonly goes withPD. A rule broken is422invalid_response.- The answer is
202with the document; the response is inresponses[]with itsdelivery_status:queued,sent,deliveredorfailed. When it does not arrive you gete_invoicing_document.response_failed.
Invoice responses are free. We never answer on your behalf: you decide when a document is really processed.
Looking up a participant
Section titled “Looking up a participant”GET /v1/e-invoicing/participants/{participant_id} says whether a number is on the Peppol
network, whether it is registered through us or through another access point, and which document
types it receives. We ask the network itself: the SML for where the number is registered, then that
access point’s SMP for what it receives. An answer is kept for a few minutes. Free.
curl https://api.accountcloud.io/v1/e-invoicing/participants/0106:12345678 \ -H "Authorization: Bearer ac_live_…"registeredisfalsewhen the number is not on Peppol. Thenaccess_point,smpanddocument_typesarenull.access_pointisaccountcloudwhen the number is registered through one of the hub’s registrations that receive, andotherwhen it receives elsewhere.document_typesare the documents the number receives, as its SMP lists them:Invoice,CreditNote, an invoice response (ApplicationResponse), and so on, with the customization and version from the document type identifier.nullwhen the SMP did not answer just now;smp.reachableis thenfalse.
With a test key you get the fixed test participants: 0106:90000003 is at another access point,
0106:90000005 is registered through us, and any other number is not on the network.
A participant id is the four-digit scheme and the value, separated by a colon; anything else is
422 invalid_participant_id.
Test mode
Section titled “Test mode”With a test key a registration is checked like a live one: the numbers, their check digits and
whether they are free. Then the trade register, the letter and the network are simulated: no letter
is printed, nothing reaches the network, and nothing is charged. It goes through the same statuses
and webhooks as a live registration, to your test endpoints. The code is always 123456.
Use these Dutch test numbers (country: NL, company_number) to play the scenarios:
company_number |
What happens |
|---|---|
90000001 |
awaiting_code; verify with 123456 makes it active. |
90000002 |
No official address: in_review with status_reason: no_official_address. |
90000003 |
Already at another access point: 422 receive_unavailable with receive: true; with receive: false it goes on as 90000001. |
90000004 |
The letter comes back: in_review with status_reason: letter_undeliverable. |
| Any other valid number | awaiting_code, as 90000001. |
Receiving. POST /v1/e-invoicing/test/incoming-documents makes up an e-invoice for one of your
active test registrations and sends e_invoicing_document.received, exactly as a document from the
network would:
curl https://api.accountcloud.io/v1/e-invoicing/test/incoming-documents \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -d '{"registration_id": "eir_01jbx6y4q9t2m8rz1v3k5n7p0a"}'Without a file you get our example: a Peppol BIS Billing 3.0 invoice from TESTLEVERANCIER PEPPOL
B.V. (0106:90000020) to your registration, with the invoice as JSON (include=result) and a PDF
(?version=pdf), as a document from the network has them. scenario credit_note gives a credit
note, unparseable a document that cannot be read (format: unknown, no result). Or send your own
UBL, base64-encoded, in file: it is stored and read like our example, but has no result and no
PDF, because in test mode only our example has them. With a live key this endpoint is 403
test_key_required.
Sending. Send from an active test registration; the receiver picks the scenario. Nothing reaches the network, nothing is charged, and the webhooks go to your test endpoints:
receiver.participant_id |
What happens |
|---|---|
0106:90000003 |
delivered after about 10 seconds, no answer. |
0106:90000011 |
delivered, then the answers AB and AP. |
0106:90000012 |
delivered, then RE with the reason REF. |
0106:90000013 |
failed with transmission_failed. |
| Any other number | 422 receiver_not_on_network. |
Invoice responses on a made-up received document go to delivered; on one from sender
0106:90000013 they go to failed, with e_invoicing_document.response_failed.
See test mode for every operation.
In the portal
Section titled “In the portal”E-invoicing in the portal lists the registrations of your account per environment, with their status, price and timeline, and shows the warning while the monthly price is not paid. It is read only: registering, the code and deregistering go through the API.
Errors
Section titled “Errors”| Code | Status | When |
|---|---|---|
missing_identifiers |
422 | The country needs other numbers. With missing_identifiers and country. |
invalid_identifier |
422 | A number has the wrong format or check digit. With field. |
country_not_available |
422 | Your account cannot register companies in this country. |
registration_exists |
409 | Your account already has an open or active registration for this number. With registration_id. |
identifier_taken |
409 | Another account registered this number with us. |
receive_unavailable |
422 | The number already receives through another access point. Register with receive: false to send only. |
letter_limit_reached |
429 | No more letters for now, for your account today or for this number. With limit and, when given, available_from. |
invalid_code |
422 | The code is not right. With attempts_remaining. |
verification_locked |
423 | The fifth wrong code; the registration goes to review. |
code_expired |
410 | The code is older than 60 days. Ask for a new letter. |
invalid_state |
409 | Not possible in the current status of the registration, given in registration_status. |
e_invoicing_registration_not_found |
404 | The registration does not exist, or belongs to another account or environment. |
invalid_participant_id |
422 | A participant id is not scheme:value. |
sender_not_registered |
422 | The registration_id you send from is not an active registration of yours. |
receiver_not_on_network |
422 | The receiver is not on Peppol, or does not receive this type of document. |
duplicate_document |
409 | The registration already sent a document of this type with this number. With document_id. |
invalid_response |
422 | The invoice response breaks a rule of Peppol. With errors. |
insufficient_credits |
402 | Your credit does not cover the price of the country, or a reactivation. |
operation_unavailable |
503 | Live registrations, live sending or the live participant lookup are not open yet. Test keys work. |
validation_failed |
422 | The body is not valid, such as a networks other than peppol. The messages per field in errors. |