# IBAN BG Validator (mod-97, length 22)

> IBAN BG Validator (mod-97, length 22) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Validates whether a given string is a mod-97-valid Bulgarian IBAN (BG format, exactly 22 characters long)

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/check-iban-bg?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-bg-validator-mod-97-length-22-daccaded
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W7aykEfQTdc0oivY4llf8

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 iban-bg-validator-mod-97-length-22-daccaded -d '<json body>'
```

Example prompt: Can you check whether this IBAN is a valid Bulgarian bank account number — does it pass the mod-97 checksum and have exactly 22 characters: BG80BNBG96611020345678?

## When to prefer this

Use this endpoint when you specifically need to validate a Bulgarian (BG) IBAN against both the correct length (22 characters) and the mod-97 checksum. Prefer the unpaid sandbox endpoint POST /v1/sandbox/check-iban-bg for testing. Choose this over generic IBAN libraries when you need a lightweight, hosted, API-accessible check without deploying your own code, especially inside an automated agentic workflow.

## Known failure modes

- Input string is empty or missing — validation error returned
- IBAN is not 22 characters — fails length check
- Country code is not BG — fails country check
- Mod-97 checksum does not equal 1 — fails checksum validation
- Malformed input with non-alphanumeric characters — may return error or false
- Payment of $0.001 USDC not received — request rejected with 402

## How this service works

Call when an agent needs whether an IBAN is a mod-97-valid BG number of length 22. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/check-iban-bg first.

## Output

Returns a boolean or structured result indicating whether the supplied string is a valid Bulgarian IBAN — specifically confirming that it starts with the BG country code, is exactly 22 characters long, and passes the ISO 7064 mod-97 checksum algorithm.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "JSON value for schema-check SKUs. Omit it on string checks such as email or IBAN."
  },
  "value": {
   "type": "string",
   "examples": [
    "BG45AAAA00000000000000"
   ],
   "maxLength": 20000,
   "minLength": 1,
   "description": "Value to check. The route description names the format: email, phone, IBAN, postal code, VAT, national id, or similar."
  },
  "schema": {
   "description": "JSON Schema document for schema-check SKUs. Omit it on string checks."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iban-bg-validator-mod-97-length-22-daccaded/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
