Retrieve Transaction Refunds
URL
The endpoint and http method information to inquiry refund with payment transaction are stated below.
Request Parameters
Refund inquiry with payment transaction can only be made using the payment ID.
ID of payment that requested to be retrieved
ID of payment transaction that requested to be retrieved
Response Parameters
The parameters returned as a result of the payment are also subject to the rules specified in the Response Formats section of the API documentation home page. The object structure in the response is as follows:
ID of refund item
Date and time that refund is done
Returns SUCCESS
for successful refunds; FAILURE
for failed refunds
If refund destination is card or payment provider, this value returns as PROVIDER
. If refund destination is wallet, this value returns as WALLET
.
Refunded amount for payment item
Refunded bank amount for payment item
Refunded wallet amount for payment item
conversationId` value that sent in payment refund request by merchant
authCode value of the payment transaction related to the refund
hostReference value of the payment transaction related to the refund
transId value of the payment transaction related to the refund
Whether the refund is after the payout
See: Payment Types
Error detail info, returns if the refund is failed. See: Payment Error Groups
ID of payment transaction for the refund
Sample Codes
You can review the sample codes in the open source Craftgate API clients.