Convert pacs.008 to MT103 fields (reverse mapping)
convert_pacs008_to_mt103Convert ISO 20022 pacs.008 XML to SWIFT MT103 field tags, mapping only confident fields and flagging the rest for manual review, enabling MT/MX coexistence.
Instructions
Parses an ISO 20022 pacs.008 XML message and maps its fields back to SWIFT MT103 field tags (:20:, :23B:, :32A:, :50K:, :59:, :71A:). Useful during the SWIFT MT/MX coexistence period when a downstream system still expects MT format. Deliberately conservative — only maps fields it can extract with confidence and flags the rest in the notes array rather than guessing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The raw pacs.008 message as XML text |