swift_mt103PaymentsLocale Aware

Mock Jutsu HOW-TO | UK

In the complex landscape of financial technology, generating high-quality test data is essential for validating cross-border payment systems. The swift_mt103 function within the mock-jutsu library provides a robust solution for developers needing to simulate Single Customer Credit Transfer messages. By automating the creation of these messages, the library ensures that engineering teams can focus on core logic rather than the tedious process of manual data entry. Whether you are building a modern banking application or a legacy payment gateway, this function delivers realistic payloads that adhere to international messaging standards.

Under the hood, the swift_mt103 generator strictly follows the ISO 15022 standard, producing the mandatory and optional fields required for a valid MT103 message. It populates critical tags such as the Transaction Reference Number (:20), Bank Operation Code (:23B), and the Value Date/Currency/Interbank Settled Amount (:32A). This level of precision is vital for verifying parsing logic and ensuring that backend systems can handle the specific syntax and character sets unique to the SWIFT network. By using mock-jutsu, you guarantee that your mock data reflects the nuances of real-world financial transactions, including proper date formats and specific decimal separators required for financial reconciliation.

Testing scenarios for the swift_mt103 function are diverse, ranging from simple unit tests to complex performance benchmarks. For instance, QA engineers can utilise the JMeter integration to inject thousands of credit transfer messages into a system to evaluate its throughput and stability under load. Alternatively, Python developers can call the jutsu.generate method to populate local databases or trigger event-driven microservices during integration testing. The CLI tool also allows for rapid prototyping, enabling teams to generate raw message blocks instantly for documentation or for the quick verification of downstream consumers without writing a single line of code.

One of the primary developer benefits of using mock-jutsu for payment testing is the total elimination of security risks associated with using production data. Because the swift_mt103 function generates synthetic yet structurally accurate information, there is no risk of exposing personally identifiable information or sensitive banking details. This approach not only streamlines the CI/CD pipeline but also ensures that developers have access to a predictable and scalable source of high-fidelity test data. Ultimately, integrating this function into your development workflow reduces the friction of financial software testing and accelerates the time-to-market for critical payment infrastructures.

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