# NZ Data API – NZBN Validation

> NZ Data API – NZBN Validation 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-17).

Validates a New Zealand Business Number (NZBN) for correct format and checksum

## Facts

- Endpoint: GET https://nzdata.zakwins.workers.dev/nz/validate/nzbn?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nz-data-api-nzbn-validation-8a1336ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Oh-23PNtLo5rgvj_WkmN5

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-data-api-nzbn-validation-8a1336ed
```

Example prompt: Can you check whether NZBN 9429041096517 is a valid New Zealand Business Number?

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.001 USDC) programmatic check of a New Zealand Business Number without querying the full NZBN registry. Ideal for form validation, KYC pre-screening, or fraud detection pipelines where a format/checksum check is sufficient before deeper lookup.

## Known failure modes

- Missing 'number' query parameter returns an error
- Malformed NZBN (wrong length, non-numeric) returns invalid result
- Network or worker timeout returns a 5xx error
- Invalid payment / x402 handshake failure returns 402 Payment Required

## 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 whether the supplied NZBN is valid, including format correctness and checksum verification. Likely includes a boolean validity flag and may include a reason or error detail if the number is invalid.

## 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-data-api-nzbn-validation-8a1336ed/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)
