e-Invoicing in Malaysia will be mandatory from 1st August 2024 onwards for all B2B, B2G, and B2C transactions. Implemented in phases, the rollout begins with larger enterprises with annual turnover exceeding RM 100 million in the previous financial year.
For these Large entities, the transition to e-invoicing necessitates integration between their existing Enterprise Resource Planning (ERP) systems and the government's designated MyInvois System, a complex multi-level process.
Understanding the challenges involved in integrating systems, the Lembaga Hasil Dalam Negeri (LHDN) has introduced a Software Development Kit (SDK). This SDK serves as a crucial asset, providing enterprises with the essential tools, APIs, and frameworks needed to seamlessly integrate their systems with the required e-invoicing infrastructure.
The beta version of the SDK was initially launched on February 9, 2024, followed by the release of SDK Version 1.0 on April 6, 2024.
In general terms, SDK (Software Development Kit) is a package of tools, libraries, and documentation developers provide to help others create applications for a specific platform or framework. It simplifies integrating complex functionalities into software, typically through APIs (Application Programming Interfaces).
Similarly, the Malaysian E-Invoicing SDK contains details related to the document types, statuses, codes, APIs, validation rules, etc, which are crucial for e-invoicing. This SDK would help developers to customise their business solutions to comply with Malaysian e-invoicing requirements, facilitating the generation, submission, and management of e-invoices.
The SDK released by Lembaga Hasil Dalam Negeri (LHDN) for Malaysia's e-invoicing system comprises various components essential for developers to integrate with MyInvois system.
Below are the key components of the LHDN SDK for e-Invoicing:
The SDK comes with release notes documenting the changes and enhancements made in each version. These notes serve as a reference for developers, highlighting new features, bug fixes, and other modifications by LHDN.
Following the beta version's release, LHDN launched SDK Version 1.0 on April 6 2024, with additional updates published on April 19. For more details on these updates, you can refer to the SDK release notes.
The SDK includes comprehensive documentation detailing the application programming interfaces (APIs) provided by LHDN for e-invoicing. Currently, are 15 APIs divided into two categories: e-invoice API and Platform API.
This set of APIs is specifically designed to support core e-invoicing workflows. These APIs facilitate crucial processes such as document submission, validation, retrieval, and status tracking, ensuring seamless integration with the e-invoicing system. There are nine core e-invoicing API’s.
In addition to e-Invoicing APIs, the SDK also features six platform APIs that offer functionalities beyond the core invoicing workflows. These platform APIs enable users to perform various tasks related to authentication, access control, and data retrieval, enhancing the overall user experience.
The SDK includes predefined code tables that define standardized codes for various attributes used in e-invoicing, such as currency, country, invoice type, etc. These code tables ensure consistency and uniformity in data representation across different e-invoices.
Code Type | Description | Example |
Classification codes | Categorizes products or services transacted in invoices. | 003 - Computer, smartphone, or tablet |
Country codes | Provides precise country information for supplier and buyer addresses. | IND - INDIA, IRL - IRELAND |
Currency codes | Specifies currency information. | USD - US Dollar, SAR - Saudi Riyal |
E-Invoice type codes | Differentiates between document types, which are mandatory in the invoice schema. | 03: Debit note, 13: Self-built debit notes |
Five-digit numeric codes representing taxpayer business nature and activity are mandatory in the invoice. | 07296 - Mining of silver, 79110 - Travel agency activities | |
Payment Mode Codes | Define how payments were made or funds transferred. | 01: Cash, 07: Digital bank transfer |
State Codes | Provide precise state information. | 00: All states, 08: Perak |
Tax Type Codes | Enter tax information. | 01: Sales tax |
The SDK provides seven validation rules that govern the content and structure of e-invoices submitted to LHDN's system. These rules define criteria for validating core fields, document structure, digital signatures, etc. By enforcing these validation rules, developers can ensure the accuracy, integrity, and compliance of e-invoices, minimizing errors and rejections.
SDK includes a section addressing common queries and concerns related to e-invoicing integration. This section would get updated over time, solving the most common queries related to SDK Malaysia e-invoicing.
Click here to read the FAQ’s related to SDK.
The SDK also provides contact details for different departments or support channels that users can contact for assistance with various aspects of e-Invoicing and SDK-related queries.
Topic | Email |
SDK related questions | sdkmyinvois@hasil.gov.my |
General e-Invoice information | myinvois@hasil.gov.my |
SDK (Software Development Kit) will will play a crucial role in the pilot phase of Malaysia's e-invoicing implementation. While minor updates are expected, major changes are unlikely. It is anticipated that LHDN will soon release the final SDK along with updated guidelines.
Integrating a business system with MyInvois is complex and technically challenging for many companies. However, ClearTax, as a leading e-invoicing software provider, offers solutions to help large enterprises seamlessly integrate their systems with the e-invoicing system, ensuring maximum compliance.
For further assistance or to book a consultation call with our e-invoicing team, please contact us.