E-Invoice (LHDN MyInvois)

Submit e-invoices to Malaysia's LHDN MyInvois system for tax compliance

4 min read Updated Dec 29, 2024

E-Invoice (LHDN MyInvois)

BasedInbox supports Malaysia's mandatory e-invoicing system through direct integration with LHDN MyInvois.

What is E-Invoice?

E-invoice is Malaysia's digital invoicing system mandated by Lembaga Hasil Dalam Negeri (LHDN). Starting 2024, businesses must submit invoices electronically in a standardized format.

Key Benefits

  • Tax Compliance — Meet LHDN requirements automatically
  • Faster Processing — Real-time validation and submission
  • Reduced Errors — Automated data validation
  • Digital Records — All invoices stored securely

Requirements

Before submitting e-invoices, you need:

  1. Business Registration — Valid SSM registration
  2. Tax Identification Number (TIN) — Your company TIN
  3. Digital Certificate — For signing documents
  4. MyInvois API Access — Client ID and secret from LHDN

Setting Up E-Invoice

Step 1: Register with LHDN

  1. Visit the LHDN MyInvois Portal
  2. Register your business
  3. Obtain API credentials (Client ID and Secret)

Step 2: Upload Digital Certificate

  1. Go to Accounting > Certificates
  2. Click Upload Certificate
  3. Select your .p12 or .pfx file
  4. Enter the certificate password
  5. Verify the certificate details

Step 3: Configure Business Profile

Ensure your business profile is complete:

  1. Go to Settings > Business Profile
  2. Verify all fields:
    • Legal business name
    • Registration number (SSM)
    • TIN number
    • Complete address
    • Contact details

Step 4: Test in Sandbox

Before going live:

  1. Go to Settings > E-Invoice
  2. Enable Sandbox Mode
  3. Submit a test invoice
  4. Verify it appears in LHDN sandbox

Submitting E-Invoices

From an Invoice

  1. Create or open an invoice
  2. Ensure customer TIN is valid
  3. Click Submit to LHDN
  4. Wait for validation
  5. View submission status

Bulk Submission

Submit multiple invoices at once:

  1. Go to Accounting > Invoices
  2. Select invoices to submit
  3. Click Submit Selected
  4. Monitor progress in Submissions

Submission Status

Track your submissions in Accounting > Submissions:

Status Description
Pending Queued for submission
Processing Being validated by LHDN
Valid Successfully submitted
Invalid Validation errors
Cancelled Cancelled by user

Viewing Details

Click any submission to see:

  • Submission UUID
  • LHDN response
  • Validation errors (if any)
  • QR code (for valid invoices)

Document Types

Invoices

Standard sales invoices submitted to LHDN.

Credit Notes

Issue credit notes for:

  • Returned goods
  • Price adjustments
  • Billing corrections

Credit notes must reference the original invoice.

Debit Notes

Issue debit notes for:

  • Additional charges
  • Price increases
  • Service adjustments

Validation Rules

LHDN enforces strict validation. Common requirements:

Business Details

  • Valid TIN format
  • Matching SSM registration
  • Complete address

Customer Details

  • Valid customer TIN
  • Correct ID type (NRIC, Passport, BRN)
  • Contact information

Invoice Details

  • Valid currency code
  • Correct tax calculations
  • Line item totals match invoice total

Troubleshooting

"Invalid TIN"

The TIN format is incorrect or not registered:

  1. Verify the TIN with LHDN
  2. Check for typos
  3. Ensure it matches the registered business

"Certificate Expired"

Your digital certificate has expired:

  1. Obtain a new certificate from LHDN
  2. Upload it in Certificates
  3. Remove the old certificate

"Validation Failed"

Check the error details:

  1. Open the submission
  2. Review validation errors
  3. Fix the invoice
  4. Resubmit

"Connection Error"

Network or API issues:

  1. Check your internet connection
  2. Verify API credentials in Settings
  3. Try again in a few minutes

Exchange Rates

For foreign currency invoices:

  • Exchange rates are fetched from Bank Negara Malaysia (BNM)
  • Rates are cached daily
  • You can manually override rates if needed

Best Practices

  1. Validate Before Submitting — Review all details carefully
  2. Keep Certificates Current — Set reminders for renewal
  3. Test in Sandbox First — Avoid errors in production
  4. Monitor Submissions — Check status regularly
  5. Store QR Codes — Save them for printed invoices

Compliance Timeline

Date Requirement
Aug 2024 Large businesses (>RM100M revenue)
Jan 2025 Medium businesses (>RM25M revenue)
Jul 2025 All other businesses

Stay compliant by setting up e-invoice before your deadline.

Support

For LHDN-specific issues:

For BasedInbox integration issues:

e-invoiceLHDNMyInvoisMalaysiataxcomplianceUBL