Refund
Use this API to make a Refund of the transaction.
- RF : reimbursement to a user wallet and card
How to make merchant refund?
The POST request will be send over HTTPS to the
endpoint.
Merchant needs to set authentication token in header for each request. To generate authentication token, please refer Auth token API.
Sample Request

Sample Response

How to generate verification hash?
Verification Hash has to be calculated with following combination using SHA256
algorithm and need to be send along with the authentication parameters in each server-to-server request.
Parameters required for creating hash are :
<secKey><customerId><amount><walletOwnerId><currency><transactionId>
Below is the description of fields used for generating hash:
- secKey <Secure Key that can be generated through getSecretKey API>
- customerId <Merchant Id as shared by TWPayz>
- amount <Amount of transaction>
- walletOwnerId <Wallet Owner ID as shared by TWPayz>
- currency <Currency of transaction>
- transactionId <Id of success transaction>
Sample Code
