Convert MT202 to pacs.009 fields
convert_mt202_to_pacs009Convert a SWIFT MT202 bank-to-bank transfer into ISO 20022 pacs.009 by parsing and mapping fields like settlement amount, currency, date, and institution BICs, while flagging unmapped data for review.
Instructions
Parses a SWIFT MT202 (General Financial Institution Transfer) message and maps its fields to the equivalent ISO 20022 pacs.009 fields (MsgId, EndToEndId, IntrBkSttlmDt, IntrBkSttlmAmt, Ccy, InstgAgt/InstdAgt/IntrmyAgt1 BICs). Unlike MT103, MT202 moves money bank-to-bank so there is no customer-level Dbtr/Cdtr — only institution BICs. Returns notes on anything not confidently mapped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_message | Yes | The raw MT202 message body |