Documentatie / Antwoordformaat

Antwoordformaat

Elk endpoint geeft dezelfde JSON-envelope terug, zodat je één parser voor de hele API schrijft.

De envelope#

{
  "success": true,
  "data": {
    "enterpriseNumber": "0403.170.701",
    "status": "AC",
    "denomination": "Anheuser-Busch InBev"
  },
  "error": null,
  "timestamp": "2026-06-05T09:00:00.000Z",
  "meta": null
}

Bij een fout#

success is false, data is null en error beschrijft het probleem. De HTTP-status draagt de categorie.

{
  "success": false,
  "data": null,
  "error": "Enterprise not found",
  "timestamp": "2026-06-05T09:00:00.000Z",
  "meta": null
}
ℹ️

Vertak eerst op de HTTP-status, lees daarna error voor het bericht. Zie Fouten.