# Toll402 VKN Validator

> Toll402 VKN 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 Danish VAT registration number (CVR/VKN) offline, checking format correctness

## Facts

- Endpoint: POST https://toll402.dev/v1/t/vkn_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-vkn-validator-1f2cde2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7FiwsvykwU9jqM7edVgDl

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-vkn-validator-1f2cde2e -d '<json body>'
```

Example prompt: Can you check whether this Danish VKN is valid: 12 34 56 78?

## When to prefer this

Choose this endpoint when you need fast, free-of-external-dependency offline validation of a Danish VKN (CVR) number format — for example, before submitting invoices, onboarding Danish business partners, or cleaning up CRM data. It accepts numbers with spaces or dashes, making it robust for user-entered data. Prefer it over manual regex checks or full government API lookups when you only need format verification.

## Known failure modes

- Malformed input (non-string or missing vkn field) returns an error
- VKN with invalid checksum or wrong digit count returns ok: false
- Network or gateway errors may return HTTP 5xx

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

Returns a JSON object with an 'ok' boolean field indicating whether the provided VKN string is a validly formatted Danish VAT registration number. No network lookup is performed — this is a pure offline format/checksum validation.

## 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": [
      "vkn"
     ],
     "properties": {
      "vkn": {
       "type": "string",
       "description": "VKN string, optionally with spaces or dashes"
      }
     },
     "additionalProperties": false
    },
    "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/toll402-vkn-validator-1f2cde2e/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)
