Test credentials or production credentials?

LHDN runs two MyInvois systems, and each issues its own Client ID and Client Secret. They are not interchangeable.

System Where you get credentials What happens to documents
LHDN test system (preprod) LHDN's preprod MyInvois portal Checked by LHDN, but not official e-invoices
LHDN production system MyInvois inside MyTax Real e-invoices

Which one to use

  • Trying envoice out? You need no credentials at all. New shops start on the internal test mock.
  • Want LHDN to check your documents before going live? Use test credentials with LHDN test system.
  • Ready to issue real e-invoices? Use production credentials with LHDN production system.

Setting them in envoice

  1. Open Settings, then the LHDN tab.
  2. Pick the Environment that matches your credentials.
  3. Paste the Client ID and Client Secret and click Save and verify.

If LHDN refuses them, the message names the environment you picked. That is the clue the pair is from the other system.