{
  "id": 10407604,
  "title": "Validate Portuguese VAT Numbers (NIF) in Node.js",
  "url": "https://urgent.news/2026/09/28/validate-portuguese-vat-numbers-nif-in-node-js",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-28T09:00:47.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/iurii_rogulia/validate-portuguese-vat-numbers-nif-in-nodejs-3i86"
  },
  "original_language": "en",
  "account": "Portugal issues a 9-digit NIF as its National Tax Identification Number, which is also the holder's VAT number. This NIF has no separate sequence, unlike some other countries. The format of a Portuguese VAT number is a simple PT followed by 9 digits with no separators or letters. The 9th digit serves as a check digit calculated through a mod-11 algorithm. The Portuguese VAT number structure is unique and does not split into separate entity-specific and VAT-specific parts.",
  "summary": "Originally published at vatnode.dev . The version on vatnode.dev is the canonical source — refer to it for the latest content. Portugal issues one 9-digit body under the PT prefix, and that body is also the holder’s national NIF – there’s no separate VAT-specific sequence to keep in sync. The part worth getting right in code is the mod-11 check digit and, more importantly, what to do when VIES PT…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}