---
id: "nz_bankaccount"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["finances"]
country: ["NZ"]
langs: ["en"]
quality: 95
url: "http://registry.apicrafter.io/datatype/nz_bankaccount"
---

# New Zealand bank account number (`nz_bankaccount`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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 datatype: `bankaccount`
- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: New Zealand (NZ)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{2}[- ]?\d{4}[- ]?\d{7}[- ]?\d{2,3}$
```

## Examples

- `02-0552-0410366-070` — Synthetic number with a valid check digit
- `02-0208-0649925-077` — Synthetic number with a valid check digit
- `02055204103660707` (invalid example) — One character too many

## Mappings

- dpv: `pd:BankAccount`
- purview: `New Zealand bank account number`
- stdnum: `nz.bankaccount`

## Supported by tools

- `azureailanguage`
- `dataprep`
- `microsoftpurview`
- `pythonstdnum`
- `snowflake`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/New_Zealand_bank_account_number>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.nz.bankaccount.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_nz_bankaccount.html>

## Quality

Score 95/100. Missing: translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/nz_bankaccount.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/NZ/finances/nz_bankaccount.yaml>
