# AgentStall ZA – South African ID Number Validator

> AgentStall ZA – South African ID Number Validator is a paid API for AI agents from agentstall.nilesh-b54.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Validates a 13-digit South African ID number and decodes embedded demographic data including gender, date of birth, age, and citizenship status

## Facts

- Endpoint: GET https://agentstall.nilesh-b54.workers.dev/v1/validate-id?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstall-za-south-african-id-number-validator-e345a3c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N5gsqpyVVkmbUhCuIcakn

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 agentstall-za-south-african-id-number-validator-e345a3c4
```

Example prompt: Can you check whether the South African ID number 8001015009087 is valid, and tell me what gender, date of birth, and citizenship status it encodes?

## When to prefer this

Use this endpoint when you need to validate and decode a South African 13-digit ID number specifically — it applies the SA government's Luhn algorithm and parses the embedded date-of-birth, gender, and citizenship fields. Prefer it over generic checksum validators because it returns decoded semantic fields meaningful for KYC, compliance, and eligibility checks in a South African context.

## Known failure modes

- ID number fewer or greater than 13 digits returns validation failure or error
- Invalid Luhn checksum returns valid:false with no decoded block
- Missing 'id' query parameter returns 402 or 400 error
- Unpaid call (no x402 payment header) returns HTTP 402 with PAYMENT-REQUIRED header
- Non-numeric characters in ID string may cause parse error

## How this service works

South African ID number validation: checks a 13-digit SA ID number (date of birth, citizenship digit and Luhn checksum) and decodes date of birth, age, gender and citizenship status. Structural check only, with no Home Affairs lookup; the number is not stored. Useful for KYC and onboarding forms and for catching typos.

## Output

A JSON object with a 'valid' boolean indicating whether the ID number passes the Luhn check and structural validation, plus a 'decoded' object containing gender (male/female), dateOfBirth (YYYY-MM-DD), ageYears (integer), and citizenship ('SA citizen' or 'permanent resident') if valid.

## 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",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "13-digit SA ID number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "decoded": {
   "gender": "male",
   "ageYears": 46,
   "citizenship": "SA citizen",
   "dateOfBirth": "1980-01-01"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstall-za-south-african-id-number-validator-e345a3c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstall.nilesh-b54.workers.dev](https://www.zero.xyz/host/agentstall.nilesh-b54.workers.dev/llms.txt)
