sg_uenIntlIDs

Mock Jutsu HOW-TO | UK

The sg_uen function within the mock-jutsu library is a specialised tool designed for developers and QA engineers who need to simulate Singaporean business identifiers. As a core component of the IntlIDs category, this function generates a valid Unique Entity Number (UEN), which is the standard identification issued by the Accounting and Corporate Regulatory Authority (ACRA) to registered entities in Singapore. By providing high-quality mock data, mock-jutsu enables teams to build and test enterprise-grade applications without the legal or ethical risks associated with using real-world corporate information.

Technically, the sg_uen generator adheres to the strict formatting requirements of the Singaporean government. Each generated string consists of eight digits followed by a single check letter, such as 12345678X. To ensure the integrity of your test data, the library implements the MOD-11 checksum algorithm. This ensures that the generated UENs are not just random strings but are mathematically valid, allowing them to pass through front-end validation logic and back-end database constraints seamlessly during the development lifecycle.

Versatility is a core strength of mock-jutsu, and the sg_uen function is accessible across various environments to suit different workflows. Python developers can integrate it directly into their scripts using jutsu.generate('sg_uen'), while those working with performance testing tools can leverage the JMeter syntax ${__mockjutsu(sg_uen,)}. Furthermore, the command-line interface allows for rapid generation via mockjutsu generate sg_uen, making it incredibly easy to seed databases or generate CSV files for bulk testing. This flexibility ensures that regardless of your tech stack, high-fidelity mock data is always within reach.

Implementing sg_uen in your testing scenarios is particularly beneficial for verifying KYC (Know Your Customer) workflows, B2B payment gateways, and regulatory compliance platforms. By using synthetic test data that mirrors the exact structure of real identifiers, developers can identify edge cases in their validation logic long before the code reaches production. Ultimately, mock-jutsu streamlines the development process, reducing the time spent on manual data entry and ensuring that your software remains robust and reliable when handling international identification formats.

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

Parameters

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

Other Languages