# UAE TRN Validator (code402)

> UAE TRN Validator (code402) 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).

Performs offline deterministic validation of UAE Tax Registration Numbers (TRN), returning validity, type, authority, and normalized form, paid per call via x402 micropayment.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/uae-trn-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/uae-trn-validator-code402-d167b171
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-c8cHQqQtDzvpHSUasFhU

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 uae-trn-validator-code402-d167b171 -d '<json body>'
```

Example prompt: Can you check whether the UAE Tax Registration Number 100123456700003 is valid and tell me what type it is and which authority issued it?

## When to prefer this

Choose this endpoint when you need a fast, cheap, offline deterministic check of a UAE Tax Registration Number with no external data lookups or ML. It is ideal for invoice validation workflows, supplier onboarding, and compliance pre-checks where you want a cryptographically-signed receipt and pay only $0.005 USDC per call via x402. Prefer it over live registry lookups when you only need format/checksum correctness, not live status confirmation.

## Known failure modes

- Invalid or malformed TRN returns valid:false with a reason explaining the failure
- Missing input TRN field returns a 400-level error
- Payment not provided or rejected by x402 returns a 402 Payment Required response
- TRN format unrecognizable to UAE schema returns valid:false with scope indicating format-only check

## 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 TRN passes validation), 'scope' (whether check was checksum-verifiable or format-only), 'reason' (human-readable explanation), 'country' (UAE), 'trn_type' (type of tax registration), 'authority' (issuing authority), and 'normalized' (canonical form of the TRN). No external calls are made; all checks are deterministic and offline.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "trn"
   ],
   "properties": {
    "trn": {
     "type": "string",
     "description": "15-digit UAE TRN string (starts with 100)"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uae-trn-validator-code402-d167b171/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)
