# NZ Bank Account Number Validator

> NZ Bank Account Number Validator is a paid API for AI agents from nzdata.zakwins.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Validates a New Zealand bank account number for correct format and checksum

## Facts

- Endpoint: GET https://nzdata.zakwins.workers.dev/nz/validate/bank?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nz-bank-account-number-validator-47a57ddb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ymqkpyt7kf8PKkVwbL23-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nz-bank-account-number-validator-47a57ddb
```

Example prompt: Can you check if this New Zealand bank account number is valid: 01-0142-0000035-00?

## When to prefer this

Use this endpoint when you need to validate a New Zealand bank account number format and checksum before processing a payment or storing account details. It is a cheap ($0.001 USDC), pay-per-call service requiring no subscription. Prefer this over building your own NZ bank account validation logic when operating in a New Zealand financial context.

## Known failure modes

- Missing 'number' query parameter returns an error
- Malformed or non-NZ-format account number may return invalid with no detailed reason
- Empty response example in schema means exact error structure is unknown
- Service may be unavailable if the upstream Cloudflare Worker is down
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Pay-per-call New Zealand utilities via x402 (USDC on Base). Computed from statute (Holidays Act 2003, Te Kāhui o Matariki Public Holiday Act 2022) and published government dates; provided as-is with no warranty. Regional anniversary observance can vary locally. Verify critical deadlines with the relevant agency.

## Output

Returns a JSON object indicating whether the provided New Zealand bank account number is valid, likely including a validity flag and possibly parsed components such as bank code, branch, account number, and suffix.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "number": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nz-bank-account-number-validator-47a57ddb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nzdata.zakwins.workers.dev](https://www.zero.xyz/host/nzdata.zakwins.workers.dev/llms.txt)
