Refund
Merchant Refund API to allow merchant to initiate refunds.
Endpoint URL
baseUrl = https://sandbox.reddragonpay.com
Endpoint: {baseUrl}/pgui/services/paymentServices/refund/initiate
Parameter | Data Type | Mandatory |
---|---|---|
APP_ID | Numeric | Yes |
TXN_ID | Numeric | Yes |
ORDER_ID | Alphanumeric | Yes |
HASH | Alphanumeric | Yes |
AMOUNT | Numeric | No |
Request
Sample
{
"HASH" : "37763253AEEFA8F74A8C951441F154C3E6316E56D99A6B74C96A152A3186267A123003AC3CC36D351259F2D948D82A369DAEC43837CDAA156C422A0D92BF7FDD",
"TXN_ID" : "1000241007204207",
"ORDER_ID" : "SIGN1728315786101",
"APP_ID" : "1000221213112345",
"AMOUNT" : "10122"
}
Response
Sample
{
"APP_ID": "1000221213112345",
"RESPONSE_CODE": "000",
"PG_TXN_MESSAGE": "Refund processed successfully order ID: SIGN1728470013966",
"STATUS": "Captured",
"ORDER_ID": " SIGN1728315786101",
"TXN_ID": "1000241009161040",
"AMOUNT": "10122",
"RESPONSE_MESSAGE": "Refund processed successfully order ID: SIGN1728470013966",
"CURRENCY_CODE": "840",
"HASH": "37763253AEEFA8F74A8C951441F154C3E6316E56D99A6B74C96A152A3186267A123003AC3CC36D351259F2D948D82A369DAEC43837CDAA156C422A0D92BF7FDD "
}
caution
- It is recommended to check the combination of status and response code received in response.
- Response Code: (000) + Status: (Captured) = Successfully Captured
- Hash generation mechanism is same as shared in Pay-in integration documents.