# SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge (`bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge`) Actor

Stateless zero-retention cross-border wire engine. Parse, fraud-check, and convert SWIFT FIN MT103, MT202, and MT202 COV messages and ISO 20022 CBPR+ pacs.008 / pacs.009 XML with 36-char UETR UUIDv4, BIC, IBAN Mod-97, 32A/33B FX fee gap, and 71A SHA/OUR/BEN validation.

- **URL**: https://apify.com/bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge.md
- **Developed by:** [SEOK HOON HONG](https://apify.com/bifrost-data) (community)
- **Categories:** Developer tools, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.40 / 1,000 verified swift / cbpr+ wire messages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## SWIFT MT103 & MT202 to ISO 20022 CBPR+ pacs.008 Bridge

Decode, fraud-screen, and convert **SWIFT FIN `MT103`, `MT103 STP`, `MT202`, and `MT202 COV` international wire messages** and **ISO 20022 CBPR+ `pacs.008.001.08` / `pacs.009.001.08` XML** in **256 MB zero-retention RAM** with zero external network calls.

Built for **exporters, freight forwarders, corporate treasury teams, OTC desks, and accounting workflows** reconciling cross-border wire confirmations, tracking `36-character UETR` references, auditing intermediary bank fee deductions (`:32A:` vs `:33B:` / `:71F:`), or migrating legacy ERP `MT103`/`MT202` pipelines to mandatory SWIFT CBPR+ `pacs.008`/`pacs.009` XML.

### What You Get in 5 Seconds

- **Full 5-Block & Raw Block-4 SWIFT FIN Decoder**: Parses `{1:}` Basic Header, `{2:}` Application Input/Output (`I103`/`O103`/`I202`/`O202`), `{3:}` User Header (`{121:UETR}`, `{119:STP/COV}`, `{108:MUR}`), `{4:}` Payment Tags (`:20:`, `:21:`, `:23B:`, `:32A:`, `:33B:`, `:36:`, `:50A/F/K:`, `:52A:`, `:56A:`, `:57A:`, `:58A:`, `:59:`, `:70:`, `:71A:`, `:71F:`, `:71G:`, `:72:`), and `{5:}` Trailer—plus pasted `:20:...:71A:` portal excerpts.
- **Hidden Correspondent Fee & FX Gap Calculator**: Reconciles `:33B:` (original instructed amount) against `:32A:` (interbank settled amount) and summed `:71F:` deductions so finance teams immediately see why a `SHA` or `BEN` wire arrived short.
- **Fake MT103 Payment-Proof Fraud Screener**: Flags classic counterparty scam tells (`MANUAL DOWNLOAD`, `ONE-WAY`, `CASH BACKING`, `SERIAL MT103`, `MT199` free-format messages disguised as wire proofs), invalid `UETR` UUIDv4, broken `IBAN` Mod-97 checksums, invalid `BIC` codes, impossible `:32A:` calendar dates, and `OUR` vs `:71F:` contradictions.
- **Bidirectional ISO 20022 CBPR+ XML Bridge**: Converts `MT103` to `pacs.008.001.08` and `MT202`/`MT202 COV` to `pacs.009.001.08` XML, and also parses native `pacs.008`/`pacs.009` XML into the identical JSON schema.

### Sample Output Record

```json
{
  "source_format": "MT103",
  "target_cbpr_schema": "pacs.008.001.08",
  "sender_reference": "EXP202611240091",
  "uetr": "eb6305c9-1f7f-49de-aed0-16487c27b42d",
  "value_date": "2026-11-24",
  "settled_currency": "EUR",
  "settled_amount": "49975.00",
  "instructed_currency": "EUR",
  "instructed_amount": "50000.00",
  "charge_bearer_mt": "SHA",
  "charge_bearer_iso": "SHAR",
  "sender_deducted_charges": "25.00",
  "hidden_fee_or_fx_delta": "25.00",
  "sender_bic": "CHASUS33XXX",
  "receiver_bic": "DEUTDEFFXXX",
  "is_structurally_valid": true,
  "fraud_risk_flag": false,
  "validation_and_fraud_findings": []
}
```

### Transparent Pay-Per-Event Pricing

- **Actor Start**: `$0.00005`
- **Verified Wire Message (`verified-wire-message`)**: `$0.008` per verified wire message (`$8.00` per 1,000 messages). Unparseable non-SWIFT garbage and XXE inputs cost `$0.00`.

### Related Finance & B2B Automation Tools by `bifrost-data`

| Actor | Use Case | Pricing |
| :--- | :--- | :--- |
| [ISO 20022 pain.001, pacs.008 & camt.053 JSON Bridge](https://apify.com/bifrost-data/iso20022-payment-statement-bridge) | Audit SEPA/Swiss SPS 2026 structured addresses, QR-IBAN QRR, and convert MT940 to camt.053 | `$8.00 / 1k` |
| [BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge](https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge) | Reconcile US corporate BAI2 lockbox files (01-99) and OFX/QFX card/bank statements | `$8.00 / 1k` |
| [cXML SAP Ariba & Coupa Order, ASN & Invoice JSON Bridge](https://apify.com/bifrost-data/cxml-ariba-coupa-procurement-bridge) | Convert SAP Ariba & Coupa cXML Purchase Orders, ASNs, and Invoices to JSON or cXML XML | `$8.00 / 1k` |

# Actor input Schema

## `wire_messages` (type: `array`):

Paste one or more raw SWIFT FIN messages (full 5-block {1:}..{5:} or Block-4 :20:..:71A: text) or ISO 20022 CBPR+ pacs.008 / pacs.009 XML strings.

## `include_cbpr_xml` (type: `boolean`):

Emit compliant ISO 20022 CBPR+ pacs.008.001.08 (for MT103) or pacs.009.001.08 (for MT202/COV) XML on every parsed SWIFT FIN message.

## `mask_account_numbers` (type: `boolean`):

Mask ordering and beneficiary account/IBAN numbers (retaining country prefix and last 4 digits) after IBAN Mod-97 checksum validation.

## `max_items` (type: `integer`):

Maximum number of verified wire messages to emit and charge in this run.

## Actor input object example

```json
{
  "wire_messages": [
    "{1:F01CHASUS33AXXX0000000000}{2:I103DEUTDEFFXXXXN}{3:{108:WIRE20261124}{119:STP}{121:eb6305c9-1f7f-49de-aed0-16487c27b42d}}{4:\n:20:EXP202611240091\n:23B:CRED\n:32A:261124EUR49975,00\n:33B:EUR50000,00\n:50K:/US440021000021889900\nPACIFIC INDUSTRIAL SUPPLY INC\n1200 HARBOR BLVD\nLOS ANGELES CA US\n:52A:CHASUS33XXX\n:57A:DEUTDEFFXXX\n:59:/DE89370400440532013000\nRHEINWERK MASCHINENBAU GMBH\nINDUSTRIESTR 42\n60311 FRANKFURT DE\n:70:INV-2026-77410 CNC SPINDLE UNIT\n:71A:SHA\n:71F:EUR25,00\n-}{5:{CHK:89AB4412CD01}}"
  ],
  "include_cbpr_xml": true,
  "mask_account_numbers": false,
  "max_items": 100
}
```

# Actor output Schema

## `wires` (type: `string`):

Schema-verified SWIFT MT103, MT202, and CBPR+ pacs.008/pacs.009 wire messages with UETR, 32A/33B fee reconciliation, and fraud-screening results.

## `runMetrics` (type: `string`):

Execution telemetry including parsed wire messages, $0 invalid skips, and PPE billing counts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bifrost-data/swift-mt103-cbpr-pacs008-wire-bridge"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DT6Xu7bSdxxt3Tedo/builds/h3gedWS4Mm0n6O4DC/openapi.json
