Cancel Transaction
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
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
Parameter | Type | Validation | Required | Description |
---|---|---|---|---|
orderId | String | Yes | Order ID |
{
"orderId": "180730103903010431152179"
}
Response Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
item | JSON | Transaction Object | Transaction response |
code | String | ENUM("SUCCESS") | Determine request have success |
error.code | String | Error code | |
error.message | String | Error message | |
error.debug | String | Debug message ( sandbox only ) |
Refund
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
Parameter | Type | Validation | Required | Description |
---|---|---|---|---|
transactionId | String | Yes | Transaction ID | |
refund.type | String | ENUM("FULL") | Yes | Refund type |
refund.currencyType | String | ENUM("MYR") | Yes | Refund currency type |
refund.amount | Uint64 | Yes | Refund amount | |
reason | String | Yes |
{
"transactionId": "180730103903010431152179",
"refund": {
"type": "FULL",
"currencyType": "MYR",
"amount": 100
},
"reason": "test"
}
Response Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
item | JSON | Transaction Object | Transaction response |
code | String | ENUM("SUCCESS") | Determine request have success |
error.code | String | Error code | |
error.message | String | Error message | |
error.debug | String | Debug message ( sandbox only ) |