de_stnrIntlIDs

Mock Jutsu HOW-TO | EN

The de_stnr function within the mock-jutsu library is a specialized tool designed to generate authentic German Steuernummer identifiers. As businesses expand their digital footprint in the DACH region, the need for high-quality test data that adheres to local financial standards becomes paramount. This function specifically targets the ELSTER unified 13-digit format, ensuring that developers can simulate tax-related workflows without using sensitive real-world information. By integrating this capability into your testing suite, you can validate data entry forms and backend processing logic with precision and confidence.

Technically, the de_stnr generator follows the modern standard required for electronic tax declarations in Germany. While older formats historically varied by federal state, the unified 13-digit structure produced by mock-jutsu ensures cross-regional compatibility and compliance with current financial reporting protocols. The generated mock data includes the necessary components: the state code, the district tax office identifier, and the unique personal or corporate sequence, concluding with a mathematically valid check digit. This level of detail is crucial for bypassing validation filters where simple random strings would fail internal checksum audits.

For software engineers and QA professionals, the versatility of mock-jutsu provides multiple points of entry for generating test data. Whether you are running a quick verification via the CLI with "mockjutsu generate de_stnr", automating a Python-based test suite using "jutsu.generate('de_stnr')", or performing heavy load testing in JMeter with the specific mock-jutsu function syntax, the output remains consistent and reliable. This flexibility allows development teams to maintain a single source of truth for localized identifiers across different stages of the DevOps pipeline, from initial prototyping to final regression testing.

Utilizing the de_stnr function significantly reduces the friction associated with manual data creation. It is particularly beneficial for testing Enterprise Resource Planning (ERP) systems, accounting software, and Know Your Customer (KYC) onboarding flows. By leveraging mock-jutsu, developers can ensure their applications are fully compliant with German tax formatting requirements, leading to more robust software and fewer production errors related to data validation. This automated approach to generating localized mock data empowers teams to focus on core feature logic while maintaining the highest standards of data integrity.

CLI Usage
mockjutsu generate de_stnrmockjutsu bulk de_stnr --count 10mockjutsu export de_stnr --count 10 --format jsonmockjutsu export de_stnr --count 10 --format csvmockjutsu export de_stnr --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate de_stnr --maskmockjutsu bulk de_stnr --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('de_stnr')jutsu.bulk('de_stnr', count=10)jutsu.template(['de_stnr'], count=5)# mask=True: regulation-compliant outputjutsu.generate('de_stnr', mask=True)jutsu.bulk('de_stnr', count=5, mask=True)
JMeter
${__mockjutsu_intl_ids(de_stnr)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: de_stnr# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(de_stnr,mask)}
REST API
GET /generate/de_stnr# → {"type":"de_stnr","result":"...","status":"ok"}GET /bulk/de_stnr?count=10POST /template {"types":["de_stnr"],"count":1}# mask=true: regulation-compliant outputGET /generate/de_stnr?mask=trueGET /bulk/de_stnr?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages