Cancel Malaysia E-Invoice
Cancel a previously submitted Malaysia e-invoice document on LHDN MyInvois.
You can cancel by sending either:
-
docId(Staple document ID), or -
uuid(MyInvois document UUID)
Important:
Cancellation is subject to MyInvois/LHDN rules, such as allowed time window and document state.
If cancellation is not allowed, clients should issue a Credit Note instead.
Endpoint
POST /v2/einvoice/malaysia/cancel
Request Headers
Content-Type: application/json
Accept: application/json
Request Payload (by docId)
Sample
Request Payload (by uuid)
Sample
Response (Success)
Response Field Notes
-
uuid: MyInvois document UUID of the cancelled document -
status: Expected success value isCancelled
Error Notes
If cancellation fails, clients should inspect the returned error details from this endpoint.
Example request payload:
Authentication
x-api-keystring
API key issued by Staple.
AuthorizationBearer
JWT obtained from the login endpoint.
Request
This endpoint expects an object.
reason
Response
OK