{
  "id": "plnip",
  "kind": "datatype",
  "status": "draft",
  "name": "Polish tax identification number (NIP)",
  "doc": "Numer identyfikacji podatkowej, the 10-digit tax identification number in Poland. Businesses, including sole traders, use it in tax matters; since September 2011 individuals without a business use their PESEL number instead. With the PL prefix it is the EU VAT number. Older documents group the digits with hyphens, 3-3-2-2 for individuals and 3-2-2-3 for companies. The last digit is a weighted modulo 11 check digit.",
  "parent": "vatin",
  "is_pii": true,
  "categories": [
    "finances"
  ],
  "country": [
    "PL"
  ],
  "langs": [
    "pl"
  ],
  "classification": "identifier",
  "regexp": "^(?:PL[ -]?)?(?:\\d{10}|\\d{3}-\\d{3}-\\d{2}-\\d{2}|\\d{3}-\\d{2}-\\d{2}-\\d{3})$",
  "checksum": "pl_nip",
  "examples": [
    {
      "value": "PL8567346215",
      "description": "python-stdnum reference value in the EU form",
      "valid": true
    },
    {
      "value": "856-734-62-15",
      "description": "The same number with hyphens",
      "valid": true
    },
    {
      "value": "PL8567346216",
      "description": "Check digit does not match",
      "valid": false
    },
    {
      "value": "85673462",
      "description": "Two digits short",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "IDENTITY.VAT_PL",
    "orgid": "PL-NIP",
    "schema_org": [
      "taxID",
      "vatID"
    ],
    "stdnum": "pl.nip"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://pl.wikipedia.org/wiki/Numer_identyfikacji_podatkowej"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pl.nip.html"
    }
  ],
  "translations": {
    "pl": {
      "name": "Numer identyfikacji podatkowej (NIP)"
    }
  },
  "detected_by": {
    "tools": [
      "awsglue",
      "dataprep",
      "fta",
      "metacrafter",
      "pythonstdnum",
      "snowflake"
    ],
    "metacrafter_rules": [
      {
        "rule": "plnipfield",
        "type": "field",
        "match": "text",
        "file": "pl/pl_finances.yaml"
      },
      {
        "rule": "plnipvalue",
        "type": "data",
        "match": "ppr",
        "file": "pl/pl_finances.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/PL/finances/plnip.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/PL/finances/plnip.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PL/finances/plnip.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/plnip",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/plnip.json"
  }
}