creditor_refBanking

Mock Jutsu HOW-TO | EN

The creditor_ref function in the mock-jutsu library is an essential tool for developers and QA engineers working within the fintech and global banking sectors. This specialized generator produces valid ISO 11649 Creditor References, which serve as the international standard for structured references in electronic invoicing and SEPA payments. By utilizing mock-jutsu to create this specific type of mock data, development teams can ensure that their financial applications are prepared to handle real-world transaction data with the highest level of accuracy and compliance.

Every reference generated by the creditor_ref function adheres to a precise mathematical structure. The output begins with the mandatory "RF" prefix, followed by two check digits calculated using the MOD-97 algorithm, and concludes with a string of three to twenty-one alphanumeric characters. Because mock-jutsu strictly follows these international formatting rules, the resulting test data will successfully pass through rigorous validation layers in banking gateways and accounting software. This precision is vital for testing reconciliation logic, where a single misplaced digit in a check-sum could result in a failed payment process or a data mismatch in a ledger.

Integrating this function into your existing workflow is highly efficient, regardless of your preferred environment. Developers can generate values instantly via the terminal using the command mockjutsu generate creditor_ref, or incorporate them directly into Python applications with jutsu.generate('creditor_ref'). For those conducting load testing or performance benchmarks, the library provides a seamless JMeter integration through the syntax ${__mockjutsu(creditor_ref,)}. This flexibility allows teams to populate databases, simulate API responses, or stress-test payment processing pipelines with compliant and diverse identifiers without manual intervention.

Ultimately, using mock-jutsu for generating a creditor_ref provides significant benefits in terms of development speed and system reliability. It eliminates the overhead of manually calculating MOD-97 check digits and ensures that your test data remains consistent across different testing stages. By simulating various alphanumeric combinations and lengths allowed under the ISO 11649 standard, developers can proactively identify edge cases in parsing logic or database storage constraints. This leads to more resilient financial platforms that are ready for the complexities of modern international commerce.

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