ibanFinancialLocale Aware

Mock Jutsu HOW-TO | EN

Generating realistic financial information is a cornerstone of modern software quality assurance and robust application development. Within the mock-jutsu ecosystem, the iban function provides developers with a sophisticated tool for creating synthetically accurate International Bank Account Numbers. This capability is essential for engineering teams building global payment systems, fintech applications, or banking interfaces that require rigorous validation against international standards. By utilizing mock-jutsu, developers can bypass the security risks associated with using real customer information while maintaining the structural integrity needed for high-quality test data.

The technical strength of the iban generator lies in its strict adherence to the ISO 13616 standard and the implementation of the Modulo 97 checksum algorithm. Every iban produced by the library, such as those following the Turkish format like TR330006100519, is not merely a random string of characters; it is a mathematically valid identifier that passes complex validation logic. This is particularly critical because most modern financial software utilizes a Modulo 97 check to verify the authenticity of an account number before a transaction is even initiated. By providing valid test data that satisfies these specific algorithmic requirements, mock-jutsu ensures that your front-end forms and back-end processing logic behave exactly as they would in a live production environment.

Testing scenarios for this function are vast and varied, ranging from simple UI form validation to complex cross-border payment simulations. Developers can use the iban function to seed staging databases for performance testing or to verify that their systems correctly parse various country codes and check digits. Whether you are building a new digital wallet or maintaining a legacy banking platform, having access to reliable mock data allows you to simulate unique edge cases, such as different country-specific lengths and formats, without the friction of manual data entry or the fear of data breaches.

Integration is seamless across various development environments, making mock-jutsu a versatile choice for modern DevOps and QA pipelines. You can generate a valid iban directly from the command line using the "mockjutsu generate iban" command or integrate it into your Python automation scripts with "jutsu.generate('iban')". Furthermore, for performance testers using Apache JMeter, the syntax "${__mockjutsu(iban,)}" allows for the dynamic injection of account numbers into high-concurrency load tests. This multi-platform flexibility empowers developers to maintain high-velocity development cycles while ensuring their financial applications are resilient, compliant, and ready for real-world global transactions.

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