# Bahrain IBAN Validator (BH, length 22)

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

Validates whether a given string is a correctly structured Bahrain IBAN — exactly 22 characters, starting with 'BH', passing the ISO 7064 mod-97 check.

## Facts

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

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 bahrain-iban-validator-bh-length-22-63b9259d -d '<json body>'
```

Example prompt: Can you check whether 'BH67BMAG00001299123456' is a valid Bahrain IBAN — does it have the right length of 22 characters and pass the mod-97 checksum?

## When to prefer this

Use this endpoint when you specifically need to validate a Bahrain (BH) IBAN and want a country-specific check enforcing the exact 22-character length rule, rather than the generic IBAN validator which covers all countries. It costs slightly less than the generic validator and is more precise for BH numbers. Try the free sandbox endpoint first if available.

## Known failure modes

- Input string is null or empty — returns invalid
- IBAN has incorrect length (not 22 characters) — fails
- Country code prefix is not 'BH' — fails country-specific check
- Mod-97 checksum does not pass — returns invalid
- Malformed input with non-alphanumeric characters — returns invalid or error
- Network timeout or service unavailability — HTTP error response

## How this service works

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

## Output

Returns a boolean or structured response indicating whether the input string is a valid Bahrain IBAN: exactly 22 characters long, prefixed with 'BH', and passing the ISO 7064 mod-97 checksum algorithm. Does not verify the account actually exists at a bank.

## 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": [
    "BH42AAAA00000000000000"
   ],
   "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/bahrain-iban-validator-bh-length-22-63b9259d/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)
