Reversal Request

Merchant can request a reversal of transaction via original payment method for an “authorized” card, and “captured” card (including recurring payment), M2U, CIMB Clicks, Hong Leong Connect, Razer Pay, Alipay-Spot, POS Terminal, Boost and WeChat Pay payment.

For most of the payment channels above, the transaction can be “void” immediately on the same day before settlement (card payment at around 10pm and other channels are 11:59pm local time). For a payment channel that accepts refund requests, the transaction that happens within 180 days will be refunded within 7-14 days after the request is sent.

Please note that this API is to send a refund request, but not getting the status of the refund process. All successful requests shall be executed and if there is any exceptional case, PG support team will contact the merchant to resolve the issue.

Method: POST OR GET

Variable / ParameterType Format / Max LengthDescription / Example
txnIDinteger, 20 digitsUnique transaction ID for tracking purpose.
domainalphanumeric, 32 charsMerchant ID in PG system.
skey32 chars hexadecimal stringThis is the data integrity protection hash string.
urloptional, URL for POST responseThe URL to receive POST response from PG
typeoptional, 1-digit integer0 = plain text result (default), 1 = result via POST method

Response

Variable / ParameterType Format / Max LengthDescription / Example
TranIDinteger, 20 digitsEcho of the txnID in request
Domainalphanumeric, 32 charsEcho of the domain in request
VrfKey32 chars hexadecimal stringThis is the data integrity protection hash string.
StatCodestring of 2-digit numeric00 = Success (will proceed the request), 11 = Failure, 12 = Invalid or unmatched security hash string, 13 = Not a refundable transaction, 14 = Transaction date more than 180 days, 15 = Requested day is on settlement day, 16 = Forbidden transaction, 17 = Transaction not found, 18 = Duplicate partial refund request, 19 = Merchant not found, 20 = Missing required parameter, 21 = Transaction must be in authorized/captured/settled status, 22 = Duplicate request is not allowed
StatDatedate (YYYY-MM-DD HH:mm:ss)Response date & time
refundIDinteger, 20 digitsRefund ID provided by PG

Formula of skey & VrfKey

skey =md5( {txnID}{domain}{secret_key} )
VrfKey=md5( {secret_key}{Domain}{TranID}{StatCode} )

Reversal Reference Table

Payment ChannelSupport Void / Refund / BothCut-off time for VOID requestProcessing methodCredit to buyer within
MYR card paymentBoth10pm GMT+8manual1-4 business day
Maybank2uRefund-manual7-business day
CIMB ClicksRefund-manual7-business day
Hong Leong ConnectRefund-manual7-business day
Razer PayBoth11:59pm GMT+8auto1-business day
Alipay SpotBoth11:59pm GMT+8auto1-business day
Wechat Pay (CN, MY)Both11:59pm GMT+8auto1-business day
BoostBoth11:59pm GMT+8auto1-business day
TnG e-WalletBoth11:59pm GMT+8auto1-business day
Grab PayBoth11:59pm GMT+8auto1-business day
Maybank QR PushRefund-manual7-business day
Language
Click Try It! to start a request and see the response here!