creditor_refBanking

Mock Jutsu HOW-TO | UK

The creditor_ref function within the mock-jutsu library is a specialised utility designed for developers and QA engineers working in the financial technology sector. This function generates high-quality test data that strictly adheres to the ISO 11649 standard, commonly known as the Structured Creditor Reference. In modern banking systems, this reference is crucial for identifying payments across international borders, ensuring that funds are correctly reconciled without manual intervention. By using mock-jutsu, engineers can produce realistic examples such as RF18539007547034, which are essential for verifying that payment gateways and accounting software can process these identifiers accurately within a sandbox environment.

Technically, every creditor_ref generated by the library follows a rigorous structure consisting of the "RF" prefix, followed by a two-digit check sum calculated using the MOD-97 algorithm, and a sequence of three to twenty-one alphanumeric characters. This mathematical validation ensures that the mock data behaves exactly like real-world production data, allowing developers to test validation logic and error-handling routines effectively. Whether you are building a SEPA-compliant application or an internal ledger system, having access to valid check-digit references prevents the common "garbage in, garbage out" problem often encountered during the early stages of financial software development.

The versatility of mock-jutsu makes it an indispensable tool for various testing scenarios across the development lifecycle. Developers can integrate the creditor_ref generator directly into their Python scripts using the jutsu.generate('creditor_ref') method or execute quick checks via the command-line interface. For performance testers, the library provides seamless integration with Apache JMeter through the ${__mockjutsu(creditor_ref,)} syntax. This multi-platform support ensures that whether you are performing unit tests, integration tests, or high-volume load testing, your test data remains consistent, valid, and reliable across all environments.

Ultimately, the primary benefit of using mock-jutsu for generating a creditor_ref is the significant reduction in manual data preparation time. Instead of manually calculating MOD-97 checksums or relying on static, outdated spreadsheets, teams can automate the creation of diverse datasets that cover both edge cases and standard scenarios. This automation not only accelerates the shipping of banking features but also enhances the overall robustness of the application by ensuring that the financial logic is tested against data that mirrors the complexity of the global banking ecosystem.

CLI Usage
mockjutsu generate creditor_refmockjutsu bulk creditor_ref --count 10mockjutsu export creditor_ref --count 10 --format jsonmockjutsu export creditor_ref --count 10 --format csvmockjutsu export creditor_ref --count 10 --format sql
Python API
from mockjutsu import jutsujutsu.generate('creditor_ref')jutsu.bulk('creditor_ref', count=10)jutsu.template(['creditor_ref'], count=5)
JMeter
${__mockjutsu_banking(creditor_ref)}# JMeter Function: __mockjutsu_banking# Parameter 1: creditor_ref# Parameter 2: (not required for this function)
REST API
GET /generate/creditor_ref# → {"type":"creditor_ref","result":"...","status":"ok"}GET /bulk/creditor_ref?count=10POST /template {"types":["creditor_ref"],"count":1}

Other Languages