South Star

ISO 20022 Payments Address Parser API

Free tier included · Finance
Parse ISO 20022 XML payments and split postal addresses into structured ISO 20022 fields.

ISO 20022 Payments & Address Parser turns messy ISO 20022 XML and free-form postal addresses into clean, structured data with one HTTP call.

Use it when you receive pain.001 customer credit transfers, camt.053 bank statements, or pain.008 direct debits and need to pull out debtors, creditors, IBANs, amounts, and remittance text without installing a library or pinning a schema version. The message type is auto-detected from the XML namespace, and elements are matched by local name so it works across ISO 20022 version variants. A separate family of endpoints splits a free-form address string into ISO 20022 structured fields (StreetName, BuildingNumber, TownName, PostCode, Country) using open government datasets for the US, UK, Canada, and Australia — handy for payment initiation where an invalid structured address blocks the flow.

The service is fully offline and stateless: no databases, no request logs, no external calls, and nothing is stored between requests. XML parsing uses defusedxml for safety, and a concurrency semaphore keeps throughput stable under load.

Honest limits: this is an extractor, not a schema validator — it pulls fields as-is from whatever is present and does not verify that a payment is valid or that an address is deliverable. Per-request XML is capped at 5 MB (UTF-8), batch address parsing accepts up to 100 addresses per call, and individual address strings are limited to 1000 characters. Country coverage for addresses is US, UK, Canada, and Australia only; other countries return best-effort fields with nulls where data is unavailable.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and links to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
POST/parseParse an ISO 20022 XML payment message (pain.001, camt.053, or pain.008). Body: {"xml": "<...XML..."}. The message type is auto-detected from the namespace; elements are matched by local name. XML must be under 5 MB (UTF-8) and the root element must be Document.
POST/parse-addressParse a free-form postal address into ISO 20022 structured fields. Body: {"address": "123 Main St, New York, NY 10001"}. Supports US, UK, Canada, and Australia using open government datasets.
POST/parse-address/fullRicher variant of /parse-address returning all detected ISO 20022 address fields with maximum detail. Body: {"address": "221b Baker St, London NW1 6XE"}.
POST/parse-address/batchParse up to 100 postal addresses in one request. Body: {"addresses": ["123 Main St, New York, NY 10001", "221b Baker St, London NW1 6XE"]}. Returns an array of AddressParseResponse in request order.

Quick start

curl -X POST "https://iso20022.p.rapidapi.com/parse" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: iso20022.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.03\">\n  <CstmrCdtTrfInitn>\n    <GrpHdr>\n      <MsgId>MSG-2026-1021</MsgId>\n      <CreDtTm>2026-10-21T09:30:00</CreDtTm>\n      <NbOfTxs>1</NbOfTxs>\n      <CtrlSum>1250.50</CtrlSum>\n    </GrpHdr>\n    <PmtInf>\n      <Dbtr>\n        <Nm>Example Debtor GmbH</Nm>\n      </Dbtr>\n      <DbtrAcct>\n        <Id>\n          <IBAN>DE89370400440532013000</IBAN>\n        </Id>\n      </DbtrAcct>\n      <CdtTrfTxInf>\n        <Amt>\n          <InstdAmt Ccy=\"EUR\">1250.50</InstdAmt>\n        </Amt>\n        <Cdtr>\n          <Nm>Example Creditor SARL</Nm>\n        </Cdtr>\n        <CdtrAcct>\n          <Id>\n            <IBAN>FR1420041010050500013M02606</IBAN>\n          </Id>\n        </CdtrAcct>\n        <RmtInf>\n          <Ustrd>Invoice 2026-042</Ustrd>\n        </RmtInf>\n      </CdtTrfTxInf>\n    </PmtInf>\n  </CstmrCdtTrfInitn>\n</Document>"}'

FAQ

What's the difference between /parse-address and /parse-address/full?

/parse-address returns the core ISO 20022 address fields (StreetName, BuildingNumber, TownName, PostCode, Country). /parse-address/full returns the same fields plus any additional detail detected from open datasets, giving you maximum granularity for payment initiation flows.

Does parsing XML validate that the payment is correct?

No. The API extracts fields as-is from the message — it is not a schema validator and does not verify payments. It pulls out whatever data is present, so missing or malformed elements simply won't appear in the output.

How many addresses can I send in one batch request?

Up to 100 addresses per call to /parse-address/batch. Each address string is limited to 1000 characters, and the total request body must stay under 262144 bytes.

Is any data stored or logged?

No. The service is fully offline and stateless — no databases, no request logs, no external calls, and nothing is stored between requests. XML parsing uses defusedxml for safety.

Try ISO 20022 Payments Address Parser free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs