ClearTax Docs
Subscribe for Updates
  • Introduction to ClearTax APIs
  • ☁️Clear Finance Cloud
    • Introduction to Clear Finance Cloud
    • Learn Clear Finance Cloud Basics
      • API client
      • Access token
      • FTP client
      • How to get Custom Upload Template ID?
    • CFC API Reference
      • Resources and Masters
        • Sale Document Line Object
        • Purchase Document Line Object
      • Generate Access Token API
      • Ingestion API
        • Ingest Documents via File
          • Get Pre-signed URL
          • Upload File to Storage
          • Trigger File Ingestion
          • Get File Ingestion Status
        • (Deprecated) Ingest Documents via JSON
    • Notifications
  • 🇮🇳GLS API
    • GLS API Reference
      • Resources and Masters
      • Advanced Ingestion API Reference
        • Get Pre-signed URL
        • Upload File to Storage
        • Create Ingestion Activity
        • Get Ingestion Activity Status
  • 🇮🇳GST API
    • Introduction to GST API
    • GST 2.0 API Reference
      • Upload Documents
    • GST FTP Magnet
  • 🇮🇳Max ITC API
    • Introduction to Max ITC API
    • Getting Started with Max ITC API
    • Max ITC API Reference
      • Resources and Masters
        • Input and output templates
        • Error Code Master
        • Learn Max ITC API Architecture
      • Max ITC APIs
        • Fetch Max ITC Configuration
        • Upload Purchase Documents
          • Ingest PR via File
          • (Deprecated) Ingest PR via JSON
        • Trigger Max ITC Workflow
        • Get Max ITC Results
        • Postman Collection
    • Max ITC FTP Magnet
  • 🇮🇳TDS API
    • Introduction to TDS API
    • TDS API Reference
      • Resources and Masters
        • Deduction Document Line Objects
        • Output Template(Error)
      • TDS APIs
        • Upload Deductions
          • Ingest Deductions via File
            • Get Pre-signed URL
            • Upload File to Storage
            • Trigger File Ingestion
            • Get File Ingestion Status
          • (Deprecated) Ingest Deductions via JSON
  • 🇮🇳E-Invoicing API
    • Introduction to E-Invoicing API
    • Learn E-Invoicing API Basics
      • How to get E-Invoicing User Auth Token?
      • How to scan the E-Invoice QR code?
      • How to add GSTIN to E-Invoicing?
        • Clear IRP API Credentials
    • Learn E-waybill API Basics
    • E-Invoicing API Reference
      • Setting up your account
      • Clear Schema
        • Generate IRN
        • Cancel IRN
        • Get E-Invoice PDF
        • Get E-Invoice by IRN
        • Generate E-Waybill by IRN
        • Generate E-Waybill for Non-IRN documents
        • Bulk Generate E-Waybill for Non-IRN documents
        • Cancel E-Waybill
        • Get E-Waybill PDF
        • Update E-Waybill Transporter ID
        • Update E-Waybill Part-B
        • Extend E-Waybill Validity
        • Generate/Regenerate Consolidated EWB
        • Get Consolidated EWB PDF
        • Initiate Multi-Vehicle E-Waybills
        • Update EWB Status from NIC
        • Download E-waybills by Others
        • Get E-Waybill Download Status
        • Get E-Waybills
        • Get latest E-Waybill status from Government
        • Generate B2C Payment QR Code
          • Generate B2C Payment QR Code (Lite)
        • Get Signed PDF
        • Sign PDF API Base 64 Encoded
        • Send an E-Invoice via Email
        • Get Invoice Details
      • Government Schema
        • Generate IRN
        • Cancel IRN
        • Get Invoice by IRN
        • Generate E-Waybill by IRN
      • Resources and Masters
        • E-Invoice Object
        • Country Code Master
        • State Code Master
        • Pincode Master
        • Pincode State Mapping Pattern
        • Port Code Master
        • Currency Code Master
        • UQC Master
        • Tax Rates
        • Error Codes
    • E-Invoicing FTP Magnet
  • 🇮🇳Invoicing API
    • Invoicing API Reference
      • Create an Invoice
      • Create Document (Non-Sale)
      • Download PDF of a Document
      • Get Document details
      • Resources and Master
        • Country Master
        • State Master
        • Pincode Master
        • Port Master
        • Currency Master
        • Unit Master
        • Document Types
        • Supply Types
  • 🇲🇾E-INVOICING MALAYSIA API
    • E-Invoicing Malaysia API Reference
      • Resources and Masters
        • Error resolution guide
        • Frequently asked questions (FAQs)
        • E-Invoice Object
      • Generate Access Token API
      • Malaysia E-Invoicing APIs
        • Generate E-Invoice for a Document
        • Status Check for Submitted E-Invoice
        • Cancel E-Invoice
        • Upload E-Invoice
        • Get Documents
        • Get E-Invoice PDF
        • Get Document via UUID
        • Delete Invoice
        • Send Bulk Email
        • Search Taxpayer Tin API
  • E-Invoicing FTP Magnet (XML)
  • E-Invoicing FTP Magnet (Excel)
  • 🇸🇦E-Invoicing KSA API
    • Introduction to E-Invoicing KSA API
    • Learn E-Invoicing KSA API Basics
      • How to get E-Invoicing KSA Auth Token?
      • How to add a VAT number to KSA E-Invoicing Account?
      • How to add Branch for existing Vat to KSA E-Invoicing Account ?
      • How to register a device for a VAT?
      • How to generate OTP on ERAD Portal?
      • How to get Print Template ID?
      • KSA E-Invoicing Integration Architecture
    • E-Invoicing KSA API Reference
      • Resources and Masters
        • E-Invoice Object
        • Error Details Object
        • Data Types
        • Code Lists
        • Common Errors and Resolution
      • Authentication
      • Generate Access Token API
      • KSA E-Invoicing APIs
        • Generate E-Invoice
          • Additional Standard (B2B) E-Invoice Examples
          • Additional Simplified (B2C) E-Invoice Examples
        • Generate E-Invoice Async
        • Generate E-Invoice via XML
        • Send Signed E-Invoice XML To ZATCA
        • Get Bulk Invoice Lite
        • Get Invoice
        • Get E-Invoice PDF
        • Get E-Invoice PDF/A-3 with PDF API
        • Register Device
        • Get PCSID Generation Status
        • Renew PCSID
        • Generate E-Invoice (Phase I)
        • Generate QR Code (Phase I)
        • Generate Device ID
        • Generate CSID and PCSID
        • Send E-Invoice via Email
        • Add Business units API
    • E-Invoicing KSA FTP Magnet
    • E-Invoicing KSA XML reporting FTP Magnet
  • 🧩Add-ons and Extensions
    • SAP Add-on
      • SAP Connectivity Checklist
        • Steps to import SSL/TLS certificates in SAP
        • Steps to check ICM settings in SAP
        • Steps to test connectivity in SAP
        • Steps to troubleshoot connectivity issues in SAP
    • Tally Add-on
  • Microsoft Dynamics 365(F&O)
  • General
    • Go-Live Cutover Activity Checklist
    • How to check DNS resolution?
    • How to check hostname reachability?
    • How to check if hostname is trusted?
    • How to get the SSL certificate of a host?
  • ⭐GST GSP API
    • Introduction to GST GSP API
    • Getting Started with GST GSP API
    • GST GSP API Reference
      • Sample API
    • Migrating from Karvy GST GSP
  • ⭐E-Waybill GSP API
    • Introduction to E-Waybill GSP API
    • Getting Started with EWB GSP API
      • How to register EWB GSP on NIC?
      • Sandbox GSTIN for EWB GSP
    • E-Waybill GSP API Reference
      • Sample API
    • Migrating from Karvy EWB GSP
  • ⭐E-Invoicing GSP API
    • Introduction to E-Invoicing GSP API
    • Getting Started with EINV GSP API
      • How to register EINV GSP on IRP?
      • Sandbox GSTIN for EINV GSP
    • E-Invoicing GSP API Reference
      • Sample API
  • Subscribe for Updates
  • 🚫(Deprecated) GST 1.0 API
    • (Deprecated) Introduction to GST API
    • (Deprecated) Learn GST API Basics
    • (Deprecated) Getting Started with GST API
      • (Deprecated) How to set up ClearTax account?
      • (Deprecated) How to authenticate API requests?
      • (Deprecated) How to upload an invoice from File?
      • (Deprecated) How to create custom import template?
    • (Deprecated) GST 1.0 API Reference
      • Taxpayer Information
      • (Deprecated) Invoices
      • (Deprecated) Bills of Supply
      • (Deprecated) Credit Debit Notes (CDN)
      • (Deprecated) Advances
      • (Deprecated) Resources and Masters
        • (Deprecated) How to read GST error response
        • (Deprecated) Unit of Measurement master
        • (Deprecated) State master
        • (Deprecated) Document Classification/Section Name master
      • (Deprecated) Items
      • (Deprecated) Contacts
      • (Deprecated) GST File Upload API Reference
  • 🚫Deprecated E-Waybill API
    • (Deprecated) Introduction to E-Waybill API
    • (Deprecated) Learn E-Waybill API Basics
    • (Deprecated) Getting Started with E-Waybill API
    • (Deprecated) E-Waybill API Reference
      • (Deprecated) Resources and Masters
        • (Deprecated) Unit Master
        • (Deprecated) State Master
        • (Deprecated) Error Master
      • (Deprecated) E-Waybill JSON API Reference
        • (Deprecated) Generating E-Waybill
        • (Deprecated) Getting E-Waybill
        • (Deprecated) Updating E-Waybill
        • (Deprecated) Extending Validity of E-Waybill
        • (Deprecated) Multi-vehicle E-Waybill
        • (Deprecated) Printing E-Waybill
        • (Deprecated) Cancelling E-Waybill
        • (Deprecated) Generating Consolidated E-Waybill
        • (Deprecated) Getting Consolidated E-Waybill
        • (Deprecated) Regenerating Consolidated E-Waybill
        • (Deprecated) Printing Consolidated E-Waybill
      • (Deprecated) E-Waybill File Upload API Reference
        • (Deprecated) Creating or Updating Documents
        • (Deprecated) Getting Upload Status
        • (Deprecated) Getting Upload Validation
        • (Deprecated) Getting Upload History
        • (Deprecated) Rate Limiting & Best Practices
    • (Deprecated) E-Waybill FTP Magnet
