
Blog
how to setup autocount e-invoice

How to Setup AutoCount E-Invoice: Step-by-Step Guide
Quick answer: To setup AutoCount e-invoice, register AutoCount as an intermediary ERP in the LHDN MyInvois portal, copy the Client ID and Client Secret, then enable e-Invoice in AutoCount and add your company TIN. Once connected, approved invoices submit to MyInvois automatically and return a validated QR code.
Knowing how to setup AutoCount e-invoice means connecting your AutoCount Accounting software to the LHDN MyInvois system so invoices submit and validate automatically. This guide is for Malaysian businesses using AutoCount Accounting 2.2 (on-premise) that need to go live with LHDN e-invoicing. The portal steps are the same for every user; the in-software path here is for the desktop edition.
Before you start, you need three things: a MyInvois portal login (via MyTax with your company TIN), AutoCount Accounting 2.2 with the e-Invoice module, and your company's tax details — TIN, BRN, MSIC code, and SST number if registered.
How to setup AutoCount e-invoice — the steps
The setup has two halves: first you authorise AutoCount inside the MyInvois portal, then you activate e-invoice inside AutoCount using the credentials the portal gives you.
- Log in to the MyInvois portal. Access MyInvois through MyTax using your company's Tax Identification Number (TIN) and password. Complete first-time setup if prompted.
- Open your Taxpayer Profile. In the MyInvois portal, go to the Taxpayer Profile section. This is where you authorise software to submit on your behalf.
- Register AutoCount as your ERP. Scroll to the ERP table and click "Register ERP". Enter a name (for example "AutoCount Accounting 2.2"), set Client Secret Expiration to 3 Years, and register.
- Copy your Client ID and Client Secret. The portal generates a Client ID and Client Secret. Copy both and store them securely — you cannot retrieve the secret again later, and you need it to connect AutoCount.
- Enable e-Invoice in AutoCount. Open AutoCount, go to the e-Invoice tab → e-Invoice Setting. Tick "Enable e-Invoice", set your start date, and click OK.
- Add your company TIN (Tax Entity). In the e-Invoice status section, click to add a new TIN. Enter your Client ID and Client Secret, then activate. Confirm the status shows your system is activated and connected to LHDN.
- Complete your company tax profile. Make sure your Tax Entity record holds your TIN, BRN, MSIC code, business activity description, and SST number if registered. Errors here cause validation failures later.
- Map classification and measurement codes. Assign LHDN classification codes to your items and set unit-of-measurement codes. Invoices missing a classification code will be blocked at submission.
- Create and submit a test invoice. Go to Sales → Invoice → New, select a customer mapped to a Tax Entity, and approve the invoice. Approved invoices submit to MyInvois automatically.
- Confirm validation. Check the e-Invoice status shows "Valid". The validated invoice returns a QR code and LHDN validation link you can print and share with your customer.
Tip: AutoCount offers a Sandbox mode for testing the full flow without affecting live data. Use new test data, not your real account book, to avoid data issues. [VERIFY: confirm sandbox availability in the customer's specific AutoCount version before advising]
What you need before setup
| Requirement | Why it's needed |
|---|---|
| MyInvois portal access (via MyTax) | To authorise AutoCount and generate credentials |
| Company TIN | Identifies your business to LHDN |
| BRN (business registration number) | Required in the Tax Entity record |
| MSIC code | Classifies your business activity |
| SST registration number | Required if your business is SST-registered |
| AutoCount Accounting 2.2 with e-Invoice module | The software that submits to MyInvois |
Common setup problems and fixes
Most AutoCount e-invoice setup failures come from missing or wrongly formatted data, not the connection itself:
- "Document Tax Entity ID not found" — the customer or your company has no TIN mapped. Add the TIN in Tax Entity Maintenance before creating the invoice.
- Missing classification code — an item has no LHDN classification assigned. Set it in the item's e-Invoice field.
- Invoice shows "Invalid" — a mandatory field (TIN, MSIC, contact detail) is wrong or missing. Correct the data and resubmit; approved invoices cannot be edited, only resubmitted.
- Lost Client Secret — you cannot recover it from the portal. Register the ERP again to generate a new secret.
If you need clean e-invoicing across multiple outlets or POS, our AutoCount e-Invoice plugins and add-ons handle consolidated B2C submission and high-volume workflows beyond the standard setup.
Who must use AutoCount e-invoice?
Whether you must submit e-invoices depends on your turnover. Businesses above RM1 million are inside the LHDN mandate; those below are generally exempt, with corporate-structure exceptions. If you are unsure whether the mandate applies to you, read our guide on e-invoice exemption in Malaysia before setting up.
Frequently asked questions
How do I connect AutoCount to LHDN MyInvois?
Register AutoCount as an intermediary ERP in your MyInvois Taxpayer Profile, copy the generated Client ID and Client Secret, then enter them in AutoCount under e-Invoice Setting to activate the connection.
Where do I get the Client ID and Client Secret?
From the MyInvois portal. In your Taxpayer Profile, click "Register ERP" and the portal generates a Client ID and Client Secret. Copy both immediately — the secret cannot be retrieved again afterwards.
Why is my AutoCount e-invoice showing "Invalid"?
A mandatory field is missing or wrongly formatted — usually the TIN, MSIC code, classification code, or a contact detail. Correct the data and resubmit. Approved invoices cannot be edited, only resubmitted.
Can I test AutoCount e-invoice before going live?
Yes. AutoCount provides a Sandbox mode to test the full submission flow. Use new test data rather than your live account book to avoid data issues.
Do I need a separate TIN for each company?
Each Tax Entity needs a unique TIN and BRN combination. If you run multiple companies, create a separate Tax Entity for each in AutoCount.
Stuck on AutoCount e-invoice setup? Get setup help — we'll configure your MyInvois connection, tax entity, and classification codes, and run a test submission so you go live correctly the first time.