This API endpoint allows to set status of a Document to Void.Only Documents that are in Draft, PendingApproval, Invalid status can be Voided.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"reference_number": "BeaconX-22873"
}
Request Code Samples
curl --location --request POST 'https://einvoice-api.beaconx.com.my/einvoices/void' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"reference_number": "BeaconX-22873"
}'
Responses
application/json {"status":"Failed","message":"Document is already voided.","data":[]}
Modified at 2024-09-19 19:57:20