Powered by GitBook
On this page
  • 1. Document Data
  • 1.1 Invoice Type Code Object
  • 1.2 Invoice Period Object
  • 1.3 Payment Terms Object
  • 1.4 Prepaid Payment Object
  • 1.5 Billing Reference Object
  • 1.6 Legal Monetary Total Object
  • 1.7 Tax Total Object
  • 1.8 Document Allowance Charge Object
  • 1.9 Delivery Object
  • 1.10 Additional Document Reference list
  • 1.11 Accounting Supplier Party Object
  • 1.12 Accounting Customer Party Object
  • 1.13 Invoice Line Object
  • 1.14 Payment Means Object

Was this helpful?

  1. E-INVOICING MALAYSIA API
  2. E-Invoicing Malaysia API Reference
  3. Resources and Masters

E-Invoice Object

An E-Invoice object has the following schema:

1. Document Data

Parameter
Data Type
Field Validations
Description

Id

String

-

Mandatory. Document reference number used by Supplier for internal tracking purpose.

IssueDate

String

Format:

YYYY-MM-DD

Mandatory. Date of issuance of the e-Invoice

*Note that the date must be the current date

IssueTime

String

Format: HH:mm:ss (24 hr format)

Mandatory. Time of issuance of the e-Invoice

*Note that the time must be the current time

