Founder guide · Launch & compliance

Does my app need LHDN e-invoicing (MyInvois), and what does integration involve?

By Jayden Sue Jun Hong · Updated 2026-11-15

Short answer

Only if your business is in scope. Since LHDN's guideline of 30 August 2026, businesses with annual turnover or revenue below RM3 million are exempt, unless a corporate shareholder, holding company or related company is at or above that level. If you are in scope, or you run an e-commerce platform that issues e-invoices for its merchants, each invoice must be validated by LHDN's MyInvois system: by hand on the free MyInvois Portal, through your own API integration, or through a middleware or Peppol provider. The rules have changed several times, so check LHDN's latest guidance before you build.

What MyInvois is

An e-invoice in Malaysia is not a PDF. It is a structured data file (XML or JSON, using the UBL 2.1 standard) that is sent to LHDN's MyInvois system before or as you give it to the buyer. LHDN validates it, usually in under two seconds, and returns a Unique Identifier Number plus the information needed to build a validation link. The copy you send the buyer must carry a QR code that lets anyone check the e-invoice on the MyInvois Portal (LHDN e-Invoice Guideline v4.8; LHDN e-Invoice FAQ).

The guideline lists 55 data fields grouped into eight categories, from supplier and buyer details to product classification codes and tax. Failing to issue an e-invoice when you are required to is an offence under section 120(1)(d) of the Income Tax Act 1967, with a fine of RM200 to RM20,000, up to six months in prison, or both, for each non-compliance (LHDN e-Invoice FAQ).

Who must comply, and from when

LHDN rolled e-invoicing out by annual turnover or revenue, based on your audited financial statements for financial year 2022 (or your YA2022 tax return if you have no audited accounts). Once your date is set, later changes in turnover do not move it (LHDN implementation timeline, updated 30 August 2026).

Mandatory fromInterim relaxation period
More than RM100 million1 August 20241 August 2024 – 31 January 2025
RM25 million – RM100 million1 January 20251 January 2025 – 30 June 2025
RM5 million – RM25 million1 July 20251 July 2025 – 31 December 2025
RM3 million – RM5 million1 January 2026Until 31 December 2027
Below RM3 million, not exempt (for example, part of a larger group)1 July 2026Until 31 December 2027
Below RM3 million, exemption criteria metExemptNot applicable

The RM3 million exemption. The exemption threshold was raised from RM1 million to RM3 million in guideline version 4.8. It applies to all types of taxpayer, but not if you have a corporate shareholder, a holding company, or a related company or joint venture with turnover of RM3 million or more. LHDN's FAQ confirms that eligible businesses which had already started issuing e-invoices can stop without applying, and will not be penalised for not issuing since their original date (LHDN e-Invoice FAQ, questions 15–18).

New businesses. A business that started in 2023–2025 and reached RM3 million in any of those years must comply from 1 July 2026. A business that meets the exemption criteria and first reaches RM3 million in 2026 or later must comply from 1 January of the second year after that year: reach RM3 million in YA2026 and your date is 1 January 2028. A new subsidiary of a group that already issues e-invoices does not meet the criteria, so it complies from 1 July 2026 or the day it starts operating, whichever is later (LHDN e-Invoice FAQ, questions 13–14).

Relaxation and corrections. During the interim relaxation period, businesses that are not ready to issue individual e-invoices may submit monthly consolidated e-invoices instead. LHDN is also running an e-Invoice Special Voluntary Disclosure Programme from 7 July 2026 to 31 December 2027 for correcting past mistakes. These dates have moved before: confirm them on LHDN's e-invoice pages before you rely on them.

Does your app or platform need it?

  • Your company is below RM3 million and standalone: you are exempt. You can still opt in voluntarily, and a larger customer cannot force you to issue e-invoices before your own date (FAQ question 107).
  • You sell to consumers (B2C): if a customer does not ask for an e-invoice, you give a normal receipt and submit one consolidated e-invoice for the month within seven calendar days after month end. Some transactions can never be consolidated, including any single transaction above RM10,000 from 1 January 2026, motor vehicle sales and flight tickets (e-Invoice Specific Guideline v4.9, sections 3.6 and 3.7).
  • You run an e-commerce platform or marketplace: the platform provider takes on the supplier role. It issues the e-invoice (or receipt) to the purchaser, and a self-billed e-invoice to each merchant to record the merchant's income, which can follow your existing statement cycle. Merchants do not issue e-invoices for sales made on the platform (Specific Guideline section 14; FAQ questions 106 and 110).
  • You sell SaaS or services to businesses (B2B): in-scope customers will ask for e-invoices with their TIN and details, so your billing system needs to capture them.
  • You pay foreign suppliers for cloud hosting, software subscriptions or ads: if you are in scope, you issue a self-billed e-invoice for imported services by the end of the month after you pay or receive the invoice, whichever is earlier (FAQ question 38).

MyInvois Portal vs API vs middleware

