Refund A Collection
POST
/collection-middleware/process/refund
This endpoint processes a refund for a collection back to the payer that sent it. A partner would call this endpoint when they wish to initiate a refund for a collection. The request must include the reference transaction ID, reason for the refund, fee policy, and idempotency key.
Request body
-
referenceTransactionIdrequiredUnique identifier of the original transaction to be refunded
-
reasonrequiredDescription of the reason for the refund
Response 200
-
successIndicates whether the refund was processed successfully
-
dataContains the refund details
-
refundReferenceUnique reference for the refund
-
referenceTransactionIdReference ID of the original transaction
-
statusCurrent status of the refund
-
refundAmountAmount refunded to the payer
-
feeReversedAmountAmount of fees reversed during the refund
-
currencyCodeCurrency code of the refund
-
payerAccountNumberPayer's account number
-
payerBankCodePayer's bank code
-
payerNamePayer's name
-
settlementRouteRoute used for settlement
-
feePolicyFee policy applied to the refund
-
providerReferenceProvider's reference for the refund
-
providerResponseProvider's response to the refund request
-
reasonReason for the refund
-
failureReasonReason for the refund failure
-
initiatedAtTimestamp when the refund was initiated
-
completedAt
-
-
error
-
codeThe error code returned by the bank
-
messageThe error message returned by the bank
-