InvoiceTypeCode

Object

-

DocumentCurrencyCode

String

Enum: ISO code list 4217 alpha-3

Mandatory. Specific currency that is used to represent the monetary value stated in the e-Invoice. Default: "MYR".

TaxCurrencyCode

String

Enum: ISO code list 4217 alpha-3

Optional. Specific currency that is used to represent the tax monetary value stated in the e-Invoice. Default: "MYR".

TaxExchangeRate

Object

-

Mandatory. Tax Exchange Rate Object

TaxExchangeRate.CalculationRate

String

MaxLength: 15

Optional, add wherever applicable.Rate at which non-Malaysian currency will be converted into Malaysian Ringgit.

InvoicePeriod

Object

-

Optional. Represents Billing Period Details. Refer to Invoice Period Object

AccountingSupplierParty

Object

-

Mandatory. Accounting Supplier Party Object

AccountingCustomerParty

Object

-

Mandatory. Accounting Customer Party Object

Delivery

Object

-

Mandatory where applicable

InvoiceLine

Array

-

Mandatory. Array of Invoice Line Item Objects

PaymentMeans

Object

-

Conditional. Required in case of Standard Tax Invoice, Standard Credit Note, Standard Debit Note, Simplified Credit Note and Simplified Debit Note. Not required in case of Simplified Tax Invoice. Array of Payment Means Object

