# Toll402 NSS Validator

> Toll402 NSS Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates an 11-digit Mexican NSS (Número de Seguridad Social) number using offline checksum rules

## Facts

- Endpoint: POST https://toll402.dev/v1/t/nss_validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-nss-validator-e817aff2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9vImn4sMRxgFn5r3UHr56

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 toll402-nss-validator-e817aff2 -d '<json body>'
```

Example prompt: Can you check whether the Mexican NSS number 12345678901 is valid?

## When to prefer this

Choose this endpoint when you need a fast, cheap, offline validation of a Mexican NSS number without calling IMSS systems. It's ideal for pre-submission checks in HR onboarding, payroll, or form validation flows where you want to catch formatting and checksum errors before any real-world registration attempt. Prefer this over full IMSS API calls when you only need structural validity.

## Known failure modes

- NSS is not exactly 11 digits — returns ok: false
- NSS contains non-numeric characters — validation fails
- Checksum digit does not match — returns ok: false
- Missing required 'nss' field in body — request rejected with schema error
- Payment failure via x402 — 402 response before processing

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the provided 11-digit NSS number passes offline format and checksum validation rules.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "nss"
     ],
     "properties": {
      "nss": {
       "type": "string",
       "description": "11-digit NSS, digits only"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-nss-validator-e817aff2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
