NL Official Documents
📄 NL Official Documents API
📄 NL Official Documents API
Purpose of the API
The NL Official Documents API allows you to order, track, and
download official documents from the Dutch Chamber of Commerce (KVK).
Instead of manually navigating the KVK website, you can programmatically
discover available documents, place orders, monitor their processing
status, and download the resulting files in multiple formats.
You can use this API to:
- Discover which official documents are available for a given
organization or branch - Order business register extracts, trade register history,
statutes, concern relations, and annual accounts - Track the asynchronous processing status of your orders
- Download completed documents in PDF, HTML, JSON, or ZIP format
- Reuse previously ordered documents from cache without placing a
new order
The API is ideal for KYC/KYB onboarding, compliance workflows, legal
due diligence, financial audits, and any process that requires official
Dutch trade register documents.
How to use?
📌 Overview of the Flow
-
Discover Supported Documents
Start by callingGET /nl/organizations/official-documents/v1/
to check which documents are available for a specific organization.
The response includes document types, prices, expected delivery
times, and available formats. -
Place an Order
Once you have identified the document you want, call:POST /nl/organizations/official-documents/v1/orders
providing thedocumentTypeandorganizationID(and optionally
branchID). -
Track Order Status
Orders are processed asynchronously. Poll the order status by
calling:GET /nl/organizations/official-documents/v1/orders/{order_id}
until the status changes frompendingtodone. -
Download the Document
When the status isdone, download the document by calling:GET /nl/organizations/official-documents/v1/orders/{order_id}/document
Specify the desired format via theAcceptheader. -
Reuse Existing Documents (Cache)
Before placing a new order, you can check if a document is already
available in the cache:GET /nl/organizations/official-documents/v1/documents
If found, download it directly via:GET /nl/organizations/official-documents/v1/documents/{document_id}
🌀 Flow Behavior
- Orders are processed asynchronously. The
POSTcall returns
immediately with apendingstatus — you must poll until the order
completes. - If an order fails during processing, you can retry specific
activities usingPOST /nl/organizations/official-documents/v1/orders/{order_id}. - The cache endpoint (
/v1/documents) returns documents previously
ordered by any customer. Each document includes anupToDateflag
indicating whether it reflects the latest KVK data. - All list endpoints support pagination via
page[number]and
page[size]. - All responses follow JSON:API conventions for consistency.
🔢 Versioning
Current version prefix:/nl/organizations/official-documents/v1/
Future versions will follow /v2/, /v3/, etc.
Base URL
🔑 Authentication
All requests must be authenticated using one of the following methods:
| Method | Header | Description |
|---|---|---|
| API Key | X-API-KEY: <your-api-key> | Your unique API key. Validated against the Organization Management API. |
| Bearer Token | Authorization: Bearer <your-token> | A valid bearer token issued by the authentication service. |
You only need to provide one of these headers per request. If both are present, the bearer token takes precedence.
🧩 Core Concepts
Before diving into the endpoints, it helps to understand the domain
model:
| Concept | Description |
|---|---|
| Order | A request to retrieve an official document from the KVK. Orders are processed asynchronously and transition through statuses: pending, done, failed, cancelled. |
| Document | A completed, cached document that has been previously ordered. Documents can be reused without placing a new order. |
All Endpoints
Below is a complete list of API endpoints.
| # | Method | Endpoint | Description |
|---|---|---|---|
| 1 | GET | /v1/ | Discover supported documents for an organization |
| 2 | POST | /v1/orders | Place a new document order |
| 3 | GET | /v1/orders | List previously placed orders |
| 4 | GET | /v1/orders/{order_id} | Get a specific order |
| 5 | POST | /v1/orders/{order_id} | Retry a failed order activity |
| 6 | GET | /v1/orders/{order_id}/document | Download a document from an order |
| 7 | GET | /v1/documents | List available cached documents |
| 8 | GET | /v1/documents/{document_id} | Download a cached document |
All endpoint paths are relative to
/nl/organizations/official-documents.
❗ These endpoints incur usage-based charges.
1. Discover Supported Documents
GET /nl/organizations/official-documents/v1/Check which official documents are available for a specific organization.
Description
Returns the list of document types available for the given Organization
ID (and optionally branch ID), including pricing, expected delivery
time, available formats, and availability status.
Request Parameters
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filter[organizationID] | string | Yes | The 8-digit KVK number. |
filter[branchID] | string | No | The 12-digit branch ID. |
filter[documentType] | string | No | Filter the discovery to a single document type (see list below). |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/?filter[organizationID]=33302047" \
-H "X-API-KEY: YOUR_API_KEY"Example Response
{
"data": {
"id": "33302047",
"type": "documents",
"attributes": {
"organizationID": "33302047",
"date": "2024-03-15T11:19:39+01:00",
"documents": [
{
"type": "standardExtract",
"mimeType": "text/html",
"price": 2.95,
"available": true,
"expectedTime": 60,
"description": "Business Register Extract",
"maskedGDPR": false
},
{
"type": "concernRelations",
"mimeType": "application/pdf",
"price": 5.95,
"available": true,
"expectedTime": 60,
"productName": "directRelations",
"concernName": "Koninklijke Ahold Delhaize N.V."
}
]
}
},
"links": {
"self": "https://api.company.info/nl/organizations/official-documents/v1/?filter[organizationID]=33302047"
}
}Response Fields — data
data| Field | Type | Description |
|---|---|---|
id | string | The organization ID this discovery result is for. |
type | string | Always "documents". |
attributes.organizationID | string | The KVK number of the organization. |
attributes.branchID | string | The branch ID (if requested). |
attributes.date | string | ISO 8601 timestamp of when the availability was checked. |
attributes.documents | array | Array of available document variants. |
Response Fields — documents[]
documents[]| Field | Type | Description |
|---|---|---|
type | string | The document type (one of standardExtract, history, standardStatute, concernRelations, annualAccounts). |
mimeType | string | The available MIME type for this document (application/pdf, application/json, application/zip, or text/html). |
price | number | The price of the document (in EUR). |
available | boolean | Whether the document is currently available for ordering. |
expectedTime | integer | Expected delivery time in seconds. |
description | string | Human-readable description of the document. |
productName | string | Present for standardStatute, concernRelations, and annualAccounts. See Product Names for the full enum. |
productDate | string | Present for standardStatute and annualAccounts. Full date (2023-12-06) or year (2023). |
concernName | string | Present for concernRelations. The highest dossier name required when placing the order. |
maskedGDPR | boolean | Whether the document is masked for GDPR compliance. |
2. 📝 Place an Order
POST /nl/organizations/official-documents/v1/ordersPlace a new order for an official document.
Description
Creates a new document order for one of the supported document types
(standardExtract, history, standardStatute, concernRelations,
or annualAccounts). The order is processed asynchronously — the
response will include an order ID and a pending status. You must
poll the order status until it changes to done before downloading.
The required attributes vary per document type — see Document Types
for the per-type requirements and Product Names for
the allowed productName values.
⁉️ Request Parameters
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Content-Type | string | Required. application/json |
Request Body
The body must contain a data object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
data.type | string | Yes | Must be "orders". |
data.attributes.documentType | string | Yes | One of: standardExtract, history, standardStatute, concernRelations, annualAccounts. |
data.attributes.organizationID | string | Yes | The 8-digit KVK number. |
data.attributes.branchID | string | Conditional | The 12-digit branch ID. Not allowed for standardStatute, concernRelations, or annualAccounts. |
data.attributes.productName | string | Conditional | Required for standardStatute, concernRelations, and annualAccounts. See Product Names for the full enum. |
data.attributes.productDate | string | Conditional | Required for standardStatute (full date, e.g. 2023-12-06) and annualAccounts (4-digit year, e.g. 2023). |
data.attributes.concernName | string | Conditional | Required for concernRelations. The highest dossier name returned by the discovery endpoint. |
Example Request
curl -X POST "https://api.company.info/nl/organizations/official-documents/v1/orders" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "orders",
"attributes": {
"documentType": "standardExtract",
"organizationID": "33302047"
}
}
}'Example Response
{
"data": {
"id": "01HS0SZQECSKQ8NV20391MZ0R1",
"type": "orders",
"attributes": {
"documentType": "standardExtract",
"status": "pending",
"organizationID": "33302047",
"mimeTypes": [
"text/html",
"application/pdf",
"application/json"
],
"createdAt": "2024-03-15T11:19:39+01:00"
}
},
"links": {
"self": "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1"
}
}Response Fields — data
data| Field | Type | Description |
|---|---|---|
id | string | Unique identifier (ULID) for the order. |
type | string | Always "orders". |
attributes.documentType | string | The type of document ordered. |
attributes.status | string | Current status: pending, done, failed, or cancelled. |
attributes.organizationID | string | The KVK number. |
attributes.branchID | string | Present when the order was placed for a specific branch. |
attributes.productName | string | Present for standardStatute, concernRelations, and annualAccounts orders. |
attributes.productDate | string | Present for standardStatute and annualAccounts orders. |
attributes.concernName | string | Present for concernRelations orders. |
attributes.mimeTypes | []string | Available download formats. May be absent while the order is pending or failed. |
attributes.createdAt | string | ISO 8601 timestamp of when the order was created. |
links.self | string | Canonical URL to retrieve this order. |
3. 📋 List Orders
GET /nl/organizations/official-documents/v1/ordersRetrieve a paginated list of previously placed orders.
Description
Returns all orders matching the specified filters. Useful for finding
a previously placed order or auditing your order history.
⁉️ Request Parameters
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filter[organizationID] | string | No | Filter by 8-digit KVK number. |
filter[branchID] | string | No | Filter by 12-digit branch ID. |
filter[documentType] | string | No | Filter by document type (see Document Types). |
filter[status] | string | No | Filter by status: pending, done, failed, or cancelled. |
filter[date][from] | string | No | Filter by order date from (YYYY-MM-DD). |
filter[date][to] | string | No | Filter by order date to (YYYY-MM-DD). |
page[number] | integer | No | Page number (default: 1). |
page[size] | integer | No | Records per page (default: 10, maximum: 20). |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/orders?filter[status]=done&filter[organizationID]=33302047" \
-H "X-API-KEY: YOUR_API_KEY"Example Response
{
"data": [
{
"id": "01HS0SZQECSKQ8NV20391MZ0R1",
"type": "orders",
"attributes": {
"documentType": "standardExtract",
"status": "done",
"organizationID": "33302047",
"mimeTypes": [
"text/html",
"application/pdf",
"application/json"
],
"createdAt": "2024-03-15T11:19:39+01:00"
},
"links": {
"self": "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1"
}
}
],
"links": {
"first": "...?page[number]=1&page[size]=10",
"last": "...?page[number]=1&page[size]=10",
"self": "...?page[number]=1&page[size]=10"
},
"meta": {
"totalResults": 1,
"totalPages": 1
}
}4. 📄 Get a Single Order
GET /nl/organizations/official-documents/v1/orders/{order_id}Retrieve a specific order by its ID.
Description
Returns the full details of the specified order, including its current
status and processing history. Use this to poll order status until it
reaches done.
⁉️ Request Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | The ID of the order. |
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1" \
-H "X-API-KEY: YOUR_API_KEY"Example Response
{
"data": {
"id": "01HS0SZQECSKQ8NV20391MZ0R1",
"type": "orders",
"attributes": {
"documentType": "concernRelations",
"status": "done",
"organizationID": "33302047",
"productName": "directRelations",
"concernName": "Koninklijke Ahold Delhaize N.V.",
"mimeTypes": [
"text/html",
"application/pdf",
"application/json"
],
"createdAt": "2024-03-15T11:19:39+01:00"
}
},
"links": {
"self": "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1"
}
}Order Statuses
| Status | Description |
|---|---|
pending | The document is still being retrieved from the KVK. |
done | The document is ready for download. |
failed | An error occurred during processing. |
cancelled | The order was cancelled. |
5. 🔄 Retry a Failed Order Activity
POST /nl/organizations/official-documents/v1/orders/{order_id}Retry a specific activity on a failed order.
Description
If an order fails during the ordering or conversion step, you can
retry the failed activity without placing a new order. This is useful
for transient failures.
⁉️ Request Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | The ID of the order. |
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Content-Type | string | Required. application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
data.type | string | Yes | Must be "orders". |
data.attributes.activity | string | Yes | The activity to retry: "order" or "convert". |
Example Request
curl -X POST "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "orders",
"attributes": {
"activity": "convert"
}
}
}'Example Response
204 No Content — the activity has been retried successfully.
6. 📥 Download a Document (from Order)
GET /nl/organizations/official-documents/v1/orders/{order_id}/documentDownload the document associated with a completed order.
Description
Returns the document content in the format specified by the Accept
header. The order must have a status of done before the document can
be downloaded.
⁉️ Request Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | The ID of the order. |
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Accept | string | Required. The desired content type: application/pdf, application/json, application/zip, or text/html. |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1/document" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/pdf" \
--output document.pdfExample Response
The response body contains the document content in the requested format.
| Accept Header | Response Content |
|---|---|
application/pdf | Binary PDF file |
application/json | JSON representation of the document |
application/zip | ZIP archive containing the document files |
text/html | HTML representation of the document |
7. 📋 List Cached Documents
GET /nl/organizations/official-documents/v1/documentsRetrieve a paginated list of previously ordered documents available
in cache.
Description
Returns documents that have been previously ordered (by you or another
customer) and are available for immediate download. This allows you to
reuse existing documents without placing a new order and incurring
additional charges. Each document includes an upToDate flag indicating
whether it reflects the latest KVK data.
⁉️ Request Parameters
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filter[organizationID] | string | Yes | Filter by 8-digit KVK number. |
filter[branchID] | string | No | Filter by 12-digit branch ID. |
filter[type] | string | Yes | Filter by document type (see Document Types). |
filter[date][from] | string | No | Filter by document date from (YYYY-MM-DD). |
filter[date][to] | string | No | Filter by document date to (YYYY-MM-DD). |
page[number] | integer | No | Page number (default: 1). |
page[size] | integer | No | Records per page (default: 10, maximum: 20). |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/documents?filter[organizationID]=33302047&filter[type]=standardExtract" \
-H "X-API-KEY: YOUR_API_KEY"Example Response
{
"data": [
{
"id": "01HRCS13ZT1T5VGGNF1JRJAGKT",
"type": "documents",
"attributes": {
"type": "standardExtract",
"organizationID": "33302047",
"mimeTypes": [
"text/html",
"application/pdf",
"application/json"
],
"createdAt": "2024-03-15T11:20:15+01:00",
"upToDate": true
},
"links": {
"self": "https://api.company.info/nl/organizations/official-documents/v1/documents/01HRCS13ZT1T5VGGNF1JRJAGKT"
}
}
],
"links": {
"first": "...?page[number]=1&page[size]=10",
"last": "...?page[number]=1&page[size]=10",
"self": "...?page[number]=1&page[size]=10"
},
"meta": {
"totalResults": 1,
"totalPages": 1
}
}Response Fields — data[]
data[]| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the cached document. |
type | string | Always "documents". |
attributes.type | string | The type of document (see Document Types). |
attributes.organizationID | string | The KVK number. |
attributes.branchID | string | Present when the cached document is for a specific branch. |
attributes.productName | string | Present for product-scoped documents (standardStatute, concernRelations, annualAccounts). |
attributes.productDate | string | Present for standardStatute and annualAccounts. Full date or year. |
attributes.mimeTypes | string[] | Available download formats. |
attributes.createdAt | string | ISO 8601 timestamp of when the document was created. |
attributes.upToDate | boolean | Only present for standardExtract documents. Indicates whether the cached copy reflects the latest KVK data. |
links.self | string | Canonical URL to download this document. |
8. 📥 Download a Cached Document
GET /nl/organizations/official-documents/v1/documents/{document_id}Download a document directly from cache.
Description
Returns the document content in the format specified by the Accept
header. This allows downloading without placing a new order.
⁉️ Request Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
document_id | string | Yes | The ID of the document. |
Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | string | Your API key. Required if Authorization is not provided. |
Authorization | string | Bearer token (Bearer <token>). Required if X-API-KEY is not provided. |
Accept | string | Required. The desired content type: application/pdf, application/json, or text/html. |
Example Request
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/documents/01HRCS13ZT1T5VGGNF1JRJAGKT" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/pdf" \
--output cached_document.pdfExample Response
The response body contains the document content in the requested format
(same as Endpoint 6).
📑 Document Types
The API supports the following document types when placing an order,
listing cached documents, or filtering lists:
| Document Type | Description | Required Attributes | Optional Attributes |
|---|---|---|---|
standardExtract | Business Register Extract. | organizationID | branchID |
history | Trade register history for the organization. | organizationID | branchID |
standardStatute | Statute (articles of association) document for the organization. | organizationID, productName, productDate | — |
concernRelations | Concern-relations document showing the group structure of the organization. | organizationID, productName, concernName | — |
annualAccounts | Annual accounts for a given reporting year. | organizationID, productName, productDate (year) | — |
branchIDis not allowed forstandardStatute,concernRelations, orannualAccounts— these are only ordered at the organization level.
🏷️ Product Names
productName selects a specific product variant and is required for
standardStatute, concernRelations, and annualAccounts. The
allowed values are:
productName | Typically used with |
|---|---|
directRelations | concernRelations |
totalConcern | concernRelations |
deedOfIncorporation | standardStatute |
deedIncorporation | standardStatute |
amendmentOfArticlesOfAssociation | standardStatute |
deedOfMerger | standardStatute |
rectification | standardStatute |
deedOfDivision | standardStatute |
mostRecentArticlesOfAssociation | standardStatute |
mergerDemergerProposal | standardStatute |
demergerDeed | standardStatute |
latestArticlesOfAssociation | standardStatute |
articlesOfIncorporation | standardStatute |
articlesOfAssociation | standardStatute |
annualAccounts | annualAccounts |
groupAnnualAccounts408 | annualAccounts |
corporateIncomeTaxReport | annualAccounts |
provisionalAnnualAccounts | annualAccounts |
groupAnnualAccounts403 | annualAccounts |
Use the discovery endpoint to find
out which productName / productDate / concernName combinations
are actually available for a given organization before placing an
order.
📤 Supported Formats
Documents can be downloaded in the following formats via the Accept
header:
| MIME Type | Format | Description |
|---|---|---|
application/pdf | Portable Document Format (binary) | |
application/json | JSON | JSON representation of the document |
application/zip | ZIP | ZIP archive containing the document files |
text/html | HTML | HTML representation of the document |
Not all formats may be available for every document type. Checkthe
mimeTypesfield in the order or document response to see which
formats are supported.
🔢 Pagination
The API uses JSON:API-style pagination with meta and links
objects on list endpoints (GET /v1/orders and GET /v1/documents).
Request Parameters
| Parameter | Type | Description |
|---|---|---|
page[number] | integer | The page number you want to retrieve (1-based, default: 1). |
page[size] | integer | How many records per page (default: 10, maximum: 20). |
Response Fields
"meta": {
"totalResults": 150,
"totalPages": 15
},
"links": {
"first": "...?page[number]=1&page[size]=10",
"last": "...?page[number]=15&page[size]=10",
"self": "...?page[number]=2&page[size]=10",
"next": "...?page[number]=3&page[size]=10",
"prev": "...?page[number]=1&page[size]=10"
}- Use
links.nextuntil it no longer appears or until you have all
records. - Use
totalResultsandtotalPagesto build progress indicators or
pagination controls in your UI.
🔄 Typical Order Workflow
Here is a recommended workflow for ordering and downloading documents:
- Discover available documents (Endpoint 1) — check what is
available for the target organization. - Check cache first (Endpoint 7) — see if the document you need
has already been ordered and is available for immediate download. - Download from cache (Endpoint 8) — if found and
upToDateis
true, download directly and skip ordering. - Place an order (Endpoint 2) — if not cached or out of date,
place a new order. - Poll for completion (Endpoint 4) — periodically check the order
status until it isdone. - Download the document (Endpoint 6) — download in your preferred
format.
Example Polling Loop
# Poll every 10 seconds until status is "done"
curl -X GET "https://api.company.info/nl/organizations/official-documents/v1/orders/01HS0SZQECSKQ8NV20391MZ0R1" \
-H "X-API-KEY: YOUR_API_KEY"⚠️ Rate Limiting / Other Limitations
- Some environments may enforce rate limits per API key.
- Document ordering is subject to KVK processing times — the
expectedTimefield in the discovery response gives an estimate. - Wherever possible, check the cache before placing new orders to
avoid unnecessary charges.
⚠️ Error handling
All non-2xx responses follow the JSON:API error envelope:
{
"errors": [
{
"status": "423",
"code": "423",
"title": "failed on downloading document",
"detail": "the requested document is not ready yet"
}
]
}The three fields clients should pattern-match on are:
status— the HTTP status (as a string, duplicated from the response code).title— a short, stable label for the error class. All regular error
paths wrap the title with afailed onprefix (e.g.failed on validation,failed on authorization,failed on downloading document,failed on registering order). The one exception is
planned-maintenance 500s, which bypass the wrapper and use the
literal titleservice unavailablewith no prefix.detail— a human-readable sentence describing the specific
occurrence. This is the string most consumers want to show to end
users or log for triage.
Every response — success or error — also includes an
X-Correlation-Id header. Always include this value when you contact
Company.info support.
How to handle errors as a consumer
Use this decision tree before any custom per-endpoint logic:
| Status range | Default handling |
|---|---|
2xx | Success. |
400 | Do not retry. The request is wrong; fix it and resubmit. The one exception is the upstream-provider 400s (company not found, …) — see the table below for the ones that need Company.info support rather than a request change. |
401 | Do not retry. Fix credentials; obtain a new bearer token if the current one expired. |
403 | Do not retry. Contact Company.info support — your API key is not authorised for this operation. |
404 | Do not retry. Verify the order_id / document_id is correct and belongs to the authenticated customer. |
406 | Do not retry. Pick an Accept value from the mimeTypes array returned by the order / document response. |
423 | Retry — but first poll GET /v1/orders/{order_id} until its status changes. Wait at least a few seconds between polls. |
429 | Retry with back-off — honor any Retry-After header; otherwise wait and poll the order first. |
5xx | Retry with exponential back-off (e.g. 1 s, 2 s, 4 s, 8 s, max 30 s). If the error persists for more than a few minutes, open a support ticket with the X-Correlation-Id. Exception: title: "service unavailable" indicates planned maintenance — do not retry; check the status page linked in the detail. |
Complete error catalogue
The following table lists every error detail that this service
produces, grouped by HTTP status. "Source" indicates where the problem
originated:
- client — the request itself is wrong; fix the request.
- server — Official Documents service failed.
- provider — the upstream data provider rejected or failed
the lookup. - platform — planned maintenance or configuration state.
400 Bad Request
400 Bad Request| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on validation | (binding message, e.g. invalid character '}' …) | Request body is not valid JSON or a required field is missing | No | Fix the body | client |
failed on validation | ordering: invalid organization id | organizationID is not 8 digits | No | Supply a valid 8-digit Organization ID | client |
failed on validation | ordering: invalid branch id | branchID is not 12 digits | No | Supply a valid 12-digit branch ID (or omit) | client |
failed on validation | ordering: invalid document type | documentType not in the supported enum | No | Use one of the enum values (see Document Types) | client |
failed on validation | ordering: there is no statute document for branches | branchID combined with a statute documentType | No | Omit branchID for statute orders | client |
failed on validation | ordering: there is no concern relations for branches | branchID combined with concernRelations | No | Omit branchID | client |
failed on validation | ordering: there is no annual accounts for branches | branchID combined with annualAccounts | No | Omit branchID | client |
failed on validation | ordering: please enter the product name | productName missing for a type that requires it | No | Supply productName from the Product Names list | client |
failed on validation | ordering: please enter a valid product name | productName not in the dictionary | No | Use an allowed value | client |
failed on validation | ordering: please enter the product date | productDate missing for annualAccounts | No | Supply a 4-digit year (e.g. 2023) | client |
failed on validation | ordering: please enter a valid product date | productDate format wrong | No | Use YYYY-MM-DD for standardStatute, YYYY for annualAccounts | client |
failed on validation | ordering: please enter the concern name | concernName missing for concernRelations | No | Call discovery first and supply the returned concernName | client |
failed on validation | ordering: invalid activity | activity not one of order / convert | No | Use a valid activity name | client |
failed on validation | ordering: invalid mime type | Accept missing or value not supported (order document download) | No | Set Accept to a value from mimeTypes | client |
failed on validation | documents: invalid mime type | Accept missing or not a known mime type (cached document download via GET /v1/documents/{document_id}) | No | Set Accept to a configured mime type; if the value is known but not available for this document you'll get a 406 instead | client |
failed on validation | ordering: the organization id is required | Discovery called without filter[organizationID] | No | Add the filter | client |
failed on validation | documents: organizationID filter is required | List documents called without filter[organizationID] | No | Add the filter | client |
failed on validation | documents: type filter is required | List documents called without filter[type] | No | Add the filter | client |
failed on validation | documents: organizationID filter must contain one value | Multiple organizationID values supplied | No | Supply a single value | client |
failed on validation | invalid filter name | Unknown filter key | No | Remove or rename the filter | client |
failed on validation | invalid <field> (e.g. invalid status, invalid documentType) | Filter value does not match the validator | No | Use a value from the enum documented for that filter | client |
failed on validation | pagination: invalid page size | page[size] is non-positive or exceeds the maximum (20) | No | Use 1..20 | client |
failed on validation | pagination: invalid page number | page[number] is non-positive | No | Use >= 1 | client |
failed on validation | the document type is not supported for this company | Combination not returned by the discovery endpoint for this organization | No | Call GET /v1/ first and order from the result | server |
failed on validation | company not found | Organization/Branch does not exist | No | Verify the organizationID | provider |
failed on validation | more than one company found | Provider resolves ambiguously | No | Add a branchID or contact support | provider |
failed on validation | invalid document type (upstream) | Provider rejected the document type for this dossier | No | Call discovery and pick from the returned types | provider |
failed on converting document | the document has been converted successfully | activity=convert called when conversion already succeeded | No | Nothing to retry; the document is already available | server |
401 Unauthorized
401 Unauthorized| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on authorization | (binding message, e.g. Field validation for 'ApiKey' failed on the 'required' tag) | Missing X-API-KEY / Authorization header, or invalid format | No | Supply valid credentials and resubmit | client |
403 Forbidden
403 Forbidden| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on authorization | you are not allowed to order this type of document | Policy denies the API key for the requested documentType | No | Contact Company.info support to review API-key permissions | server (policy) |
404 Not Found
404 Not Found| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on getting order | the requested order was not found | order_id does not exist, or does not belong to the authenticated customer | No | Verify the ID and that you're using the correct API key | server |
failed on running the activity | the requested order not found | Same as above, during activity retry | No | Same as above | server |
failed on downloading document | the requested document not found | order_id / document_id does not exist | No | Verify the ID | server |
406 Not Acceptable
406 Not Acceptable| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on downloading document | the requested content-type is not supported | Accept value not in the order's mimeTypes | No | Pick a value from the mimeTypes array | client |
423 Locked
423 Locked| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on downloading document | the requested document is not ready yet | Order status is not yet done | Yes — poll | Poll GET /v1/orders/{order_id} until status=done, then retry | server |
failed on converting document | the requested document is not ready yet | activity=convert called before order is done | Yes — poll | Wait for ordering to complete | server |
failed on ordering document | the requested order has not failed | activity=order called on an order that did not fail | No | Only retry failed orders | server |
429 Too Many Requests
429 Too Many Requests| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on running the activity | there is an unfinished process for this order | A concurrent retry is still running | Yes — back-off | Wait, poll order status; retry only if still needed | server |
500 Internal Server Error
500 Internal Server Error| Title | detail | Trigger | Retryable? | Caller action | Source |
|---|---|---|---|---|---|
failed on registering order | an error occurred on registering the order | Server side error during order creation | Yes — back-off | Retry; if persistent, open a ticket with X-Correlation-Id | server |
failed on getting order | an error occurred on getting the order | Server side error during lookup | Yes — back-off | Retry | server |
failed on getting orders list / failed on getting order list | an error occurred on getting the order list / … while getting the orders list | Server side error | Yes — back-off | Retry | server |
failed on getting documents list | an error occurred on getting the documents list | Server side error | Yes — back-off | Retry | server |
failed on getting latest changes | an error occurred on getting the latest changes | Server side error | Yes — back-off | Retry | server |
failed on getting supported documents | an error occurred on getting the supported documents | Server side error during discovery | Yes — back-off | Retry | server |
failed on running the activity | an error occurred on running the activity | Server side error during retry | Yes — back-off | Retry | server |
failed on converting document | an error occurred on converting the document | Server side error during convert | Yes — back-off | Retry | server |
failed on ordering document | an error occurred on ordering the document | Server side error during reorder | Yes — back-off | Retry | server |
failed on downloading document | an error occurred on downloading the document (or … the documents) | Server side error | Yes — back-off | Retry; this is the typical "document could not be retrieved" case | server |
failed on getting document | an error occurred on getting the document | Server side error during download | Yes — back-off | Retry; if persistent, re-run GET /v1/documents | server |
🛠️ Try it yourself!
Ready to try it out? Head over to our API reference where you can easily test the API yourself.
From there, you can:
- Explore endpoints
- Play with example requests and responses
- See schemas and parameter details
- Use your own API key to test real responses
🔤 Glossary
| Term | Definition |
|---|---|
| Order | A request to retrieve an official document from the KVK. Orders are processed asynchronously. |
| Document | A completed, cached official document available for download without placing a new order. |
| Organization ID | Official 8-digit identifier (KVK number) issued by the Dutch Chamber of Commerce (KvK). |
| Branch ID | A 12-digit identifier for a specific branch of an organization. |
| Document Type | The kind of official document: standardExtract, history, standardStatute, concernRelations, or annualAccounts. |
| Product Name | A specific product variant within a document type (e.g. directRelations for concernRelations). See Product Names table. |
| Concern Name | The highest dossier name identifying the group a concernRelations document is ordered for. |
| ULID | Universally Unique Lexicographically Sortable Identifier — used for order IDs. |
| JSON:API | A specification for building APIs in JSON with consistent structure for data, included, meta, links, and errors. |
| MIME Type | The format of the document content: application/pdf, application/json, application/zip or text/html. |
| Cache | Previously ordered documents stored for reuse. Check the upToDate flag to determine freshness. |
Processing History Titles
| Title | Description |
|---|---|
orderIsProcessing | The order is currently being processed. |
orderIsDone | The order has completed successfully. |
conversionFailure | The document conversion step failed. |
timeout | The order timed out waiting for a response from KVK. |
companyNotFound | The specified company was not found in the KVK register. |
documentTypeNotFound | The requested document type is not available. |
notAvailable | The document is not available for the specified organization. |
Updated 17 days ago
