co_nitIntlIDs

Mock Jutsu HOW-TO | EN

The co_nit function within the mock-jutsu library is a specialized tool designed to generate realistic Colombian tax identification numbers, known as the Número de Identificación Tributaria. For developers building applications that interface with Colombian financial systems, corporate registries, or localized e-commerce platforms, having access to accurate test data is critical. This function simplifies the development process by providing 10-digit identifiers that adhere strictly to the official formatting standards used by the DIAN (Dirección de Impuestos y Aduanas Nacionales). By integrating this utility into your workflow, you ensure that your software handles regional identification requirements with high precision and reliability.

From a technical perspective, the co_nit utility generates a sequence consisting of nine base digits followed by a single verification digit. This check digit is not randomly assigned; it is calculated using a specific Modulo 11 algorithm, which is the official validation method for Colombian business identifiers. This level of technical accuracy ensures that the mock data produced by mock-jutsu will pass through front-end validation scripts and back-end database constraints without triggering validation errors. Whether you are performing individual unit tests or complex integration tests involving third-party APIs, the consistency of the generated strings allows for a seamless and realistic development experience.

Flexibility is a core feature of mock-jutsu, and the co_nit function is accessible through multiple interfaces to suit various development environments. Python developers can quickly invoke jutsu.generate('co_nit') within their scripts to populate objects or dataframes, while DevOps engineers might prefer the command-line interface using mockjutsu generate co_nit for rapid prototyping or automated shell scripting. Additionally, performance testers can utilize the ${__mockjutsu(co_nit,)} syntax in JMeter to simulate high-load scenarios involving thousands of unique corporate profiles. This cross-platform versatility makes it an indispensable asset for modern CI/CD pipelines and automated testing suites.

Utilizing co_nit for test data is particularly beneficial in scenarios such as KYC (Know Your Customer) verification, ERP system implementation, and regional tax compliance auditing. Instead of relying on static or improperly formatted placeholders, engineering teams can populate their staging environments with dynamic, high-fidelity data that mimics real-world inputs. This proactive approach to quality assurance helps identify edge cases early in the development lifecycle, significantly reducing the risk of production failures due to data format mismatches. Ultimately, mock-jutsu empowers developers to focus on building robust features while it handles the complexities of international identification standards effortlessly.

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

Parameters

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

Other Languages