Refund

This API will refund full/partial amount to customers account.

              
                curl --location --request POST 'http://BASE URL/api/payment/refund' \
                --header 'mid: 9c87xxxxxxxxxd3f' \
                --header 'password: c873xxxxxxxxxecadc3' \
                --header 'Content-Type: application/json' \
                --data-raw '{
                  "transaction_id": "xxxxxxx123459994",
                  "amount": "100",
                }'
              
            

Header Authentication

Enter valid MID and Password

Parameter Details Is mandatory
mid Enter valid MID available in the Developer’s section. Yes
password Enter valid password available in developer section. Yes

Request Parameters

Enter all the mandatory parameters and valid api key

Parameter Details Is mandatory
transaction_id Enter unique transaction id Yes
amount Charge amount with 100 multiplier. e.g capture amount is 300.50 then enter amount as 30050. Yes

Response

API response details

              
                {
                      "id": xxxxxxx123459994,
                      "status": true,
                      "message": "Transaction is successfully Refunded."
                }
              
            

Response Parameters

Response parameter details

Parameter Details
id Unique transaction id of refund order.
status Transaction status true for success and false for fail
message Transaction descriptive detailes