swift_mt103PaymentsLocale Aware

Mock Jutsu HOW-TO | EN

The swift_mt103 function within the mock-jutsu library is a specialized tool designed to generate high-fidelity test data for international financial messaging. Specifically, it focuses on the SWIFT MT103 Single Customer Credit Transfer, which remains the global standard for cross-border payment instructions. By using mock-jutsu, developers can produce realistic message blocks containing critical fields such as the Sender's Reference (:20), Bank Operation Code (:23B), and Value Date/Currency/Interbank Settled Amount (:32A). This ensures that the generated mock data adheres to the strict formatting requirements of the ISO 15022 standard, allowing for seamless integration into financial software development lifecycles.

Accuracy in payment messaging is paramount, and the swift_mt103 generator simplifies the creation of complex string structures that would otherwise be tedious to manually craft. The algorithm behind this function ensures that date formats are valid, currency codes follow ISO 4217 standards, and decimal separators are correctly placed according to SWIFT specifications. This level of precision is vital when validating message parsing engines or stress-testing payment gateways. Whether you are building a new fintech application or maintaining a legacy core banking system, having access to reliable test data helps prevent costly errors in production environments.

Testing scenarios for the swift_mt103 function are diverse, ranging from simple unit tests to complex end-to-end performance evaluations. QA engineers can utilize the mock-jutsu JMeter plugin to inject thousands of unique payment messages into a system to analyze throughput and latency under heavy load. Similarly, Python developers can use the jutsu.generate('swift_mt103') method to populate local databases or mock API responses during the early stages of development. The ability to generate these messages via a simple CLI command further enhances its utility for DevOps professionals looking to automate environment provisioning with consistent, schema-compliant data.

Ultimately, the primary benefit of using mock-jutsu for SWIFT message generation is the significant reduction in manual overhead. Developers no longer need to scrape old logs or manually edit text files to create edge-case scenarios. Instead, they can rely on the swift_mt103 function to provide a continuous stream of valid, randomized test data that mimics real-world banking traffic. By streamlining the generation of these intricate payment messages, mock-jutsu empowers teams to focus on core logic and feature development rather than data preparation, leading to faster release cycles and more robust financial software.

CLI Usage
mockjutsu generate swift_mt103 --locale TRmockjutsu generate swift_mt103 --locale DEmockjutsu bulk swift_mt103 --count 10 --locale TRmockjutsu export swift_mt103 --count 10 --format json --locale TRmockjutsu export swift_mt103 --count 10 --format csv --locale TRmockjutsu export swift_mt103 --count 10 --format sql --locale TR# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate swift_mt103 --locale TR --maskmockjutsu bulk swift_mt103 --count 5 --locale TR --mask
Python API
from mockjutsu import jutsujutsu.generate('swift_mt103', locale='TR')jutsu.bulk('swift_mt103', count=10, locale='TR')jutsu.template(['swift_mt103'], count=5, locale='TR')# mask=True: regulation-compliant outputjutsu.generate('swift_mt103', locale='TR', mask=True)jutsu.bulk('swift_mt103', count=5, locale='TR', mask=True)
JMeter
${__mockjutsu_payments(swift_mt103,TR)}# JMeter Function: __mockjutsu_payments# Parameter 1: swift_mt103# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_payments(swift_mt103,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_payments(swift_mt103,TR,mask)}
REST API
GET /generate/swift_mt103?locale=TR# → {"type":"swift_mt103","result":"...","status":"ok"}GET /bulk/swift_mt103?count=10&locale=TRPOST /template {"types":["swift_mt103"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/swift_mt103?locale=TR&mask=trueGET /bulk/swift_mt103?count=5&locale=TR&mask=true

Parameters

Parameter Values Description
--locale TR|UK|US|DE|FR|RU Region / locale for locale-aware output
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages