LHDN API Integration
Connect MyInvoisAI directly to the LHDN MyInvois System using OAuth 2.0 Client Credentials. You can obtain these credentials by registering an ERP on the MyInvois Portal.
https://preprod-api.myinvois.hasil.gov.my
Used as a fallback during secret rotation.
How to get API Keys?
- Log in to the LHDN MyInvois Portal.
- Navigate to your Taxpayer Profile.
- Go to Representatives and click Register ERP.
- Enter system details and click Generate.
- Copy the generated Client ID and Secrets.
Security Notice
Your Client Secrets are encrypted at rest using AES-256. MyInvoisAI uses these credentials exclusively to negotiate OAuth 2.0 Bearer tokens with the LHDN Identity Service. Tokens are cached and rotated automatically.