# Toll402 EIN Validator

> Toll402 EIN 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-15).

Validates a US Employer Identification Number (EIN) using offline checksum logic and returns whether it is structurally valid

## Facts

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

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-ein-validator-ece6fe6a -d '<json body>'
```

Example prompt: Can you check if this EIN is valid: 12-3456789?

## When to prefer this

Use this endpoint when you need a fast, cheap, offline structural validation of a US EIN without requiring IRS database access. Ideal for pre-submission data quality checks, vendor onboarding pipelines, and form validation flows where a real IRS lookup is overkill or unavailable. At $0.001 per call with no signup required, it is well-suited for high-volume batch validation within an agent workflow.

## Known failure modes

- Malformed input (non-numeric characters beyond the hyphen) may return ok: false
- EINs that are correctly formatted but not actually assigned by the IRS will still return ok: true — this is structural validation only, not IRS database lookup
- Missing required 'ein' field in body returns an error
- Network or payment failure via x402 results in no response

## 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 EIN is structurally valid. A true value means the EIN passes format and checksum validation; false means it 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "ein"
     ],
     "properties": {
      "ein": {
       "type": "string",
       "description": "EIN string, with or without hyphen, e.g. 12-3456789 or 123456789"
      }
     },
     "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-ein-validator-ece6fe6a/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)
