BeaconX e-Invoice API
  1. B2B e-Invoicing
BeaconX e-Invoice API
  • BeaconX e-Invoice API Documentation
  • API Endpoints
    • B2B e-Invoicing
      • Create Document(s)
        POST
      • Cancel Document
        POST
      • Void Document
        POST
      • Unvoid Document
        POST
      • Create Invoice from Receipt
        POST
      • Check Status
        POST
      • Embed QR Code
        POST
      • Invoice Reversal
        POST
      • Update Reference Number
        POST
    • B2C Receipt
      • Retrieve Receipt
      • Search Receipts
      • Create a Receipt
      • Update existing Receipt
      • Void a Receipt
      • Void Multiple Receipts
      • UnVoid a Receipt
      • Send a Receipt (Email / WhatsApp)
      • Download Receipts Report
      • Create Multiple Receipts (Bulk)
      • Receipt Reversal
      • Update Reference Number
      • Check Status
    • TaxPayer
      • Validate Tax Payer
      • Sync Tax Payer Master List
      • Identity
      • Validate SSM
      • Search TIN
    • Lists
      • Get list of all Classification Codes
  1. B2B e-Invoicing

Void Document

POST
/einvoices/void
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

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "reference_number": "BeaconX-22873"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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

🟢200OK
application/json
Body

Examples
{"status":"Failed","message":"Document is already voided.","data":[]}
Modified at 2024-09-19 19:57:20
Previous
Cancel Document
Next
Unvoid Document
Built with