Free Consultation WhatsApp Us
Home Blog LHDN e-Invoice Integration for Custom Software: What Malaysian Businesses Must Do in 2026

LHDN e-Invoice Integration for Custom Software: What Malaysian Businesses Must Do in 2026

June 10, 2026 · 10 min read
Engineering e-invoiceLHDNMyInvoiscustom softwareMalaysia

Every Malaysian business above RM1 million turnover now falls under LHDN's e-invoice mandate. Here is how to integrate custom software with MyInvois before full enforcement in January 2028.

LHDN e-Invoice Integration for Custom Software: What Malaysian Businesses Must Do in 2026

As of January 2026, every Malaysian business with annual turnover above RM1 million is legally inside LHDN’s e-invoice mandate. The final wave — businesses between RM1 million and RM5 million — started on 1 January 2026, and in April 2026 LHDN extended its penalty-free relaxation period to 31 December 2027, with full enforcement from 1 January 2028. That longer runway comes with a sharp edge: any single transaction above RM10,000 already requires its own validated e-invoice today, relaxation or not. If your business runs on custom software, the integration question is current, not future.

In short: LHDN e-invoice integration means connecting your billing system to the MyInvois platform so every invoice is validated by LHDN in near real time. Businesses above RM1 million turnover must comply; full enforcement for the final phase starts 1 January 2028, but single transactions above RM10,000 already need individual e-invoices now. Integration paths are the MyInvois portal (manual), middleware, or direct API.

This guide explains where the mandate stands in mid-2026, what the MyInvois API actually requires from your software, and how we approach the integration for clients running custom-built systems.

Where the LHDN e-Invoice Mandate Stands in June 2026

The rollout that began in August 2024 is now in its final phase, and the plan has shifted twice. The exemption threshold was doubled from RM500,000 to RM1 million effective 1 January 2026, and in April 2026 LHDN’s e-Invoice Specific Guideline v4.7 extended the Phase 4 relaxation period through 31 December 2027 — pushing full enforcement for the final wave to 1 January 2028.

PhaseAnnual TurnoverMandatory FromEnforcement Status (June 2026)
1Above RM100 millionAugust 2024Fully enforced
2RM25M – RM100MJanuary 2025Fully enforced
3RM5M – RM25MJuly 2025Fully enforced
4RM1M – RM5MJanuary 2026Relaxation period until 31 December 2027; enforcement 1 January 2028
4 (new businesses)RM1M+, commenced YA 2023–2025July 2026Relaxation period until 31 December 2027; enforcement 1 January 2028
Below RM1 millionExemptWith caveats — see the FAQ below

During the relaxation period, Phase 4 businesses can issue consolidated e-invoices with general descriptions, and penalties are suspended for genuine compliance efforts. After 1 January 2028, non-compliance carries fines of RM200 to RM20,000 per offence, imprisonment of up to six months, or both, under Section 120(1)(d) of the Income Tax Act 1967 — and each invoice issued outside the system can count as a separate offence.

One rule is not relaxed: the RM10,000 rule. Since 1 January 2026, any single transaction exceeding RM10,000 requires its own individual, LHDN-validated e-invoice — consolidated e-invoices are not allowed for it, even during the relaxation period (e-Invoice Specific Guideline v4.7, Section 3.7). A business with even occasional big-ticket sales needs working MyInvois submission now, not in 2027.

The practical takeaway: the extended relaxation is breathing room for workflow changes, not a reason to park the project. Integration, testing, and staff training take months — and the RM10,000 rule plus B2B customers demanding e-invoices mean most Phase 4 businesses need the capability well before enforcement.

What Is e-Invoice Integration?

E-invoice integration is the connection between your billing software and LHDN’s MyInvois system, where every invoice is submitted as structured data, validated by LHDN, and returned with a Unique Identifier Number (UIN) and QR code before it reaches your customer. Malaysia uses a clearance model — the tax authority validates the invoice during the transaction, not after.

That changes the engineering requirements compared to old-style invoicing:

  • Structured data, not PDFs — invoices are submitted as XML or JSON following the UBL 2.1 schema
  • 55 mandatory fields — covering seller and buyer details (including TIN), line items, taxes, totals, and payment information
  • Real-time validation — your system must handle LHDN’s response, including rejections
  • A 72-hour window — buyers can reject and sellers can cancel a validated e-invoice within 72 hours; after that, corrections require credit or debit notes
  • QR code embedding — the validated invoice carries a QR code linking to its record on MyInvois

If your invoicing currently lives in a custom ERP, a point-of-sale system, or a billing module we built into your platform, each of those touchpoints now needs a compliant submission path.

Portal, Middleware, or Direct API: Which Path Fits Your Business?

There are three ways to comply, and choosing the wrong one is the most common (and most expensive) early mistake we see.

PathHow It WorksBest ForLimitation
MyInvois PortalManual entry or spreadsheet upload on LHDN’s free portalVery low volume (a handful of invoices monthly)Does not scale; double data entry; human error
MiddlewareYour system sends invoice data to an intermediary that handles MyInvois submissionSMEs on accounting packages or mixed systemsSubscription cost; dependent on vendor roadmap
Direct APIYour software calls the MyInvois API directly with LHDN-issued credentialsCustom systems, high volume, real-time workflowsRequires development capability and ongoing maintenance

