{
  "id": 23100514,
  "title": "Validate Danish VAT Numbers (CVR) in Node.js",
  "url": "https://urgent.news/2026/12/02/validate-danish-vat-numbers-cvr-in-node-js",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-02T10:00:53.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/iurii_rogulia/validate-danish-vat-numbers-cvr-in-nodejs-2pjc"
  },
  "original_language": null,
  "account": "A Danish VAT number, also known as CVR (Central Business Register), begins with the prefix DK followed by 8 digits. The VATNode API in Node.js allows for the validation of this format, pattern, and a mod-11 check for typos. The API does not perform the mod-11 check, so it is recommended to do so on your side to catch any mistyped digits before sending a request to the VIES service.\n\nThe example provided demonstrates normalising a Danish VAT ID, checking if it matches the pattern, calculating the weighted sum for the mod-11 check, and finally making a request to the VATNode API with a sample VAT ID.",
  "summary": "Originally published at vatnode.dev . The version on vatnode.dev is the canonical source — refer to it for the latest content. A Danish VAT number is DK followed by 8 digits, and in the usual case those digits are the business’s CVR number. Check the format, run the mod-11 check as a typo hint, then let VIES decide, because Denmark has no national fallback when the VIES node is down. This post…",
  "summary_source": "publisher",
  "key_points": [
    "Danish VAT numbers start with \"DK\" followed by 8 digits",
    "VATNode API validates format, pattern, and mod-11 check in Node.js",
    "Mod-11 check recommended before sending request to VIES service"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}