# Toll402 Romanian CUI Validator

> Toll402 Romanian CUI 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-14).

Validates a Romanian CUI (company tax ID) using offline checksum verification with weighted digit algorithm

## Facts

- Endpoint: POST https://toll402.dev/v1/t/cui_ro_validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-romanian-cui-validator-967c663f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JqMbfVreRV8v9WX605JaJ

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-romanian-cui-validator-967c663f -d '<json body>'
```

Example prompt: Can you check if the Romanian company CUI 'RO18547290' is valid?

## When to prefer this

Choose this endpoint when you need fast, offline, deterministic validation of Romanian CUI numbers without making external lookups to Romanian government databases. Ideal for form validation, batch data cleaning, or pre-screening before expensive live lookups. Use the sibling business-verification endpoint if you also need to confirm the company is actively registered.

## Known failure modes

- CUI contains non-numeric characters after prefix stripping
- CUI is fewer than 2 or more than 9 digits
- Missing required 'cui' field in request body
- Checksum mismatch returns invalid result (not an error, but a failed validation)

## How this service works

Offline validator for a Romanian CUI (company tax ID). Strips an optional 'RO' prefix, applies weights 7-5-3-2-1-7-3-2 to the digits preceding the check digit (right-to-left), sums the weighted products, multiplies by 10, takes mod 11 (mapping a remainder of 10 to 0), and compares the result to the supplied check digit.

## Output

Returns a validation result indicating whether the supplied Romanian CUI passes the weighted checksum algorithm — strips any 'RO' prefix, applies weights 7-5-3-2-1-7-3-2, multiplies sum by 10, takes mod 11, and confirms the check digit matches.

## 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": [
      "cui"
     ],
     "properties": {
      "cui": {
       "type": "string",
       "description": "CUI, optionally prefixed with RO, 2-9 digits"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-romanian-cui-validator-967c663f/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)