PaymentTerms

Object

-

Optional. Payment Terms Object

PrepaidPayment

Object

Optional. Prepaid Payment Object

BillingReference

Array

-

Optional. Supplier’s internal billing reference details to facilitate payment from Buyer. Billing Reference. Object

LegalMonetaryTotal

Object

-

Mandatory. Legal Monetary Total Object

TaxTotal

Array

-

Mandatory. Array of Tax Total Objects

AllowanceCharge

Array

-

Conditional. Required in case of invoice level discount. Allowance Charge Object

AdditionalDocumentReference

Array ()

NA

Mandatory where applicable.

1.1 Invoice Type Code Object

Parameter
Data Type
Field Validations
Description

Value

Enum

INVOICE,

CREDIT_NOTE,

DEBIT_NOTE,

REFUND_NOTE, SELF_BILLED_INVOICE, SELF_BILLED_CREDIT_NOTE, SELF_BILLED_DEBIT_NOTE, SELF_BILLED_REFUND_NOTE

Mandatory. Value specifying the functional type of the Invoice. The document type must be equal to one of values from the subset of Enum

1.2 Invoice Period Object

Parameter
Data Type
Field Validations
Description

StartDate

Date

yyyy-mm-dd

Max Length: 10

Billing Period Start Date

EndDate

Date

yyyy-mm-dd

Max Length: 10

Billing Period End Date

Description

String

Max Length: 50

Frequency of the invoice (e.g., Daily, Weekly, Biweekly, Monthly, Bimonthly, Quarterly, Half-yearly, Yearly, Others / Not Applicable)

1.3 Payment Terms Object

Parameter
Data Type
Field Validations
Description

Note

String

Max Length: 300

Optional. An agreed-upon payment terms and conditions e.g., timing and method of payment

1.4 Prepaid Payment Object

Parameter
Data Type
Field Validations
Description

PaidAmount

Amount Object

-

Optional.Monetary value that is prepaid by the Buyer in order to fulfill the financial obligation.

Please add currencyID attribute to the XML element.

PaidDate

Date

yyyy-mm-dd

Max Length: 10

Optional.Date of prepayment received

PaidTime

Time

hh:mm:ss

Max Length: 12

Optional.Time of prepayment received

Id

String

MaxLength: 150

Optional. Unique identifier assigned to trace payment

1.5 Billing Reference Object

Parameter
Data Type
Field Validations
Description

AdditionalDocumentReference

Object

-

-

AdditionalDocumentReference.Id

String

MaxLength: 150

Mandatory where applicable. Document number of original invoice / document that is being affected / adjusted. Applicable where a debit note, credit note or refund note e-Invoice is issued. Self-billed versions can only refer to Self-Billed Invoice, and normal versions can only refer to Normal Invoices.

1.6 Legal Monetary Total Object

Parameter
Data Type
Field Validations
Description

TaxExclusiveAmount

Amount Object

currencyId=’MYR’

Mandatory. Sum of amount payable (inclusive of applicable discounts and charges), excluding any applicable taxes (e.g., sales tax, service tax)

