E-Invoice Validation: What BigLedger and LHDN Check — the Buyer's Identity, the Mandatory Fields and the General TINs
Part 2 of LHDN rejected it — e-invoice validation rules and troubleshooting: the rules the buyer’s identity, the fields and the General TINs are checked against — the mandatory fields by BigLedger before anything is sent, the rest by LHDN on what arrives — which is where most rejections come from. It follows the fix loop on the first page, which says where the rejection is shown and how to resubmit. GadgetSphere’s customers run from walk-in shoppers who give nothing but a phone number, through corporate buyers with a registration number, to tourists paying with a passport, and every rule below is one that mix breaks.
Correct a record before LHDN says Valid: Save and Resubmit stops working once LHDN says Valid, and from then on only a cancellation inside 72 hours or a credit note will do (Cancelling and Correcting a Validated E-Invoice).
Get the buyer’s identity right — this is where most rejections come from
Every e-invoice carries, for both parties, a tax identification number (TIN) plus an identity document type and its value. Get any part of it wrong — the wrong kind of document, or the right number in the wrong shape — and LHDN refuses the e-invoice.
The rule is short:
- Business registration number (BRN) for a company.
- Passport for an individual who is not Malaysian — never a national identity number.
- National identity number (NRIC) only for a Malaysian individual, and only as 12 digits with no dashes.
- Type it. Don’t paste it.
Read the first two rules together: passport is the rule for a person, not for anyone non-Malaysian. A Singapore or Hong Kong company is not an individual, and it does not take a passport — it takes a business registration number, carrying the number its own home country issued it, alongside the EI00000000030 General TIN for a foreign supplier or EI00000000020 for a foreign buyer.
One of these formats BigLedger checks itself before anything is sent: since a backend change merged on 20 October 2026, a passport number longer than 12 characters fails BigLedger’s mandatory check and holds the document in a pool with Buyer passport number must be 12 characters or fewer (Supplier… on a self-billed purchase), and an existing e-invoice record carrying one is refused with the same message when it is sent. The other identity-format rules in this section are LHDN’s, applied to what arrives.
Three shapes of mistake produce those refusals:
- A foreign customer keyed under NRIC instead of Passport. A passport number is not 12 digits, so LHDN rejects it as an invalid national identity number. Fix the identity type in two places: on the e-invoice record’s Details tab, for the document LHDN has already rejected, and on the customer record, for the next sale.
- A national identity number stored with hyphens. The rule is 12 digits and nothing else, and the hyphens alone are enough to have the document refused — the same number without them passes.
- A business registration number typed into the national-identity field. It is the right number in the wrong box.
The two error codes you will see for this class are CF324 (the identification number is not a valid national identity number) and CF358 (invalid buyer TIN). Both are fixed in two places. On the e-invoice record LHDN marked Invalid, correct the buyer on its Details tab in My E-Invoice Admin and use Save and Resubmit (on a sale, if the buyer fields are greyed out, a setting has locked them, and only a role allowed to edit them can make the change) — the record sends its own copy of the buyer (which party an e-invoice names as buyer), taken when it was built, and correcting the customer changes nothing on it (why).
Then correct the Customer Applet as well, so the customer’s next sale is right too.
Mandatory fields
Document header
Every e-invoice needs, at minimum:
- Supplier: name, TIN, identity type + value, industry classification code, business activity description, address, contact number
- Buyer: name, TIN, identity type + value, address, contact number
- Document: e-invoice type and version, issue date/time, currency code
- Amounts: subtotal, total excluding tax, total including tax
Line items
Each line needs an item classification code (LHDN’s list of around 45 codes), an item name, a unit price, a tax type code and a tax amount. Only the item name has to be there: the other four are filled in for you before anything checks. A classification left blank on the line is read from the item record, and if the item has none either it becomes 022 – Others; a missing price or tax amount becomes zero; the tax type is taken from the document line’s own e-invoice tax type — not from the item — and the tax amount then has the last word over it.
If the line’s tax amount is blank or zero, the tax type is set to 06 – Not Applicable whatever was keyed; if there is a tax amount but the tax type is blank, or still reads 06, it becomes 01 – Sales Tax. Any other tax type keyed against a real tax amount is sent as it stands. A line that arrives through a JSON or ETL import with its own list of tax components is the exception: none of these defaults is applied, each component goes to LHDN with its own code, and the record shows the code of the component carrying the most tax.
004 is reserved for consolidated e-invoices. Never use it on an individual e-invoice line, nor as an item’s default classification, which a line left blank inherits — LHDN marks the document Invalid even when everything else, including the buyer’s TIN, is correct.Addresses
Both the supplier and the buyer address must carry an address line 1 (up to 150 characters), a city (up to 50) and a state. Address lines 2 and 3 (150 characters each) and a 5-character postal code are optional. Anything longer than the limit is shortened silently rather than rejected. The postcode is never checked against any list on the way to LHDN — it is cleaned, cut to five characters and sent as typed. A postcode not found message comes from the address screen’s own lookup, the platform-wide postcode list behind its typeahead, and has no bearing on whether the e-invoice goes through.
If address line 1, city or state is missing, the document is not submitted at all — it goes to a pool for you to complete. (On a Single General sales document the buyer’s details, address included, are not checked.)
General TINs — when you don’t have the buyer’s TIN
LHDN publishes four General TINs for cases where a real one is not available:
| General TIN | Use for |
|---|---|
EI00000000010 | General public / local buyers (mainly consolidated e-invoices) |
EI00000000020 | Foreign buyers |
EI00000000030 | Foreign suppliers (self-billed purchases) |
EI00000000040 | Government / armed forces |
Rules that trip people up:
- For individual e-invoices, always prefer the buyer’s real TIN.
EI00000000010can be used on an individual e-invoice for a local buyer without a TIN — but only together with identity type NRIC and a valid 12-digit national identity number. Any other combination is rejected.- If the buyer’s identity type is a registration number, the General Public TIN is not acceptable — obtain the company’s real TIN, or, for a local buyer under 10,000 in the document’s own currency, let the sale be consolidated instead.
- If the buyer’s identity type is a passport, neither escape is open. The General Public TIN is rejected with a passport (BigLedger substitutes it only for
NRIC), and consolidation does not rescue the document either — either consolidation run reports a pooled receipt with no tax number as General Public, not as the buyer. Where the document ends up depends on its submission type: keyed Individual, or at 10,000 or more in its own currency, it waits in the Individual Pool; left blank or marked Consolidated below that, it goes to the Batch Pool. Ask for the tax number while the customer is still with you.EI00000000020is LHDN’s General TIN for foreign buyers; if used, it is keyed by hand on the customer record, or in the sale’s own buyer details, which then replace the customer’s in full; BigLedger never fills it in for you. - The government TIN is not a general-purpose stand-in either. Using it on an ordinary individual e-invoice gets the document returned Invalid.
- If a buyer has a TIN but no identity value, BigLedger fills the value with
000000000000when it builds the record (the supplier’s, on a self-billed purchase; a value you clear later on the record is not refilled), which LHDN accepts.
For a sales document of 10,000 or more in the document’s own currency, either side of zero (notes and returns included since a backend change merged on 30 October 2026), not marked Consolidated, where the buyer’s identity type is a business registration number, the number itself is filled in and the TIN is blank, BigLedger searches LHDN’s registry by registration number and, when it finds a match, writes the TIN onto the e-invoice and the customer record. The automatic search is sent to LHDN’s sandbox environment, not production, so a search that finds nothing does not mean the company has no TIN: ask the buyer for it.
A self-billed purchase gets the same search for the supplier. A document marked Consolidated at that size is diverted to the Individual Pool without a search, and is searched when you resubmit it from there. Below 10,000 no automatic search happens — that is why a small sale with a missing TIN simply goes to a pool, where Get TIN in the customer editor can look again — it searches the same sandbox, so if it finds nothing, ask the buyer.
What success looks like for this part
The record you corrected reads Valid in My E-Invoice Admin → Internal Submission → To IRB E-Invoice, and, where the fault was the buyer’s identity, the record you corrected — the customer record, or the details typed on the document — carries the identity type the rules above name (a business registration number for a company, a passport for a person who is not Malaysian, a 12-digit national identity number with no dashes for a Malaysian) and a tax number that was typed rather than pasted. When you are done, run the whole page’s success check.
Common mistakes in this part
Pasting a tax number, keying a foreign customer as NRIC, storing a national identity number with dashes, and correcting only one of the two records are in the table of common mistakes on the first page, each with what you see and the fix.
Next: Which record and which address BigLedger sends.