BAP-1 ISO 20022 Banking Message Validator
iso20022-validateDeterministic validation for institutional ISO 20022 XML/JSON payment messages (pain.001 credit transfer, pacs.008 customer credit, camt.053 bank statement) with XML DOCTYPE security guards, BigInt CtrlSum decimal sums, and ISO 13616 / 9362 / 17442 checksums (BAP-1).
Quickstart & Execution
curl -X POST https://api.code402.dev/v1/tools/iso20022-validate/call \
-H "content-type: application/json" \
-d '{"raw_payload":"<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>MSG-2026-001</MsgId><NbOfTxs>1</NbOfTxs><CtrlSum>100.00</CtrlSum></GrpHdr><PmtInf><CdtTrfTxInf><Amt><InstdAmt Ccy=\"USD\">100.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>DEUTDEDDFXX</BICFI></FinInstnId></CdtrAgt><CdtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></CdtrAcct></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>"}'
No API key needed for the free daily tier. When daily quota exhausts, the endpoint replies with HTTP 402 Payment Required specifying the exact USDC amount. Machines sign an EIP-3009 transfer on Base L2; human engineers buy card credits. Every paid execution returns a cryptographically signed XDR-1 receipt for zero-knowledge audit trails.
Input Parameters
| Field | Type | Meaning & Constraints |
|---|---|---|
raw_payload (REQUIRED) | string | Raw ISO 20022 XML or JSON message text |
format | string | 'xml' or 'json' (default auto-detected) |
namespace | string | Expected ISO 20022 schema namespace (e.g. 'pain.001.001.09') |
transactions | array | Structured transactions array for JSON validation |
Response Format
Deterministic JSON payload fields: ok, standard, valid, namespace, message_id, tx_count, ctrl_sum_minor, findings, receipt_digest. Paid responses also carry an offline-verifiable receipt object (XDR-1, secp256k1 signature recoverable to the authorized signer).
Related Conformance Tools
aci-trust-lookup dip-file-dispute pod-verify-delivery csp-commitment-create iso20022-to-x402-intent iban-check lei-check vat-mod97-check company-number-format swift-bic-check aba-routing-check ein-format-check ifsc-check abn-check gstin-check cnpj-check uscc-check japan-corp-check kra-pin-check rfc-check iso4217-currency-check upi-vpa-check pan-format-check uae-trn-check isin-check sedol-check isbn-check ean13-check luhn-check e164-check pre-disbursement-guard vendor-onboarding-pack rent-deposit-guard rental-listing-risk rental-verdict india-supplier-check china-supplier-check japan-supplier-check latam-supplier-check gulf-supplier-check africa-supplier-check settlement-history-check balance-check erc20-balance tx-activity block-info ofac-sdn-check simulate-spend-sentinel create-ap2-pilot create-b2b-invoice get-b2b-invoice calculate-fx-savings fx-spot-price-oracle quote-3rd-party-insurance bind-insurance-policy list-approved-insurers batch-validate context-distill crypto-ticker instant-json-schema-verifier clean-markdown-scraper