MyInvois API Integration Malaysia 2026
Connect your accounting or ERP system directly to LHDN's e-invoicing platform
What is the MyInvois API?
LHDN's MyInvois system exposes a REST API that allows accounting software, ERPs, and custom systems to submit e-invoices programmatically without using the web portal. This is the backbone of all automated e-invoicing in Malaysia — every certified software solution uses this API under the hood to validate and transmit invoice documents to LHDN on behalf of businesses.
The API uses OAuth 2.0 for authentication and requires a taxpayer TIN (Tax Identification Number) and NRIC or BRN for identity verification. All API calls are made over HTTPS. LHDN provides both a sandbox environment for testing and a production environment for live invoice submission.
There are two integration paths available to businesses. The first is direct API integration, where your system calls MyInvois directly and requires LHDN-issued API credentials — best suited for large enterprises with custom ERP systems and dedicated development teams. The second is middleware or middleware-as-a-service, where an intermediary system handles the API calls and your system only sends invoice data to the middleware. Most SMEs in Malaysia use this second path — their accounting software acts as the middleware.
Integration Approaches Compared
Direct API
For developers & large enterprises
Full control over the integration. Requires LHDN developer credentials. Best for large enterprises with custom ERP systems and in-house engineering capacity.
Pros
- ✓ Full control over submission flow
- ✓ Custom workflows and error handling
Cons
- ✗ Significant engineering effort
- ✗ Must maintain compliance updates yourself
Accounting Software with Built-in API
Most common — recommended for 90% of businesses
Your accounting software (Bukku, Xero, SQL Accounting, etc.) handles the MyInvois API for you. You submit invoices within the software; it calls the API automatically. Zero API knowledge required.
Pros
- ✓ No development work needed
- ✓ Vendor handles compliance updates
Cons
- ✗ Less control over integration details
- ✗ Dependent on vendor roadmap
Middleware Connector
For businesses with existing ERP or POS
A middleware layer (e.g. Deskera, HashMicro) sits between your existing ERP or POS and MyInvois. Best for businesses with systems that cannot be replaced but need compliance.
Pros
- ✓ Works with existing systems
- ✓ No full system replacement needed
Cons
- ✗ Additional integration complexity
- ✗ Extra cost per connector
MyInvois API Submission Flow
Authenticate
Obtain access token via OAuth 2.0 from the MyInvois identity endpoint.
Prepare invoice document
Format as JSON following the UBL 2.1 schema required by LHDN.
Submit document
POST to /api/v1.0/documents/submit endpoint with your formatted invoice.
Receive UUID
MyInvois returns a unique document UUID on successful submission.
Check validation status
Poll the validation status endpoint; response will be valid, invalid, or pending.
Share with buyer
Once validated, share the MyInvois document URL or QR code with your buyer.
Handle rejections
Buyer has 72 hours to reject. Monitor the rejection endpoint for any disputes.
Key MyInvois API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/connect/token | POST | Get OAuth access token |
/api/v1.0/documents/submit | POST | Submit e-invoice document |
/api/v1.0/documents/status/{uuid} | GET | Check validation status |
/api/v1.0/documents/{uuid}/raw | GET | Get document content |
/api/v1.0/taxpayer/validate/{tin} | GET | Validate buyer TIN |
/api/v1.0/documents/{uuid}/reject | POST | Reject a received document |
Base URL: https://myinvois.hasil.gov.my (production). LHDN also provides a sandbox environment for testing.
Software Vendors with MyInvois API Access
These certified vendors have built-in MyInvois API integration — your invoices are submitted automatically.
Browse all vendors to find API-capable solutions.
Where to find the official API documentation
The full MyInvois API documentation is available on the official LHDN developer portal. All endpoints, schemas, and authentication details are published there. Software vendors who are LHDN-certified have already implemented this integration — most businesses do not need to build the API integration themselves.
MyInvois API — Frequently Asked Questions
Do I need to integrate the MyInvois API myself?
What programming languages can I use for MyInvois API integration?
How do I get MyInvois API credentials?
What is the difference between MyInvois API and Peppol?
Not a developer? Let your software handle the API.
Browse LHDN-certified vendors that manage MyInvois API integration for you, or use our readiness calculator to find the right fit for your business.
EInvoicingMalaysia.com is an independent directory. We are not affiliated with LHDN or the Malaysian government.