Tax filings
File the Dutch VAT return (omzetbelasting), the return of intra-community supplies (opgaaf ICP) and the correction of earlier VAT returns (suppletie) with the tax authority through Digipoort, and follow each one to the tax authority’s answer.
| Operation | Endpoint | What it does |
|---|---|---|
tax.validate |
POST /v1/tax/nl/vat-returns/validate, POST /v1/tax/nl/icp-returns/validate, POST /v1/tax/nl/vat-corrections/validate |
Every check a return gets before it is filed, without filing it. Free. |
tax.vat_return |
POST /v1/tax/nl/vat-returns |
Checks a VAT return and files it, with its ICP return when you send one. |
tax.icp_return |
POST /v1/tax/nl/icp-returns |
Checks an ICP return on its own and files it. |
tax.vat_correction |
POST /v1/tax/nl/vat-corrections |
Checks a VAT correction (suppletie) and files it. |
tax.read |
GET /v1/tax/filings, GET /v1/tax/filings/{id} |
Where your filings stand. Free. |
A key needs the scope tax, or the operation itself (see
scopes).
Availability. In preview. Filing with a live key is only for accounts we have enabled: filing
for the customers of another business makes us an intermediary at the tax authority. Other accounts
get 403 tax_filing_not_enabled. Filing costs €0.50; an ICP return filed with its VAT return falls under the same filing.
Test keys work for everyone, and never reach the tax authority; see test mode.
Check before you file
Section titled “Check before you file”The tax authority rejects a return it cannot accept, sometimes days later. We check what we can
ourselves first, so a return that would be rejected never leaves. The same checks run on
…/validate and on filing. On filing, a check that blocks is a 422
validation_failed and nothing is filed or charged.
curl https://api.accountcloud.io/v1/tax/nl/vat-returns/validate \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -d '{ "vat_number": "NL123456789B01", "period": { "start": "2026-07-01", "end": "2026-09-30" }, "boxes": { "1a": { "net": "12500.40", "vat": "2625.08" }, "3b": { "net": "4000.00" }, "5b": { "vat": "1200.33" } }, "contact": { "initials": "J.", "prefix": "van", "surname": "Dijk", "phone": "020 123 45 67" }, "icp": { "lines": [ { "country": "BE", "vat_number": "BE0123456749", "goods": "4000.00" } ] } }'{ "object": "tax_validation", "valid": true, "errors": [], "warnings": [], "taxonomy": "nt20", "boxes": { "1a": { "net": 12500, "vat": 2625 }, "3b": { "net": 4000 }, "5b": { "vat": 1201 }, "…": {} }, "totals": { "vat_owed": 2625, "vat_deductible": 1201, "vat_to_pay": 1424 }, "icp_lines": [ { "country": "BE", "vat_number": "0123456749", "goods": 4000, "services": 0, "triangular": 0 } ], "icp_total": 4000}The boxes. 1a–1e, 2a, 3a–3c, 4a, 4b and 5b, with net and/or vat as decimal
strings in euros. 1e and 3a–3c have only net, 5b only vat. A box you leave out is 0.
Rounding. The tax authority wants whole euros. We round in your favour, as the tax authority
allows: turnover and VAT owed down, input VAT (5b) up. Then we calculate 5a (the sum of the
rounded VAT), 5b and 5g (vat_to_pay, negative to get back). Send totals too and they must match.
ICP lines. One line per customer: country, vat_number, and as decimal strings in euros
goods, services and triangular: simplified triangular supplies (vereenvoudigde
ABC-leveringen) where you are the intermediary. All three count in box 3b. An ICP return on its
own may have no lines ("lines": []): a nil return, for a period without intra-community supplies.
What is checked. A finding in errors stops the filing; one in warnings does not.
| Code | Blocks | When |
|---|---|---|
vat_number_invalid |
Yes | Not NL, 9 digits, B, 2 digits. |
period_invalid |
Yes | Not a calendar month, a quarter (January, April, July or October to the end of its third month) or a calendar year. |
period_not_ended |
Yes | The period has not ended yet (Amsterdam time). |
period_closed |
Yes | A VAT return over a year can be filed until 31 August of the next year. After that, correct the year with a VAT correction. A VAT correction can go five years back: a year until 31 December of the fifth year after it. |
taxonomy_not_available |
Yes | The tax authority’s taxonomy of that year is not available here, or for an ICP return over 2025 or earlier: those use an older structure. |
box_unknown |
Yes | A box or column that does not exist, like vat in 3b. |
amount_invalid |
Yes | Not a number with at most 2 decimals. |
totals_mismatch |
Yes | The totals you sent differ from ours. |
previous_vat_to_pay_missing |
Yes | A correction without what was filed before. |
contact_missing |
Yes | Initials, surname or phone of the contact person is missing. |
contact_invalid |
Yes | A contact field is too long, or the phone is not 6 or more digits with an optional leading +, 14 characters at most. |
tax_consultant_number_invalid |
Yes | The Beconnummer is not exactly six digits. |
icp_empty |
Yes | The icp of a VAT return without lines. Leave icp out instead; an ICP return on its own may be a nil return. |
icp_country_invalid |
Yes | The customer’s country is not another EU member state, or XI (Northern Ireland). |
icp_vat_number_invalid |
Yes | The customer’s VAT number has not the format of its country. |
icp_line_duplicate |
Yes | The same customer twice; put everything of one customer on one line. |
icp_line_empty |
Yes | A line with nothing in goods, services and triangular supplies. |
icp_total_mismatch |
Yes / no | Box 3b differs from the ICP total. Within the rounding of the lines (a euro per line, plus one) it is a warning. The tax authority compares them. |
vat_rate_mismatch |
No | The VAT in 1a or 1b is more than €1 from 21% or 9% of the turnover. |
icp_negative_amount |
No | A negative amount in the ICP. A correction of an earlier period belongs there. |
refund_large |
No | More than €10,000 to get back; the tax authority often checks those. |
tax_consultant_number_check |
No | The Beconnummer does not pass the tax authority’s check digit; it warns about it too. |
File a return
Section titled “File a return”POST /v1/tax/nl/vat-returns takes the same body, plus reference and metadata of your own, and
answers 202 with the filing. taxpayer_name, the name of the business the return is for, is
optional: it comes back on the filing and shows in the portal, and is not sent to the tax authority. A job delivers it to Digipoort within a minute. With icp, the ICP
return is filed too, as a second filing in related_filing; the price of the VAT return covers it.
The contact person is who the tax authority can call about the return. With a
tax_consultant_number (Beconnummer), the return is filed as an intermediary.
A return of the same type, VAT number and period that is not rejected or failed is 409
tax_filing_exists, with its filing_id. Send an
Idempotency-Key to retry a request safely.
Correct earlier returns
Section titled “Correct earlier returns”A VAT correction (suppletie) corrects the VAT returns of an earlier period, usually a whole year.
POST /v1/tax/nl/vat-corrections takes the boxes as they should have been for the period, and
previous_vat_to_pay: what was filed for it before (5g of the earlier returns together, whole
euros, negative when it was paid back). It is filed in the taxonomy of the year you correct, for
example 2025 in 2026.
You can correct up to five years back: a year until 31 December of the fifth year after it, so 2022
until the end of 2027. A year further back is period_closed. 2021, open until the end of 2026, is
not supported here (taxonomy_not_available).
curl https://api.accountcloud.io/v1/tax/nl/vat-corrections \ -H "Authorization: Bearer ac_test_…" \ -H "Content-Type: application/json" \ -d '{ "vat_number": "NL123456789B01", "period": { "start": "2025-01-01", "end": "2025-12-31" }, "boxes": { "1a": { "net": "2000.00", "vat": "420.00" }, "1b": { "net": "8000.00", "vat": "480.00" } }, "previous_vat_to_pay": "200", "contact": { "initials": "J.", "surname": "Dijk", "phone": "0201234567" } }'The boxes are checked and rounded like a VAT return. In totals, vat_total_new is 5a − 5b of
these boxes, vat_total_old what was filed before, and vat_to_pay the difference: to pay on top,
or negative to get back. Here 900 − 200 = 700. A correction of the same period that is still on its
way is 409 tax_filing_exists; once it is accepted, another
correction may follow.
Follow a filing
Section titled “Follow a filing”status |
What it means |
|---|---|
queued |
Received; not with Digipoort yet. |
delivered |
Digipoort took it (digipoort.kenmerk); the tax authority has not answered yet. Charged now. |
accepted |
The tax authority accepted it. digipoort.receipt has its message number. |
rejected |
The tax authority or Digipoort refused it; error.code says why (for example BD-X-1403). Charged: we delivered it. |
failed |
The delivery itself failed, so nothing was filed; error.code says why (for example ALS100). Not charged. |
GET /v1/tax/filings/{id} has every step Digipoort reported in digipoort.steps. We ask Digipoort
every 5 minutes for the first hour, then after 1h30, 2h30, 6h30, a day, three days and seven days. Every one of
those requests is in digipoort.checks, with what it told us, and digipoort.next_check_at says when
we ask next. The step that settles it is 500 (accepted) or 510 (rejected) from the tax authority. The webhooks
tax_filing.delivered, tax_filing.accepted, tax_filing.rejected and tax_filing.failed tell you
without polling.
Test mode
Section titled “Test mode”With a test key, the checks are the real ones, but the return never reaches Digipoort. The outcome follows the VAT number, and the filing reaches it within seconds:
vat_number |
Outcome |
|---|---|
NL999999990B01, or any other valid number |
delivered, then accepted, with a receipt. |
NL999999991B01 |
delivered, then rejected with error.code BD-X-1403. |
NL999999992B01 |
failed with error.code ALS100. |