{
  "id": "nz_bankaccount",
  "kind": "datatype",
  "status": "draft",
  "name": "New Zealand bank account number",
  "doc": "Bank account number in New Zealand: two digits for the bank, four for the branch, seven for the account base number and two or three for the account suffix, usually separated by hyphens. The bank and branch determine the check algorithm.",
  "parent": "bankaccount",
  "is_pii": false,
  "categories": [
    "finances"
  ],
  "country": [
    "NZ"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^\\d{2}[- ]?\\d{4}[- ]?\\d{7}[- ]?\\d{2,3}$",
  "examples": [
    {
      "value": "02-0552-0410366-070",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "02-0208-0649925-077",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "02055204103660707",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:BankAccount",
    "purview": "New Zealand bank account number",
    "stdnum": "nz.bankaccount"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/New_Zealand_bank_account_number"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.nz.bankaccount.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_nz_bankaccount.html"
    }
  ],
  "detected_by": {
    "tools": [
      "azureailanguage",
      "dataprep",
      "microsoftpurview",
      "pythonstdnum",
      "snowflake"
    ]
  },
  "quality": {
    "score": 95,
    "missing": [
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/NZ/finances/nz_bankaccount.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/NZ/finances/nz_bankaccount.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/NZ/finances/nz_bankaccount.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/nz_bankaccount",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/nz_bankaccount.json"
  }
}