The endpoint and http method information used to refund wallet transaction are stated below.
The expected parameters to be sent in requests to refund wallet transaction are listed under the table and subheadings below.
Amount to be refunded
Parameters returned as a result of refund wallet transaction are also subject to the rules specified in the Response Formats section of the API documentation home page. In the absence of a systematic or fictional error, the sub-parameters of the object returned in the
data parameter are as follows:
ID of the wallet refund transaction
The date that the refund is created
The refund status. See: Refund Status
The amount that refunded
authCode value retrieved from bank for the payment
hostReference value retrieved from bank for the payment
transId value retrieved from bank for the payment
ID value of the transaction that refund to the wallet then refunded back from member's wallet
Type of the transaction that refund to the wallet then refunded back from member's wallet
PAYMENT: Payment Refund,
PAYMENT_TX: Refund of Payment Transaction,
WALLET_TX: Refund of Wallet Transaction
Error that occurred while refund of wallet transaction
ID of the wallet transaction that refunded
You can review the sample codes in the open source Craftgate API clients.