# code402 USCC Validator

> code402 USCC 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 a Unified Social Credit Code (USCC) — the Chinese business identifier — using offline deterministic checksum logic, returning validity, reason, and normalized form.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/uscc-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-uscc-validator-259a0b49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lxsIXy2bIQcx1i7LpJenI

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-uscc-validator-259a0b49 -d '<json body>'
```

Example prompt: Can you check whether this Chinese company's Unified Social Credit Code is valid: 91310000MA1FL7LU3W?

## When to prefer this

Use this endpoint when you need a fast, offline, deterministic validation of a Chinese Unified Social Credit Code (USCC) without any ML, scraping, or external registry lookup. Ideal for KYB pipelines, compliance screening, and data-quality checks on Chinese entity identifiers. Prefer this over full registry lookups when you only need to confirm the identifier is structurally valid and properly formed, and want a cheap ($0.005), cryptographically receipted, non-custodial call.

## Known failure modes

- Malformed or empty input returns valid=false with a descriptive reason
- Non-USCC identifiers submitted to this endpoint will return invalid with a format mismatch reason
- Payment failure via x402 will block the call (first 3 calls/day are free)
- Network errors to the endpoint return HTTP-level failures, not a JSON body

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

Returns a JSON object with: `valid` (boolean indicating whether the USCC passes checksum/format rules), `reason` (human-readable explanation such as 'checksum valid' or specific failure cause), `normalized` (standardized form of the identifier), `country` (jurisdiction, typically CN), `scope` (indicating whether the check was checksum-verifiable or format-only), and `tool` (identifier for the check performed).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "uscc"
   ],
   "properties": {
    "uscc": {
     "type": "string",
     "description": "18-character Chinese Unified Social Credit Code (e.g. 91330100799655058B)."
    }
   }
  }
 }
}
```

## 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-uscc-validator-259a0b49/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)
