Malaysian e-Invoicing UUID (LHDN) Validator
Validate the authenticity, format, and checksum of Malaysian e-Invoicing UUID (LHDN).
About Malaysian e-Invoicing UUID (LHDN) Validation
Malaysia's e-Invoicing mandate is administered by the Inland Revenue Board of Malaysia (LHDN) via the MyInvois portal under Section 82 of the Income Tax Act 1967. The phased mandate spans 2024 to 2026 across B2B, B2C, and B2G operations.
Each invoice submitted to LHDN APIs requires a Universally Unique Identifier (UUID v4 in `8-4-4-4-12` hex format) and a SHA-256 cryptographic digest computed over the canonical UBL 2.1 XML / JSON payload for timestamping and non-repudiation.
Anatomy & Structure of e-Invoicing (MyInvois) — Malaysia
The Malaysian e-Invoicing model combines tax and corporate identification:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| Part 1 | Supplier/Buyer TIN | 11–13 chars | Official Tax Identification Number issued by LHDN | C12345678901 |
| Part 2 | Entity BRN / NRIC | 12 digits | SSM corporate registration number or MyKad civil ID | 202301012345 |
MyInvois Cross-Validation (LHDN 2024)
Compliance rules for Malaysian e-Invoicing:
Validation of TIN (LHDN prefix) + Validation of BRN (12-digit SSM)
- 1. Validate integrity of the Tax Identification Number (TIN).
- 2. Validate the 12-digit Business Registration Number (BRN).
- 3. Verify consistency between taxpayer category and registration.