Connect eBil to LHDN MyInvois
This guide walks you through getting your Client ID and Client Secret from MyInvois Portal and connecting them to eBil. Once connected, you can submit e-invoices directly to LHDN from inside eBil — no separate tools needed.
- Your business is registered with LHDN
- You can log in to mytax.hasil.gov.my
- You have your TIN ready
Why do I need this?
LHDN's MyInvois system requires a unique Client ID and Client Secret to verify that submissions are really from you. Think of it like an API password for your business. eBil uses these credentials to send your invoices to LHDN on your behalf, in your name.
Your credentials stay private — they're encrypted in eBil and never shared with anyone else.
Step 1: Log in to MyTax
- Open mytax.hasil.gov.my in your browser
- Log in using your MyTax account credentials
- From the dashboard, click "MyInvois"
Step 2: Open Your Taxpayer Profile
- In the top-right corner of MyInvois Portal, click your profile icon
- Select "View Taxpayer Profile"
- Scroll down to the "Representatives" section
Step 3: Register eBil as Your ERP
- In the Representatives section, click "Register ERP"
- Fill in the form:
- ERP Name: Type
eBil - Client Secret Expiration Date: Pick a date roughly 3 years from today
- This is my main ERP: Tick this box
- ERP Name: Type
- Click "Register"
Step 4: Copy Your Credentials ⚠️
After clicking Register, MyInvois shows three values:
- Client ID — copy this
- Client Secret 1 — copy this (you'll use this in eBil)
- Client Secret 2 — copy this too as a backup, in case Secret 1 is ever compromised
Paste them into a safe place temporarily — a notes app, a password manager, or your email drafts. Don't share these with anyone.
Tick "I confirm I have copied & saved the Client Secrets" to finish.
Step 5: Connect in eBil
- Open eBil → tap Settings
- Tap "Connect to LHDN" (or "LHDN Settings" if already partly set up)
- Paste your Client ID into the first field
- Paste your Client Secret 1 into the second field
- Tap "Connect"
eBil will test the connection with LHDN. If everything's correct, you'll see a green confirmation. You're now ready to submit e-invoices directly from any bill you create.
Common issues
"Invalid credentials" error
Most common cause: a stray space when copying. Re-copy your Client ID and Secret, making sure no spaces at the start or end. If still failing, generate a fresh set in MyInvois Portal.
"Connection timeout"
LHDN's API has occasional outages. Wait 5 minutes and try again. If persistent, check mytax.hasil.gov.my directly to see if it's accessible.
"My ERP name is already taken"
Each ERP name has to be unique within your account. Try eBil-1 or eBil-Invoicing.
I lost my Client Secret
You can't retrieve it — they're shown only once. Solution: in MyInvois Portal, delete the eBil ERP registration, then register a new one. You'll get fresh credentials.
My credentials expired
Client Secrets expire based on the date you set during registration. To renew: in MyInvois Portal, go to the registered ERP and regenerate the secret. Paste the new one into eBil.
Is this safe?
Yes. Your Client ID and Secret are encrypted at rest in eBil's database using application-layer encryption. They're never logged, never shared, and used only to submit invoices on your behalf.
If you ever want to disconnect, go to eBil → Settings → LHDN Connection → Disconnect. We delete the encrypted credentials immediately.
Still stuck?
Email us at hello@ebil.my with a description of what step you're stuck on. We usually respond within a day.