TaxInclusiveAmount

Amount Object

-

Mandatory. Sum of amount payable inclusive of total taxes chargeable (e.g., sales tax, service tax).

PayableAmount

Amount Object

-

Mandatory. Sum of amount payable (inclusive of total taxes chargeable) excluding any amount paid in advance and any rounding adjustment.

LineExtensionAmount

Amount Object

-

Optional. Sum of total amount payable (inclusive of applicable line item and invoice level discounts and charges), excluding any applicable taxes (e.g., sales tax, service tax).

AllowanceTotalAmount

Amount Object

-

Optional. Total amount deducted from the original price of a product or service.

ChargeTotalAmount

Amount Object

-

Optional. Total charge associated with the product or service imposed after tax.

PayableRoundingAmount

Amount Object

-

Optional, where applicable. Rounding amount added to the amount payable.

PrepaidAmount

Amount Object

-

Optional

1.7 Tax Total Object

Parameter
Data Type
Field Validations
Description

TaxAmount

Amount Object

-

Mandatory. Total amount of tax payable

TaxSubtotal[]

Array

-

Mandatory. One or more Tax Subtotal objects.

1.7.1 Tax SubTotal Object

Parameter
Data Type
Field Validations
Description

TaxableAmount

Amount Object

-

Optional where applicable. Sum of amount chargeable for each tax type

TaxAmount

Amount Object

-

Mandatory. Total amount of tax payable for each tax type

TaxCategory

Object

-

Mandatory. Tax Category Object

1.7.2 Tax Category Object

Parameter
Data Type
Field Validations
Description

Id

String

E

Mandatory if tax exemption is applicable

TaxExemptionReason

String

MaxLength: 300

Mandatory if tax exemption is applicable. Description of tax exemption applicable.(e.g., Buyer’s sales tax exemption certificate number, special exemption as per gazette orders, etc.). The input of special characters is not allowed, except for dash (-).

1.8 Document Allowance Charge Object

Parameter
Data Type
Field Validations
Description

ChargeIndicator

String

-

Mandatory. An indicator that this AllowanceCharge describes a discount. The value of this tag indicating discount (Allowance) must be ""false""." Else true

Amount

Amount Object

-

Optional. Total amount deducted from the original price of a product or service

Or

Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).

Please add currencyID attribute to the XML element.

AllowanceChargeReason

String

-

Optional. Contain the description of the additional discount applied or description of the additional fees

1.9 Delivery Object

Parameter
Data Type
Field Validations
Description

DeliveryParty

Object

-

Optional

Shipment.FreightAllowanceCharge

Object. Shipment Object

-

Optional. Details of Other Charges. Details of additional charges, along with the amount payable

1.9.1 Delivery Party Object

Parameter
Data Type
Field Validations
Description

PartyLegalEntity.RegistrationName

String

-

Name of shipping recipient of the products included in the e-Invoice in a commercial transaction

PartyIdentification.Id.Value

String

Max Length: 14

Optional. TIN of the shipping recipient assigned by IRBM

PartyIdentification.Id.SchemeID

String

- NRIC VARCHAR (12 CHAR)

- PASSPORT VARCHAR (12 CHAR)

- BRN VARCHAR (20 CHAR)

- ARMY VARCHAR (12 CHAR)

- SST

- TTX

- TIN

Optional. For businesses: Business registration number For Malaysian individual: MyKad identification number

For non-Malaysian individual: Passport number

PostalAddress

Object. Postal Address Object

-

Optional

1.9.2 Shipment Object

Parameter
Data Type
Field Validations
Description

ChargeIndicator

Boolean

-

Optional

AllowanceChargeReason

String

MaxLength: 300

Optional

Amount

Amount

-

Optional

1.10 Additional Document Reference list

Parameter
Data Type
Field Validations
Description

AdditionalDocumentReference[0]

-

Mandatory where applicable. Object takes input for Reference Number of Customs Form No.1, 9, etc. Takes input the Unique identifier assigned on the Declaration of Goods Imported.The input of special characters is not allowed.

