BizCARE MyInvois
API Reference

Data Models

Data models and types used by the E-Invoice API

Data Models

This page documents the data structures used across the API.

Enums

InvoiceType

ValueDescription
INVOICEStandard invoice
SELF_BILLED_INVOICESelf-billed invoice
PENDING_FINALIZE_INVOICEPending finalization invoice
PENDING_FINALIZE_SELF_BILLED_INVOICEPending finalization self-billed invoice

AdjustmentNoteType

ValueDescription
CREDIT_NOTECredit note
DEBIT_NOTEDebit note
REFUND_NOTERefund note

ConsolidatedInvoiceType

ValueDescription
CONSOLIDATED_INVOICEConsolidated invoice
CONSOLIDATED_SELF_BILLED_INVOICEConsolidated self-billed invoice

PartyType

ValueDescription
LOCAL_INDIVIDUALMalaysian individual
LOCAL_EXEMPTED_ENTITYLocally exempted entity
LOCAL_BUSINESS_AGENT_DEALER_DISTRIBUTORLocal business / agent / dealer / distributor
FOREIGNER_BUSINESSForeign business
FOREIGNER_INDIVIDUALForeign individual

RegistrationType

ValueDescription
NRICNational Registration Identity Card
BRNBusiness Registration Number
PASSPORTPassport number
ARMYArmy number

Core Models

Address

FieldTypeDescription
addressLine0stringPrimary address line
addressLine1string?Address line 2
addressLine2string?Address line 3
postalZonestring?Postal/ZIP code
cityNamestringCity name
statestringState code (Malaysian state codes)
countrystringCountry code (ISO 3166-1 alpha-3, e.g., MYS)

Buyer

FieldTypeDescription
namestringBuyer name
tinstringTax identification number
partyTypePartyTypeType of party
registrationTypeRegistrationType?Registration type
registrationNumberstring?Registration number
sstRegistrationNumberstring?SST registration number
emailstring?Email address
contactNumberstring?Contact phone number
addressAddress?Buyer address

Supplier

Extends the Buyer model with additional required fields:

FieldTypeDescription
contactNumberstringContact phone number (required)
addressAddressSupplier address (required)
msicstringMSIC code
businessActivityDescriptionstringBusiness activity description
tourismTaxRegistrationNumberstring?Tourism tax registration number
bankAccountstring?Bank account number
exporterCertifiedNumberstring?Exporter certified number

LineItem

FieldTypeDescription
idstringUnique line item identifier
descriptionstringItem description
classificationsstring[]Classification codes
unit.pricenumberUnit price
unit.countnumberQuantity
unit.codestring?Unit code (e.g., EA)
taxAmountnumberTotal tax amount
taxDetailsTaxDetail[]Tax breakdown
taxExemptionTaxExemption?Tax exemption details
allowanceChargesAllowanceCharge[]?Discounts/charges
originCountrystringCountry of origin (ISO 3166-1 alpha-3)
tarriffCodestring?Tariff code

TaxDetail

FieldTypeDescription
taxTypestringTax type code (e.g., 01 for SST)
taxRate.percentagenumber?Tax rate percentage
taxRate.ratePerUnitnumber?Tax rate per unit
taxableAmountnumberTaxable amount
taxAmountnumberCalculated tax amount

LegalMonetaryTotal

FieldTypeDescription
excludingTaxnumberTotal excluding tax
includingTaxnumberTotal including tax
payableAmountnumberTotal payable amount
netAmountnumber?Net amount
discountValuenumber?Discount value
feeAmountnumber?Fee amount
payableRoundingAmountnumber?Rounding amount

Document Models

Invoice

FieldTypeDescription
idnumberInvoice ID
company_idnumberCompany ID
user_idnumberUser ID
consolidated_invoice_idnumber?Consolidated invoice ID (if part of one)
is_submitted_to_lhdnbooleanWhether submitted to LHDN
is_readybooleanWhether ready for submission
invoice_codestringInvoice code
external_idstring?External reference ID
typeInvoiceTypeInvoice type
buyerBuyerBuyer information
supplierSupplierSupplier information
line_itemsLineItem[]Line items
legal_monetary_totalLegalMonetaryTotalMonetary totals
statusstringDraft, Pending, Submitted, Cancelled, Valid, Invalid
final_adjusted_amountnumberFinal amount after adjustments
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

