Enter your LHDN credentials into envoice

Audience: Shop owner (Admin) Time: 3 minutes You'll need: the Client ID and Client Secret from the previous guide.

Going live takes two steps. First you save and verify your MyInvois credentials on the LHDN tab. Then you choose where documents go on the Sandbox tab. Verifying credentials never starts filing on its own, so you can set them up safely at any time.


1. Open Settings > LHDN

From the dashboard, open Settings, then the LHDN tab. While the shop is still filing to the internal test mock, a note says no LHDN credentials are needed yet.

LHDN tab before any credentials are saved

2. Choose the environment

Pick the Environment your credentials belong to:

  • LHDN test system: LHDN's preprod system. Documents sent there are test documents, not official e-invoices.
  • LHDN production system: the real MyInvois system. Documents sent there are real e-invoices.

Each environment has its own Client ID and Client Secret, registered separately in MyInvois.

3. Paste your credentials and verify

  1. Paste the Client ID from the ERP registration.
  2. Paste the Client Secret you copied. When you update the credentials later, leave the secret blank to keep the current one.
  3. Click Save and verify.

envoice checks the credentials against LHDN. When the check passes, the status shows the date and time they were verified.

4. Choose where documents go

Open Settings > Sandbox. The top of the card shows the Current filing destination.

Sandbox tab showing the internal test mock as the current destination

  1. Under Where should documents go? pick one:
    • Internal test mock: try the filing flow without sending anything to LHDN.
    • LHDN connection: send documents to the LHDN system you verified in step 3. It stays greyed out until your credentials are verified.
  2. If you picked LHDN connection, tick the confirmation. For production it reads: "I understand future submissions will go to LHDN production as real e-invoices."
  3. Click Save destination.

5. Test it

Create an invoice (Documents > New) and submit it. On the LHDN test system it runs through the full flow and comes back validated, which proves everything is wired correctly. When you are ready for real e-invoices, verify your production credentials in step 3 and save the destination again in step 4.

Changing the environment on the LHDN tab returns the shop to the internal test mock until you confirm the destination again. This stops documents going to the wrong system by accident.

envoice submits through the MyInvois v1.0 API, so you do not need a digital certificate. Your Client ID and Client Secret are all it takes.


Back to: All guides