AdditionalDocumentReference[1]

-

Optional. Free Trade Agreement (FTA)

Information

[For export only, if applicable]. i.e. Details, provisions and requirements outlined within a trade agreement between two or more countries. The input of special characters is not allowed, except for dash (-), open bracket (() and closed bracket ()).

AdditionalDocumentReference[2]

-

Optional. Contains Reference Number of Customs Form No.2 information. i.e. Unique identifier assigned on the Declaration of Goods Exported.The input of special characters is not allowed.

AdditionalDocumentReference[3]

-

Optional. Contains info about Incoterms i.e. A set of international trade rules that define the responsibilities of buyers and suppliers.The input of special characters is not allowed.

1.10.1 Additional Document Reference Object

Parameter
Data Type
Field Validations
Description

Id

String

Max Length: 12

Mandatory where applicable. Unique identifier assigned on the Declaration of Goods Imported.The input of special characters is not allowed. OR FTA for Free Trade Agreement

DocumentType

String

CustomsImportForm,

FreeTradeAgreement,

K2

Mandatory where applicable. Invoice counter value. Default: Clear will try to generate the ICV based on configuration.

DocumentDescription

String

Max Length: 300

Mandatory where applicable.(Can be applicable for FTA Agreement) Details, provisions and requirements outlined within a trade agreement between two or more countries. The input of special characters is not allowed, except for dash (-), open bracket (() and closed bracket ()).

1.11 Accounting Supplier Party Object

Parameter
Data Type
Field Validations
Description

Party

Object

-

Mandatory. Supplier Party Object.

AdditionalAccountID

String

Max Length: 300

Optional. A unique identification number or code used for validation of a certified exporter by the relevant authority. The input of special characters is not allowed, except for dash (-)

Party.PartyLegalEntity

Object

-

Mandatory. Seller Party Legal Entity Object

Party.PartyLegalEntity.RegistrationName

String

-

Conditional. Name of business or individual who will be the issuer of the e-Invoice.

Party.PartyIdentification

Array

-

Mandatory. Supplier Party Identification Object.

Party.PartyIdentification.Id

Object

-

Mandatory. Supplier Party Identification ID Object.

Party.PartyIdentification.Id.Value

String

Alphanumeric

Mandatory: ID from the below list:

  • TIN (14 CHAR)

  • NRIC (12 CHAR)

  • PASSPORT (12 CHAR)

  • BRN (20 CHAR)

  • ARMY (12 CHAR)

  • SST (17 CHAR)

  • TTX (17 CHAR)

Party.PartyIdentification.Id.SchemeID

String

Enum: TIN/NRIC/PASSPORT/BRN/ARMY

Mandatory ID is one of the list:

  • TIN (14 CHAR)

  • NRIC (12 CHAR)

  • PASSPORT (12 CHAR)

  • BRN (20 CHAR)

  • ARMY (12 CHAR)

  • SST (17 CHAR)

  • TTX (17 CHAR)

Party.Contact

Object

-

Optional

Party.Contact.ElectronicMail

String

MaxLength: 320

Optional

Party.Contact.Telephone

String

MaxLength: 20

Mandatory. Example: +60-123456789

Party.IndustryClassificationCode

String

-

Mandatory

Party.IndustryClassificationCode.Value

String

-

Party.IndustryClassificationCode.Name

String

MaxLength: 300

Mandatory. Supplier’s Business Activity Description

Party.PostalAddress

Object. Postal Address Object

-

Mandatory. Seller Postal Address object. Seller address must contain additional number, street name, building number, postal code, city, Neighborhood, country code.

1.11.1 Postal Address Object

Parameter
Data Type
Field Validations
Description

AddressLine

Array

Min Size: 1

Max Size: 3

Mandatory.

AddressLine.Line

String

MaxLength: 150

Mandatory. Seller address line - the main address line in an address.

PostalZone

String

Numerals MinLen: 5 MaxLen: 5

Optional. The identifier for an addressable group of properties according to the relevant postal service. Ex 50480

CityName

String

-

The common name of the city, town or village, where the Seller address is located.

