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

Update Reference Number

POST
/receipts/update_reference
This endpoint provides the convenience to update the Reference Number only. This is to prevent conflicting reference number in case the number needs to be re-used. If a receipt is attached to an eInvoice document, it will reflect changes in the eInvoice as well. New reference number must be unique and available.

Request

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

Example
{
    "old_reference_number": "old_number",
    "new_reference_number": "new_number"
}

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/update_reference' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "old_reference_number": "old_number",
    "new_reference_number": "new_number"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": "string",
    "message": "string",
    "data": null
}
Modified at 2024-12-16 07:42:12
Previous
Receipt Reversal
Next
Check Status
Built with