# IBAN TN (Tunisia) Validator — mod-97 length-24

> IBAN TN (Tunisia) Validator — mod-97 length-24 is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-29).

Validates whether a given string is a structurally correct Tunisian (TN) IBAN: 24 characters long and passing the mod-97 checksum.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/check-iban-tn?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-tn-tunisia-validator-mod-97-length-24-9001ce55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UI-BAZLWEaruJLbJMg3Ou

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-tn-tunisia-validator-mod-97-length-24-9001ce55 -d '<json body>'
```

Example prompt: Can you check whether TN5904018104004942712345 is a valid Tunisian IBAN — I need to confirm it passes the mod-97 checksum and is the right 24-character length before I send a wire transfer?

## When to prefer this

Use this endpoint when you specifically need to validate a Tunisian (TN) IBAN against both the 24-character length constraint and the mod-97 checksum. Prefer the sandbox endpoint (POST /v1/sandbox/check-iban-tn) during development to avoid the $0.01 USDC fee. Choose this over generic IBAN validators when you need country-specific enforcement for TN format only.

## Known failure modes

- Input string is empty or missing — validation cannot proceed
- IBAN length is not 24 characters — fails length check before mod-97
- Country code prefix is not 'TN' — wrong country validator called
- Mod-97 remainder is not 1 — checksum invalid
- Network or upstream error returns non-200 response
- Payment not attached or insufficient — x402 payment required error

## How this service works

Call when an agent needs whether an IBAN is a mod-97-valid TN number of length 24. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/check-iban-tn first.

## Output

Returns a boolean or structured response indicating whether the supplied string is a valid Tunisian (TN) IBAN — exactly 24 characters, correct country prefix, and passing the ISO 7064 mod-97-10 checksum calculation.

## 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": [
    "TN50AAAA0000000000000000"
   ],
   "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-tn-tunisia-validator-mod-97-length-24-9001ce55/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)