CountrySubentityCode

String

-

Country

Object

-

Mandatory

Country.IdentificationCode

Object

-

Country Identification

Country.IdentificationCode.CountryCode

String

Equal: "MYS"

1.12 Accounting Customer Party Object

Parameter
Data Type
Field Validations
Description

Party

Object

-

Buyer Party Object.

Party.PartyLegalEntity

Object

-

Conditional.

Buyer Party Legal Entity Object

Party.PartyLegalEntity.RegistrationName

String

-

Name of recipient of the e-Invoice in a commercial transaction

Party.PartyIdentification

Array

-

Mandatory. Buyer Party Identification Object.

Party.PartyIdentification.Id

Object

-

Mandatory. Buyer Party Identification ID Object.

Party.PartyIdentification.Id.Value

String

Alphanumeric

Mandatory: ID from the below list:

  • TIN (14 CHAR)

  • NRIC (12 CHAR)

  • PASSPORT (12 CHAR)

  • BRN (20 CHAR)

  • ARMY (12 CHAR)

  • SST (17 CHAR)

  • TTX (17 CHAR)

Party.PartyIdentification.Id.SchemeID

String

Enum: TIN/NRIC/PASSPORT/BRN/ARMY

Mandatory ID is one of the list:

  • TIN (14 CHAR)

  • NRIC (12 CHAR)

  • PASSPORT (12 CHAR)

  • BRN (20 CHAR)

  • ARMY (12 CHAR)

  • SST (17 CHAR)

  • TTX (17 CHAR)

Party.Contact

Object

-

Optional

Party.Contact.ElectronicMail

String

MaxLength: 320

Optional, Default: NA

Party.Contact.Telephone

String

MaxLength: 20

  • Optional, Default: NA

Party.PostalAddress

Object. Postal Address Object

-

Mandatory for B2B Optional for B2C. Buyer Postal Address object. Buyer address must contain additional number, street name, building number, postal code, city, Neighborhood, country code.

1.13 Invoice Line Object

Parameter
Data Type
Field Validations
Description

Id

Number

-

Mandatory. Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).

A unique identifier for the individual line within the Invoice.

An Invoice shall have at least one Invoice line (BG-25)

Item

Object

-

Mandatory. Each Invoice line (BG-25) shall contain the Item name (BT-153).

Item.Description

String

MaxLength: 300

MandatoryDetails of products or services being billed as a result of a commercial transaction

Item.CommodityClassification[]

Array

-

Mandatory

Item.CommodityClassification[].ItemClassificationCode

String

MaxLength: 3

Item.ProductTariffCode

Object

MaxLength: 12

Optional. Only Applicable to Goods. Harmonized System code of the goods under the relevant Sales Tax Orders.The input of special characters is not allowed, except for full stop (.).

Item.OriginCountry.IdentificationCode.CountryCode

String

-

Item.AdditionalItemProperty

Array

-

Line Level Custom Fields

Item.AdditionalItemProperty.Name

String

-

Line Level Custom Field Key

Item.AdditionalItemProperty.Value

String

-

Line Level Custom Field Value

ItemPriceExtension

Amount Object

-

Mandatory. Amount of each individual item / service within the invoice, excluding any taxes, charges or discounts. I.e. item Price*Quantity

Price

Object

-

Mandatory. Each Invoice line shall contain the Item net price

Price.PriceAmount

Amount Object

-

Mandatory. Price assigned to a single unit of a product or service. (Unit Price)

LineExtensionAmount

Amount Object

-

Mandatory. Total Excluding Tax. Sum of amount payable (inclusive of applicable discounts and charges), excluding any applicable taxes (e.g., sales tax, service tax)

InvoicedQuantity

Object

-

Optional. The quantity of items object

InvoicedQuantity.Quantity

Number

-

Optional. Number of units of a particular product or service in a commercial transaction

InvoicedQuantity.UnitCode

String

This field is following the UN/ECE Recommendation 20, Revision 17 (2021) as per here hence the values should be following that standard.

MaxLength : 3

Optional. Standard unit or system used to measure the product or service.This value should be represented in actual decimal value like 0.15.

