# KRA PIN Kenya Validator

> KRA PIN Kenya Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Validates a Kenya Revenue Authority (KRA) Personal Identification Number (PIN) for correctness and authenticity

## Facts

- Endpoint: POST https://toll402.dev/v1/t/kra_pin_ke_validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kra-pin-kenya-validator-d812592e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ytd-FQWAkO5ZIknw3mtWP

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 kra-pin-kenya-validator-d812592e -d '<json body>'
```

Example prompt: Can you check whether the KRA PIN A123456789Z is valid and registered with the Kenya Revenue Authority?

## When to prefer this

Use this endpoint when you need to programmatically verify Kenyan KRA PINs during KYC, supplier onboarding, invoice validation, or any compliance workflow involving Kenyan taxpayers or businesses. It is ideal for AI agents operating in Kenya's fintech, logistics, or HR space where tax ID verification is mandatory. Prefer this over manual lookups when processing multiple entities or automating due diligence.

## Known failure modes

- Invalid PIN format returns ok: false
- Non-existent or unregistered PIN returns ok: false
- Empty or missing PIN field causes a 400-level error
- KRA authority service unavailability may cause timeouts or 5xx errors
- Malformed request body (wrong bodyType) causes parsing errors

## 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

A JSON object with an 'ok' boolean field indicating whether the provided KRA PIN is valid. A true value confirms the PIN is properly formatted and registered; false indicates it is invalid or unrecognized.

## 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": [
      "pin"
     ],
     "properties": {
      "pin": {
       "type": "string",
       "description": "KRA PIN to validate, e.g. A123456789Z"
      }
     }
    },
    "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/kra-pin-kenya-validator-d812592e/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)
