# Swedish Identifier Validator (personnummer, orgnr, bankgiro, OCR)

> Swedish Identifier Validator (personnummer, orgnr, bankgiro, OCR) is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Validates and normalizes Swedish identifiers including personnummer, samordningsnummer, organisation numbers, bankgiro, plusgiro, and OCR numbers, returning validity, normalized form, and legal entity metadata.

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/se/validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swedish-identifier-validator-personnummer-orgnr-bankgiro-ocr-9b337ba4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h_1kKUgrZ-cNRx-6INpUh

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 swedish-identifier-validator-personnummer-orgnr-bankgiro-ocr-9b337ba4
```

Example prompt: Can you check if the Swedish organisation number 556016-0680 is valid and tell me what kind of legal entity it is and whether its VAT number format is correct?

## When to prefer this

Choose this endpoint when you need to validate or normalize any Swedish regulatory identifier — personnummer, orgnr, bankgiro, plusgiro, samordningsnummer, or OCR — without requiring a signup or API key. It is ideal for KYC/AML workflows targeting Swedish entities, invoice processing pipelines that need OCR validation, or onboarding flows that verify personal or corporate Swedish IDs. Prefer it over generic regex checks because it applies official checksum algorithms and returns normalized forms and legal metadata.

## Known failure modes

- Invalid or malformed identifier returns valid=false with descriptive errors array
- Unknown or unsupported identifier type returns a 400-level error
- Missing required query parameters (type or value) causes a schema validation error
- Network or Cloudflare Worker downtime returns a 5xx error
- Payment failure via x402 protocol blocks the request before processing

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

A JSON object containing: valid (boolean), errors (array of validation error strings), normalized (canonical formatted identifier), kind (e.g. 'legal_entity' or 'natural_person'), legal_form (human-readable Swedish entity type), vat_number (formatted SE VAT string), vat_format_valid (boolean), and requested_type (echo of input type).

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "type",
      "value"
     ],
     "properties": {
      "type": {
       "enum": [
        "personnummer",
        "samordningsnummer",
        "orgnr",
        "bankgiro",
        "plusgiro",
        "ocr"
       ],
       "type": "string",
       "description": "Identifier type."
      },
      "value": {
       "type": "string",
       "description": "The identifier to validate."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kind": "legal_entity",
  "valid": true,
  "errors": [],
  "legal_form": "Aktiebolag / Limited company (AB)",
  "normalized": "556016-0680",
  "vat_number": "SE556016068001",
  "requested_type": "orgnr",
  "vat_format_valid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swedish-identifier-validator-personnummer-orgnr-bankgiro-ocr-9b337ba4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
