How One Developer Built LHDN e-Invoice Compliance Into a Multi-Tenant ERP
A solo developer integrated Malaysia's LHDN MyInvois e-Invoice mandate into Urusentra, a construction ERP built for Malaysian SMEs. The integration required handling OAuth authentication, UBL 2.1 payload construction, asynchronous validation polling, TIN verification, and Celery-based orchestration. Multi-tenancy added complexity, as each business on the platform holds its own MyInvois credentials and environment settings, making credential isolation critical to prevent cross-tenant submission errors. LHDN's asynchronous validation model also meant the system had to poll for results patiently, since aggressive polling risks being flagged as abusive traffic. Downstream documents like Credit Notes further complicated the flow, as they require LHDN-assigned UUIDs from already-validated invoices before they can be submitted.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in