Cancel pre-auth (or cancel pre-authorization) is the process of releasing a temporary hold on funds placed on a customer's payment method before the final transaction is completed.Important Notes:
You can only cancel a pre-authorization if the transaction is still pending; if the pre-auth has already been completed or previously cancelled, it cannot be cancelled again.
Each transaction’s pre-authorization can be cancelled only once.
Once the cancellation is successfully processed, the transaction status will update to "CANCELLED."
For ABA PAY and Card transactions, funds are instantly released back to the payer, whereas for KHQR transactions, the funds will be refunded to the payer.
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
request_time
string
required
Request date and time in UTC format as YYYYMMDDHHmmss.
merchant_id
string
required
A unique merchant key which provided by ABA Bank.
<= 20 characters
merchant_auth
string
required
The JSON-encoded object containing mc_id and tran_id using RSA public key encryption in chunks. The encrypted data is then concatenated and encoded in Base64 format.mc_idstringmandatory A unique merchant key which provided by ABA Bank. Same value as merchant_id.tran_idstringmandatory Pre-auth purcahse transaction id to cancel.PHP Sample Code
hash
string
required
Base64-encoded HMAC-SHA512 hash of concatenated values: merchant_id, merchant_auth, and request_time with public_key.PHP Sample Code