AdjustmentNote

FieldTypeDescription
idnumberAdjustment note ID
company_idnumberCompany ID
invoice_idnumber?Related invoice ID
consolidated_invoice_idnumber?Related consolidated invoice ID
codenumberAdjustment note code
typeAdjustmentNoteTypeCREDIT_NOTE, DEBIT_NOTE, or REFUND_NOTE
line_itemsLineItem[]Line items
issue_datestringIssue date
legal_monetary_totalLegalMonetaryTotalMonetary totals
statusstringPending, Submitted, Cancelled, Valid, Invalid
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

ConsolidatedInvoice

FieldTypeDescription
idnumberConsolidated invoice ID
company_idnumberCompany ID
invoice_codenumberInvoice code
external_idstring?External reference ID
typeConsolidatedInvoiceTypeConsolidated invoice type
buyerBuyerBuyer information
supplierSupplierSupplier information
line_itemsLineItem[]Line items
legal_monetary_totalLegalMonetaryTotalMonetary totals
statusstringAWAIT_SUBMISSION_TO_LHDN, Submitted, Cancelled, Valid, Invalid
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

EinvoiceRequest

FieldTypeDescription
idnumberRequest ID
company_idnumberCompany ID
invoice_codestringInvoice code
document_detailsobjectContains buyer, supplier, and invoiceCode (populated from the flat create request fields)
statusstringPending, Reject, Approve
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

SubmittedDocument

FieldTypeDescription
idnumberDocument ID
document_submission_idnumberSubmission batch ID
invoice_idnumber?Related invoice ID
consolidated_invoice_idnumber?Related consolidated invoice ID
adjustment_note_idnumber?Related adjustment note ID
company_idnumberCompany ID
user_idnumberUser ID
codestringDocument code
uuidstring?MyInvois UUID
statusstringSubmitted, Cancelled, Valid, Invalid
fail_reasonstring?Failure reason
fail_detailsany?Detailed failure info
document_detailsobjectSnapshot of the UBL XML JSON value submitted to LHDN. This is a large nested object following the OASIS UBL schema — treat as opaque JSON.
typestringDocument type (e.g., INVOICE, CREDIT_NOTE)
cancel_reasonstring?Cancellation reason
long_idstring?MyInvois long ID
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Company

FieldTypeDescription
idnumberCompany ID
namestringCompany name
tin_codestringTax identification number
registration_numberstringRegistration number
registration_typeRegistrationTypeRegistration type
sst_registration_numberstring?SST registration number
tourism_tax_registration_numberstring?Tourism tax registration number
business_activity_descriptionstringBusiness activity description
msic_codestringMSIC code
countrystringCountry name
statestringState name
zip_codestringPostal code
citystringCity
addressstringAddress
phonestringPhone number
emailstringEmail address
bank_accountstring?Bank account number
exporter_certified_numberstring?Exporter certified number
settingobjectCompany settings (prefixes, auto-submit config)
default_tax_types_and_ratesobject[]Default tax types and rates
is_company_readybooleanWhether company setup is complete for e-invoicing
as_buyerobjectPre-formatted buyer representation of the company
as_supplierobjectPre-formatted supplier representation of the company
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Pagination

All list endpoints return paginated responses:

{
  "meta": {
    "total": 50,
    "per_page": 10,
    "current_page": 1,
    "last_page": 5,
    "first_page": 1,
    "first_page_url": "/?page=1",
    "last_page_url": "/?page=5",
    "next_page_url": "/?page=2",
    "previous_page_url": null
  },
  "data": []
}

Query Parameters

ParameterTypeDefaultDescription
pagenumber1Page number
per_pagenumber10Items per page

Common Reference Values

Tax Types

CodeDescription
01Sales Tax
02Service Tax
03Tourism Tax
04High-Value Goods Tax
05Sales Tax on Low Value Goods
06Not Applicable
ETax Exemption

Malaysian State Codes

CodeState
01Johor
02Kedah
03Kelantan
04Melaka
05Negeri Sembilan
06Pahang
07Perak
08Perlis
09Pulau Pinang
10Sabah
11Sarawak
12Selangor
13Terengganu
14Kuala Lumpur
15Labuan
16Putrajaya