Skip to main content

Cancel Transaction

Refund & Reverse

Refund is returns funds to the customer either before / after settlement date is based on the payment provider.

Reverse will cancel the transactions only between specific such as 15 minutes after transaction happened, mainly for integrator to handle some situation like bad connection to prevent double charges.

Reverse

note

If a transaction is timed out, the merchant should perform a reverse order before creating a new transaction. This is to prevent a double charge.

Method : POST
URL : https://open.revenuemonster.my/v3/payment/reverse
Sandbox URL : https://sb-open.revenuemonster.my/v3/payment/reverse

Request Parameters

ParameterTypeValidationRequiredDescription
orderIdStringYesOrder ID
Example Request
{
"orderId": "180730103903010431152179"
}

Response Parameters

ParameterTypeValidationDescription
itemJSONTransaction ObjectTransaction response
codeStringENUM("SUCCESS")Determine request have success
error.codeStringError code
error.messageStringError message
error.debugStringDebug message ( sandbox only )

Refund

note

Transaction refundable is based on payment provider, so every payment have their own refund period if still need a refund after the period, please email to support@revenuemonster.my. Format as per below is recommended :-

Email Subject: [Refund Request] Test Merchant - 4118165203679668885

Email Body:

Transaction ID: 230514103255300424706686
Reference ID ( if applicable ): 20230512111212800110171906802679242
Total Tranasaction Amount: RM 10.00
Total Refund Amount ( if applicable ): RM 10.00
Reason for refund request/s: Exceed refund period and would like to request manual refund

Method : POST
URL : https://open.revenuemonster.my/v3/payment/refund
Sandbox URL : https://sb-open.revenuemonster.my/v3/payment/refund

Request Parameters

ParameterTypeValidationRequiredDescription
transactionIdStringYesTransaction ID
refund.typeStringENUM("FULL")YesRefund type
refund.currencyTypeStringENUM("MYR")YesRefund currency type
refund.amountUint64YesRefund amount
reasonStringYes
Example Request
{
"transactionId": "180730103903010431152179",
"refund": {
"type": "FULL",
"currencyType": "MYR",
"amount": 100
},
"reason": "test"
}

Response Parameters

ParameterTypeValidationDescription
itemJSONTransaction ObjectTransaction response
codeStringENUM("SUCCESS")Determine request have success
error.codeStringError code
error.messageStringError message
error.debugStringDebug message ( sandbox only )