{"uid":"cap_KJ69lw2SSmWjqHjlsCVGt","slug":"icao-9303-mrz-check-digit-validator-edb62ba6","name":"ICAO 9303 MRZ Check Digit Validator","description":"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.","url":"https://agentshield.live/mrz?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"known":true,"valid":true,"check_digit":"6"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z9lWMmaiKBmP5N7qkDVER","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes and validates the ICAO 9303 check digit for a passport MRZ field or TD3 line 2 string.","exampleAgentPrompt":"Can you check whether the check digit in this passport MRZ TD3 line 2 is valid: 'L898902C36UTO7408122F1204159ZE184226B<<<<<1'?","exampleUseCases":[{"title":"Passport data entry validation","prompt":"I'm processing a scanned passport and the OCR gave me this MRZ field with its check digit: 'L898902C36'. Can you verify whether that check digit is correct according to ICAO 9303?"},{"title":"Travel document pipeline integrity check","prompt":"Before I store this passport record, can you confirm the check digit on the full TD3 line 2 '740812\n2F1204159ZE184226B<<<<<1' is valid so I know the data wasn't corrupted?"},{"title":"MRZ field check digit computation","prompt":"What should the ICAO 9303 check digit be for the MRZ date-of-birth field '740812'? I need to verify what digit the system should have appended."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:40:30.168Z","isFirstParty":false,"canonicalSlug":"icao-9303-mrz-check-digit-validator-edb62ba6"}