# Parse ISO 20022 CBPR+ pacs.008 & pacs.009 XML to JSON

**Use case:** 

Ingest native SWIFT CBPR+ ISO 20022 pacs.008.001.08 customer credit transfers and pacs.009.001.08 financial-institution transfers and flatten them into identical JSON fields alongside legacy MT103/MT202 wires.

## Input

```json
{
  "wire_messages": [
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08\"><FIToFICstmrCdtTrf><GrpHdr><MsgId>CBPR-20261125-77</MsgId><CreDtTm>2026-11-25T09:30:00Z</CreDtTm><NbOfTxs>1</NbOfTxs></GrpHdr><CdtTrfTxInf><PmtId><InstrId>CBPR-20261125-77</InstrId><EndToEndId>E2E-INV-8821</EndToEndId><UETR>97ed4827-7b6f-4491-a06f-b548d5a7512d</UETR></PmtId><IntrBkSttlmAmt Ccy=\"EUR\">75000.00</IntrBkSttlmAmt><IntrBkSttlmDt>2026-11-25</IntrBkSttlmDt><InstdAmt Ccy=\"EUR\">75000.00</InstdAmt><ChrgBr>SHAR</ChrgBr><Dbtr><Nm>Bavaria Robotics GmbH</Nm></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt><CdtrAgt><FinInstnId><BICFI>ABNANL2AXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Rotterdam Port Automation BV</Nm></Cdtr><CdtrAcct><Id><IBAN>NL91ABNA0417164300</IBAN></Id></CdtrAcct><RmtInf><Ustrd>MILESTONE 2 DELIVERY</Ustrd></RmtInf></CdtTrfTxInf></FIToFICstmrCdtTrf></Document>"
  ],
  "include_cbpr_xml": false,
  "mask_account_numbers": false,
  "max_items": 25
}
```

## Output

```json
{
  "source_format": {
    "label": "Format",
    "format": "string"
  },
  "sender_reference": {
    "label": "Ref (:20: / InstrId)",
    "format": "string"
  },
  "uetr": {
    "label": "SWIFT GPI UETR",
    "format": "string"
  },
  "value_date": {
    "label": "Value Date",
    "format": "string"
  },
  "settled_currency": {
    "label": "CCY",
    "format": "string"
  },
  "settled_amount": {
    "label": "Settled (:32A:)",
    "format": "string"
  },
  "charge_bearer_mt": {
    "label": "Charges",
    "format": "string"
  },
  "hidden_fee_or_fx_delta": {
    "label": "Fee/FX Gap",
    "format": "string"
  },
  "sender_bic": {
    "label": "Sender BIC",
    "format": "string"
  },
  "receiver_bic": {
    "label": "Receiver BIC",
    "format": "string"
  },
  "is_structurally_valid": {
    "label": "Valid",
    "format": "boolean"
  },
  "fraud_risk_flag": {
    "label": "Fraud Flag",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge Actor is ready to run with the inputs already set for "Parse ISO 20022 CBPR+ pacs.008 & pacs.009 XML to JSON". [Sign up or log in](https://console.apify.com/create-task-from-example/KaRsa0s593IoMAbLc) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Parse ISO 20022 CBPR+ pacs.008 & pacs.009 XML to JSON" task

The SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge Actor will start running based on the input automatically. You can also change all the input fields, like SWIFT FIN (MT103 / MT202) or ISO 20022 (pacs.008 / pacs.009) Messages, generate iso 20022 cbpr+ xml (pacs.008.001.08 / pacs.009.001.08), and more, to match your specific use case.

### 3. Receive the "Parse ISO 20022 CBPR+ pacs.008 & pacs.009 XML to JSON" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as format, ref (:20: / instrid), SWIFT GPI UETR, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Parse ISO 20022 CBPR+ pacs.008 & pacs.009 XML to JSON" task via API](https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge.md).

## FAQ

### Can I mix legacy FIN MT103 text and ISO 20022 pacs.008 XML in the same batch?

Yes. Each item in wire_messages is auto-detected as either SWIFT FIN ({1:}/:20:) or ISO 20022 XML (<Document>) and normalized into the exact same JSON fields.

### How are ISO 20022 ChrgBr values (DEBT, CRED, SHAR) mapped?

ISO 20022 ChrgBr codes DEBT, CRED, and SHAR are mapped bidirectionally with SWIFT :71A: OUR, BEN, and SHA codes.

### Does it validate debtor and creditor IBAN Mod-97 checksums inside pacs.008 XML?

Yes. Every <IBAN> element is checked against ISO 13616 Modulo-97 before returning debtor_iban_valid and creditor_iban_valid booleans.

## About this Actor

This example demonstrates how to use [SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge](https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
