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

Void Multiple Receipts

POST
/receipts/void

Request

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

Body Params application/json

Example
{
    "reference_number": [
        "101-A201-1130",
        "101-A201-1131"
    ]
}

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/receipts/void' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reference_number": [
        "101-A201-1130",
        "101-A201-1131"
    ]
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": "string",
    "message": "string",
    "data": {
        "issued_at": "2019-08-24T14:15:22Z",
        "outlet_code": "string",
        "pos_id": "string",
        "reference_number": "string",
        "invoice_number": "string",
        "membership_id": "string",
        "buyer_email": "john.doe@gmail.com",
        "buyer_phone": "string",
        "sub_total": 0,
        "service_charge_rate": 0,
        "service_charge_amount": 0,
        "sst_rate": 0,
        "sst_amount": 0,
        "rounding": 0,
        "total": 0,
        "quantity": 0,
        "discount_amount": 0,
        "status": "string",
        "currency_code": "MYR",
        "currency_rate": 0,
        "items": [
            {
                "id": 0,
                "description": "string",
                "unit_price": 0,
                "quantity": 0,
                "measurement": "UNIT",
                "discount_rate": 0,
                "discount_amount": 0,
                "subtotal": 0,
                "total_excl_tax": 0,
                "total_incl_tax": 0
            }
        ],
        "payment_mode": "st",
        "payment_amount": 0,
        "payment_reference_number": "string",
        "remarks": "string"
    }
}
Modified at 2024-06-21 03:27:18
Previous
Void a Receipt
Next
UnVoid a Receipt
Built with