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?

  1. Log in to the LHDN MyInvois Portal.
  2. Navigate to your Taxpayer Profile.
  3. Go to Representatives and click Register ERP.
  4. Enter system details and click Generate.
  5. Copy the generated Client ID and Secrets.
Go to Mock Portal

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.