MSIC & e-Invoice Code API
Search MSIC codes and validate every LHDN MyInvois code from your billing or ERP software.
Every Malaysian e-Invoice needs valid codes: the seller's 5-digit MSIC code, a classification code per line, tax type, unit, state, country and currency codes. This API returns all of them from the official LHDN MyInvois lists, with MSIC search for business-registration and onboarding forms.
Endpoints
| Path | Returns |
|---|---|
GET /msic/search?q=online shop§ion=G&limit=25 | MSIC codes matching all the words (everyday words like kedai, restoran, online are understood) |
GET /msic/{code} | One MSIC code with its section, division, class and related codes |
GET /sections | All 21 sections with their divisions |
GET /codes/{table} | A full code table: classification-codes, tax-types, e-invoice-types, payment-methods, state-codes, country-codes, currency-codes, unit-types (optional q filter) |
GET /codes/{table}/{code} | One code from a table |
GET /validate?msic=47912&classification=022&tax_type=06&state=10&unit=C62 | Checks every given code in one call: valid or not, and its name |
Example
cURL
curl "https://malaysia-msic-e-invoice-codes-api.p.rapidapi.com/msic/search?q=online%20shop" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: malaysia-msic-e-invoice-codes-api.p.rapidapi.com"
JavaScript
const res = await fetch('https://malaysia-msic-e-invoice-codes-api.p.rapidapi.com/validate?msic=47912&classification=022&state=10', {
headers: { 'X-RapidAPI-Key': process.env.RAPIDAPI_KEY, 'X-RapidAPI-Host': 'malaysia-msic-e-invoice-codes-api.p.rapidapi.com' }
});
const { valid, results } = await res.json();
Response: GET /msic/47912
{
"ok": true,
"data": {
"code": "47912",
"description": "Retail sale of any kind of product over the Internet",
"section": {
"code": "G",
"name": "Wholesale and retail trade; repair of motor vehicles and motorcycles"
},
"division": {
"code": "47",
"name": "Retail trade, except of motor vehicles and motorcycles"
},
"class": {
"code": "4791",
"name": "Retail sale via mail order houses or via Internet"
}
}
}Plans
| Plan | Price a month | Requests a month |
|---|---|---|
| Basic | Free | 200 |
| Pro | $7 | 10,000 |
| Ultra | $19 | 100,000 |
| Mega | $49 | 1,000,000 |
Billing and keys are handled by RapidAPI. Data version 2026-11-16.
Frequently asked questions
Is the MSIC code API free?
Yes. The Basic plan on RapidAPI is free for 200 requests a month; paid plans start at $7 a month.
Can the API validate a whole e-Invoice?
Yes. GET /validate takes any of msic, classification, tax_type, invoice_type, payment_method, state, country, currency and unit and returns whether each code is in the MyInvois list, with its name.
Where does the data come from?
From the code tables in the LHDN MyInvois SDK. Section, division and class names follow UN ISIC Rev. 4, on which MSIC 2008 is based.