Articles on: Taxes & Compliance

How to generate LHDN-compliant E-invoices?(Malaysia)

Refrens helps you generate, download, and share LHDN-compliant e-invoices in just a few clicks.

Let’s see how.

Enabling E-Invoicing for Your Business###



Go to Business Settings > LHDN E-invoices > Click "Enable Now"



Then add the API keys generated from your Complyance account:


Reach out to your account manager to get this API key generated.

Once you add your API key, it will show up in your E-invoicing settings:


Now that integration is set up, you can start creating E-invoices. However, you will need to keep several things in mind while creating documents. Let's understand this:

Creating Documents



While creating an invoice/credit note/debit note, the following fields are mandatory to be filled in:

List of Mandatory Fields

1. Address - In both Billed By and Billed To Addresses, four fields are mandatory:

Street Address

City

State

Country

2. MSIC Category

3. Seller Phone number

4. Seller and Buyer Tax IDs

The following Tax IDs are mandatory to be filled in Seller(Billed By) details:

Seller TIN

Seller SST (Mandatory only for SST-registered businesses)

Seller BRN (Mandatory only for businesses. For Malaysian individuals, a MyKad / MyTentera identification number is required. For non-Malaysian individuals, a Passport number / MyPR / MyKAS identification number (As per the NRIC scheme) is required.)

*Tourism and Tax Registration Number (TTRN) is mandatory in case the seller is a tourism tax registrant, which consists of hotel operators, online travel operators, etc.

The following Tax IDs are mandatory to be filled in Buyer (Billed To) details:

Buyer TIN

Buyer SST (Mandatory only for SST-registered businesses)

Buyer BRN (Mandatory only for businesses. For Malaysian individuals, a MyKad / MyTentera identification number is required. For non-Malaysian individuals, a Passport number / MyPR / MyKAS identification number (As per the NRIC scheme) is required.)

5. Classification Codes

For each line item, 3-digit classification codes (003 for computers, 030 for repairs, etc.) are mandatory.

6. Tax Type

Tax type (such as Sales Tax, Service Tax, Tourism Tax, High Value Goods Tax, Tax Exemption, etc.) for each line item is mandatory.

Let’s see how you can add these details

1. Address

While creating the document, go to the Billed By and Billed To edit sections and fill up the Street Address, City, State, and Country:


2. MSIC Category

Go to the Billed by section > MSIC category > search for your category > Save:


3. Seller Phone number

Add your phone number under Billed By > Addition Details > Phone Number:


4. Tax IDs

Firstly, go to the Billed by/Billed To section, and navigate to Tax Information:


By default, you will be able to see fields for SST, TIN, and VAT.

To add more IDs such as BRN, NRIC, TTR, or PAS, click on “Add more Additional IDs” as shown below:


(Note: For SST & TTR number. the input of special characters is not allowed, except for dash)

Important Note: After adding additional IDs, use the “Use for E-invoice” OR “Use for Invoice” checkboxes to select which ID is used in your Invoice/E-invoice:


5. Classification Codes

While adding items, you will have to select the classification code. Just click on the search icon to select the code relevant to the item added:


6. Tax Type

While adding line items, you will see an option to “Select Tax Type”. Just choose the relevant tax type for the line item and save:



Generating the E-invoice



Once the invoice is ready, click on “Generate E-invoice” on the invoice preview page:



You will see the following form with all the data you have filled:


Verify these details and click on “Generate”. You will see the following modal:


As you see, your e-invoice has been submitted successfully to the Myinvois portal.

Click on “Validate the invoice” to finish the validation process. On successful validation, you will see the following form with E-invoice details:


Note that validation is done by the government’s Myinvois portal, and in some cases it may take several seconds to process.

In these cases, go to Invoice Summary > E-invoice Details > Click on “Validate Now” to finish the validation process:



That’s it! Your E-invoice with the QR code is ready to go:


You can download, print, or directly share it over WhatsApp/email to your clients.

Canceling an E-invoice



In case you want to cancel an E-invoice, go to the document preview page > More > Cancel E-invoice:


Then select the reason for cancellation and click "Cancel E-invoice" to confirm:


Similarly, you can generate, download, and share E-invoices for Credit Notes and Debit Notes as well.

That's it! If you need further assistance, feel free to reach out to us at care@refrens.com OR drop a message on the live chat support for quicker assistance!

Updated on: 22/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!