Skip to content

API Reference ​

Every public method of MyInvoisClient, grouped by the official API areas. Each method links back to the LHDN endpoint documentation it wraps — cross-check there for authoritative request/response semantics.

Coverage map ​

Client methodOfficial endpointOfficial docs
(automatic login)POST /connect/tokenLogin as Taxpayer · Login as Intermediary
submitDocumentPOST /api/v1.0/documentsubmissionsSubmit Documents
getSubmissionStatusGET /api/v1.0/documentsubmissions/{uid}Get Submission
cancelDocumentPUT /api/v1.0/documents/state/{uuid}/stateCancel Document
rejectDocumentPUT /api/v1.0/documents/state/{uuid}/stateReject Document
getDocumentGET /api/v1.0/documents/{uuid}/rawGet Document
getDocumentDetailsGET /api/v1.0/documents/{uuid}/detailsGet Document Details
getRecentDocumentsGET /api/v1.0/documents/recentGet Recent Documents
searchDocumentsGET /api/v1.0/documents/searchSearch Documents
getDocumentQrCode(share URL from uuid + longId)Get Document
verifyTinGET /api/v1.0/taxpayer/validate/{tin}Validate Taxpayer's TIN
searchTinGET /api/v1.0/taxpayer/search/tinSearch Taxpayer's TIN
getTaxpayerQRCodeGET /api/v1.0/taxpayers/qrcodeinfo/{token}Taxpayer's QR Code
getDocumentTypesGET /api/v1.0/documenttypesGet All Document Types
getDocumentTypeGET /api/v1.0/documenttypes/{id}Get Document Type
getDocumentTypeVersionGET /api/v1.0/documenttypes/{id}/versions/{vid}Get Document Type Version
getNotificationsGET /api/v1.0/notifications/taxpayerGet Notifications

Document building and signing helpers (buildSignedDocuments, buildSignedDocument, generateCompleteDocument, …) are local operations — no endpoint — documented in Signing & Submission.

Document structures follow the official types, e.g. Invoice v1.1; all code fields are typed against the official code tables.