# code402 IFSC Code Validator

> code402 IFSC Code Validator is a paid API for AI agents from hcrb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Validates Indian Financial System Code (IFSC) identifiers using offline deterministic format checks, returning validity, reason, and normalized form.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/ifsc-check/call?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code402-ifsc-code-validator-7269fe89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NfrnVvbxNyXbiBTkrbWUz

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 code402-ifsc-code-validator-7269fe89 -d '<json body>'
```

Example prompt: Can you check whether the IFSC code SBIN0001234 is valid before I submit this bank transfer?

## When to prefer this

Choose this endpoint when you need a fast, cheap, offline, deterministic format check on an IFSC code with no dependency on external bank registries or ML models. It is ideal for pre-validation in payment pipelines, KYC flows, or data entry sanitization where you want a sub-cent, privacy-preserving check without sending data to a third-party registry.

## Known failure modes

- Malformed or empty input returns valid:false with a descriptive reason
- IFSC codes that pass format but belong to non-existent branches cannot be detected (offline check only)
- Payment failure via x402 if USDC balance is insufficient (after 3 free daily calls)
- Network timeout if the endpoint is temporarily unreachable

## How this service works

Offline deterministic checks (no ML, no scraping) for business identifiers and rental due-diligence, paid per call via x402 (gasless EIP-3009 USDC on Base). Checksum-verifiable (IBAN, LEI, VAT, ABA, ISBN, SEDOL…) vs format-only (EIN, IFSC, SWIFT/BIC…) — every response returns a scope field. Non-custodial, signed receipts. First 3 calls/day free.

## Output

A JSON object with a boolean 'valid' field, a 'reason' string explaining the result, a 'scope' field indicating whether the check was checksum-verifiable or format-only, a 'normalized' form of the code, and a 'country' field. For IFSC, scope will indicate format-only since IFSC does not have a public checksum algorithm.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "ifsc"
   ],
   "properties": {
    "ifsc": {
     "type": "string",
     "description": "11-character Indian Financial System Code."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "valid",
   "reason"
  ],
  "properties": {
   "tool": {
    "type": "string"
   },
   "scope": {
    "type": "string"
   },
   "valid": {
    "type": "boolean"
   },
   "reason": {
    "type": "string"
   },
   "country": {
    "type": "string"
   },
   "normalized": {
    "type": "string"
   }
  }
 },
 "example": {
  "valid": true,
  "reason": "checksum valid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/code402-ifsc-code-validator-7269fe89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