LHDN offers two ways to transmit e-invoices: its own MyInvois Portal, or an API. The API can be connected directly to your system, or through a Peppol or non-Peppol technology provider. You can use a mix of methods, but reconcile them so nothing is submitted twice (LHDN e-Invoice Guideline v4.8, section 2.2; FAQ question 134).

MyInvois PortalDirect API integrationMiddleware or Peppol provider
CostFree from LHDNDevelopment time plus ongoing maintenanceProvider fees (subscription or per document)
How it worksFill in a form, or upload a spreadsheet batchYour backend builds, signs and submits documents through the SDKYour system sends data to the provider, which talks to LHDN
Best forLow volumes, manual invoicingHigh volumes and custom platforms with their own developersTeams that want a managed connection
Main riskManual errors; does not scaleYou must keep up with every LHDN specification changeDependence on the provider

There is currently no registration or certification requirement for technology providers, so check a provider's track record yourself (FAQ questions 138–139). Peppol is allowed as a transmission method; MDEC handles Peppol queries.

What your app needs to build

  1. Collect buyer details at checkout or sign-up

    Name, TIN, business registration or MyKad number, address, phone and SST number where relevant. LHDN's Validate Taxpayer's TIN API lets you check a TIN before you use it. General TINs exist for cases such as consolidated sales to the public (EI00000000010) and foreign buyers without a TIN (EI00000000020).

  2. Generate the document

    Map your invoice data to the UBL 2.1 structure in JSON or XML, with the right classification codes and your MSIC code. Credit notes, debit notes, refund notes and self-billed invoices are separate document types.

  3. Sign and submit

    API submissions are signed with a digital certificate. Respect the limits: 5MB and 100 documents per submission, and 300KB per document (MyInvois SDK).

  4. Handle validation results

    Store the Unique Identifier Number and validation date and time, build the validation link, and put the QR code on the receipt or invoice you send. Show clear errors when a document is rejected so staff can fix and resubmit.

  5. Support cancellations and rejections

    A supplier can cancel, and a buyer can request rejection, only within 72 hours of validation. After that, corrections need a credit, debit or refund note (e-Invoice Guideline v4.8, section 2.4.5).

  6. Run the monthly jobs

    A scheduled job to build consolidated e-invoices for receipts where no e-invoice was requested, and self-billed e-invoices for foreign purchases, split to fit the size limits.

  7. Plan for downtime

    If MyInvois is down, suppliers have 72 hours after it comes back to issue the e-invoice, so build a retry queue rather than blocking sales (FAQ question 143).

  8. Add a request flow for consumers

    A simple "request e-invoice" link on the receipt lets individual customers submit their details instead of emailing your team.

What drives the integration cost

There is no standard price. The MyInvois Portal itself is free. For an API or middleware route, the cost depends on:

  • How many systems create invoices: app, POS, admin panel, subscription billing, accounting software.
  • How many document types you need: invoices only, or also credit notes, refunds, self-billed and consolidated e-invoices.
  • Volume and timing: real-time submission at checkout is more work than a nightly batch.
  • Whether your accounting or billing software already supports MyInvois. If it does, connecting to it can be much cheaper than building your own integration.
  • Multiple entities, foreign buyers or marketplace flows, which add rules and testing.
  • Ongoing changes: LHDN has updated its guidelines and specifications several times, so budget for maintenance, not just the first build.

As one reference point, Malaysian developer AdvisoryApps estimates that a typical integration for an existing custom system takes four to eight weeks (AdvisoryApps). To turn time into money, use the same method as our app cost guides: estimated hours multiplied by a typical Malaysian agency rate, plus overhead. Our integration team can scope this as one option; ask your tax agent to confirm your obligations first.

Frequently asked questions

Does my startup need e-invoicing if revenue is below RM3 million?

Usually not. Businesses with annual turnover or revenue below RM3 million are exempt, unless they have a corporate shareholder, holding company or related company with turnover of RM3 million or more. Once you reach RM3 million, you must start from 1 January of the second year after that year. Check LHDN's latest guidance, as thresholds have changed before.

Is the MyInvois Portal free?

Yes. LHDN provides the MyInvois Portal free of charge, including batch upload by spreadsheet. API integrations and middleware providers have their own development or subscription costs.

How much does MyInvois API integration cost?

It depends on how many systems issue invoices, the document types you need, volume and whether your existing software already supports MyInvois. Get a written scope and quote, and budget for maintenance because LHDN updates its specifications.

Can I cancel an e-invoice after it is validated?

Yes, but only within 72 hours of validation. After 72 hours, you correct it by issuing a credit note, debit note or refund note e-invoice.

Do sellers on an e-commerce platform need to issue e-invoices?

Not for sales made on the platform. LHDN places that obligation on the e-commerce platform provider, which issues the e-invoice to the buyer and a self-billed e-invoice to the merchant. Sales made through your own shop or website are still your responsibility if you are in scope.