For businesses already running custom software, the direct API route usually wins on total cost within two to three years — you control the workflow, there is no per-invoice middleware fee, and the e-invoice step disappears into your existing billing process instead of becoming a separate chore.

This is the same build-versus-subscribe trade-off we covered in custom software vs SaaS for Malaysian businesses — recurring fees buy speed, ownership buys control.

What Direct MyInvois API Integration Requires

The technical requirements are well defined in LHDN’s Software Development Kit (SDK). A compliant integration must handle:

  1. Digital certificate and authentication — register on MyInvois, verify identity with your TIN and BRN, and authenticate via OAuth 2.0 token flows
  2. Document assembly — map your invoice data to the UBL 2.1 schema with all 55 fields, including buyer TIN validation
  3. Submission and response handling — submit via HTTPS, parse the validation response, store the UIN, and embed the QR code on the customer-facing invoice
  4. Rejection and cancellation flows — handle buyer rejections and seller cancellations within the 72-hour window, plus credit and debit notes after it
  5. Consolidated e-invoices — for B2C transactions, aggregate receipts into a monthly consolidated submission
  6. Sandbox testing — validate the full flow in LHDN’s preprod environment before going live

None of this is exotic engineering — but it is unforgiving. A missing field, a malformed TIN, or an unhandled rejection breaks the legal validity of the invoice, not just the user experience.

How We Build e-Invoice Compliance Into Custom Systems

Advisory Apps has delivered 200+ custom systems since 2012, and e-invoice readiness is now a standard requirement in nearly every billing-related build. Two of our production modules do the heavy lifting:

A typical integration project for an existing custom system runs four to eight weeks: an audit of every invoice-generating touchpoint, field mapping against the 55-field schema, API development against the sandbox, then a parallel run before cutover. Businesses with multiple revenue streams — retail POS plus project billing plus subscriptions, for example — need each stream mapped separately, which is where most timelines stretch.

If you are scoping a new system this year, build e-invoice submission in from day one. Retrofitting costs more than designing for it — a pattern we flagged as early as 2024 in how SMEs scope their first app in the e-invoice era.

Common e-Invoice Integration Mistakes

These are the failure patterns we encounter most when businesses come to us mid-integration:

  • Treating the relaxation period as a postponement — it is a testing window, not a delay; consolidated submissions still must happen, and the RM10,000 individual e-invoice rule is enforced throughout
  • Mapping only the happy path — rejection handling, cancellations, and credit notes are where audits find gaps
  • Forgetting non-invoice documents — self-billed e-invoices, refunds, and debit notes are part of the mandate
  • Hard-coding against today’s schema — LHDN has revised guidelines multiple times since 2024; your integration needs a maintainable mapping layer
  • Ignoring the accounting hand-off — a validated e-invoice that never reaches your ledger creates a reconciliation problem every month-end

Frequently Asked Questions

How long does MyInvois API integration take for a custom system?

Four to eight weeks for a typical single-stream billing system, including sandbox testing and a parallel run. Multi-stream businesses (POS plus B2B invoicing plus online sales) should budget eight to twelve weeks.

My turnover is below RM1 million — can I ignore e-invoicing?

Not automatically. The exemption does not apply if your business has a non-individual (corporate) shareholder with RM1 million or more in annual turnover, is a subsidiary of a holding company above that threshold, or has a related company or joint-venture partner that meets it — the group structure pulls you into scope even if your own revenue is below RM1 million. And even genuinely exempt businesses face commercial pressure: B2B customers inside the mandate increasingly request e-invoices for their own records.

Does my existing accounting software handle this?

Malaysian packages like AutoCount, QNE, and SQL Account have added MyInvois support — but if your invoices originate in a custom system before reaching accounting, the integration gap is between those two systems. That bridge is exactly what middleware like our Accounting & ERP Sync module is built for.

Key Takeaways

E-invoicing in Malaysia is no longer a future requirement — it is the operating reality for every business above RM1 million turnover. Phase 4 businesses have a relaxation period until 31 December 2027 before penalties of RM200 to RM20,000 per offence become enforceable, but the RM10,000 individual e-invoice rule already applies today. For custom software, direct MyInvois API integration offers the lowest long-term cost and the cleanest workflow, but it needs proper field mapping, rejection handling, and sandbox validation — work measured in weeks, not days.

Running a custom system that is not yet e-invoice ready? Book a free consultation with our team — we will audit your invoice touchpoints, map the integration scope against the MyInvois requirements, and give you a realistic timeline to be compliant well before the January 2028 enforcement date. You can also explore our custom system development service to see how we approach builds like this end to end.

Eddy Goh

Eddy Goh

Chief Technology Officer at Advisory Apps

Eddy leads the technology strategy and engineering teams at Advisory Apps, delivering enterprise software, mobile apps, and AI solutions across Southeast Asia.

Connect on LinkedIn
Share

Have a project in mind?

Let's discuss how we can build a custom solution tailored to your needs.

Get a Free Consultation

Need help? Chat with us on WhatsApp for instant support!