# ICAO 9303 MRZ Check Digit Validator

> ICAO 9303 MRZ Check Digit Validator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Computes and validates the ICAO 9303 check digit for a passport MRZ field or TD3 line 2 string.

## Facts

- Endpoint: GET https://agentshield.live/mrz?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/icao-9303-mrz-check-digit-validator-edb62ba6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KJ69lw2SSmWjqHjlsCVGt

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 icao-9303-mrz-check-digit-validator-edb62ba6
```

Example prompt: Can you check whether the check digit in this passport MRZ TD3 line 2 is valid: 'L898902C36UTO7408122F1204159ZE184226B<<<<<1'?

## When to prefer this

Use this endpoint when you have a raw MRZ field string or a full 44-character TD3 line 2 from a passport or travel document and need to verify or compute its ICAO 9303 check digit. It is a lightweight, deterministic checksum validator — not a full passport authentication or identity verification service. Prefer this over general-purpose checksum libraries when you need a hosted, pay-per-call microservice with no infrastructure overhead and explicit ICAO 9303 compliance.

## Known failure modes

- Unrecognized or malformed MRZ input returns known:false
- Check digit mismatch returns valid:false with the correct expected digit
- Missing required 'code' query parameter results in an error response
- Non-standard MRZ lengths or encoding may return known:false
- Network or payment failure may result in a 402 or 5xx response

## How this service works

Call when an agent has a passport MRZ field or a TD3 line 2 and needs the ICAO 9303 check digit. Does not confirm the passport.

## Output

Returns a JSON object with three fields: 'known' (boolean, whether the input format was recognized), 'valid' (boolean, whether the check digit is correct per ICAO 9303), and 'check_digit' (string, the expected correct check digit character).

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "MRZ field plus its check digit, or a 44-character TD3 line 2."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "valid": true,
  "check_digit": "6"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/icao-9303-mrz-check-digit-validator-edb62ba6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