AllowanceCharge[]

Array

-

Conditional. Required only if there is invoice line item level allowance.

One or more Invoice level allowance charge objects.

AllowanceCharge[].ChargeIndicator

Boolean

-

Conditional. Required in case of parent context exists.

An indicator that this AllowanceCharge describes a discount. The value of this tag indicating discount (Allowance) must be "false". The value of this tag indicating Charge (Allowance) must be "true".

AllowanceCharge[].AllowanceChargeReason

String

Optional. To contain the description of the line-item discount applied

AllowanceCharge[].Amount

Amount Object

-

Amount deducted from the original price of a product or service.

OR

Charge associated with the product or service imposed after tax

AllowanceCharge[].MultiplierFactorNumeric

Number

Min: 0.00

Max: 100.00

Conditional, Discount Rate or Charge Rate.

MultiplierFactorNumeric. Charge associated with the product or service (be it in the form of percentage (%) or prevailing specified rate) imposed after tax OR

Percentage of deduction from the original price of a product or service

TaxTotal

Object

-

Mandatory when applicable.

TaxTotal.TaxAmount

Amount Object

-

Mandatory. The amount of tax payable.

TaxTotal.TaxSubtotal

Array

-

Mandatory, wherever applicable. Types of taxes that will be applicable

1.3.1 Line Level Tax SubTotal Object

Parameter
Data Type
Field Validations
Description

TaxAmount

Amount Object

-

Mandatory, The amount of tax payable.

TaxableAmount

Amount Object

-

Total amount of tax exempted for sales tax or service tax purposes.

Please add currencyID attribute to the XML element.

TaxCategory

Object

-

Mandatory. Line Level Tax Category Object

Percent

String

-

Optional. The appropriate tax rate as a decimal. i.e. dividing the tax rate percent by 100. For example, an 8% tax rate is represented as 0.08.

1.13.2 Line Level Tax Category Object

Parameter
Data Type
Field Validations
Description

Id

String

MaxLength: 2

Type of taxes that will be applicable. Use ID: E for Exemption

TaxExemptionReason

String

Max Length: 300

Description of tax exemption applicable.(e.g., Buyer’s sales tax exemption certificate number, special exemption as per gazette orders, etc.). The input of special characters is not allowed, except for dash (-).

Please add currencyID attribute to the XML element.

1.14 Payment Means Object

Parameter
Data Type
Field Validations
Description

PaymentMeansCode

String

Max Length: 2

PayeeFinancialAccount

Object

-

Optional. Payee Financial Account Payment Note object. Default: null

PayeeFinancialAccount.Id

MultiLingualString

MaxLength: 150

Optional. The Supplier’s bank account number to facilitate payment by Buyer

PreviousFrequently asked questions (FAQs)NextGenerate Access Token API

Last updated 3 months ago

Was this helpful?

Mandatory. Invoice Type Code Object. Identifies the document type (e.g., invoice, credit note, debit note, refund note, etc.)

Mandatory. Supplier’s Malaysia Standard Industrial Classification () Code. 5-digit numeric code that represent the Supplier’s business nature and activity

Mandatory. The of a country.

Mandatory. Seller country code. codes in an invoice MUST be coded using ISO code list 3166-1.

Mandatory. or services being billed as a result of a commercial transaction. More than 1 classification codes can be added for goods / services included in the invoice. OR Product Tariff Code [Only applicable for Goods]

Optional. . Description of origin of goods

Mandatory.

Optional. Chosen through which funds are transferred from buyer to supplier (e.g., cash, cheque, bank transfer, credit card, debit card, e-Wallet/ Digital Wallet, etc.)

🇲🇾
https://sdk.myinvois.hasil.gov.my/codes/e-invoice-types/
https://sdk.myinvois.hasil.gov.my/codes/currencies/
https://sdk.myinvois.hasil.gov.my/codes/currencies/
Additional Document Reference Object
Additional Document Reference Object
Additional Document Reference Object
Additional Document Reference Object
MSIC
state
Country
Category of products
Code
Code
Link
mechanism