Fetch A Refund By Reference
GET
/collection-middleware/fetch/{refundReference}
This endpoint fetches a refund by its reference, allowing a partner to retrieve the details of a specific refund. A partner would call this endpoint when they need to access the status and details of a refund that has been processed through the CSL Pay platform. The endpoint returns the refund details in a structured format.
Path parameters
-
refundReferencerequired
Request body (optional)
This endpoint accepts a body with no declared schema.
Response 200
-
successIndicates whether the refund request was successful
-
dataThe refund data object
-
refundReferenceThe unique reference for the refund
-
referenceTransactionIdThe reference ID of the original transaction
-
statusThe current status of the refund
-
refundAmountThe amount refunded to the payer
-
feeReversedAmountThe amount of fees reversed
-
currencyCodeThe currency code of the refund
-
payerAccountNumberThe account number of the payer
-
payerBankCodeThe bank code of the payer
-
payerNameThe name of the payer
-
settlementRouteThe route used for settlement
-
feePolicyThe fee policy applied to the refund
-
providerReferenceThe reference ID from the payment provider
-
providerResponseThe response from the payment provider
-
reasonThe reason for the refund
-
failureReasonThe reason for the refund failure
-
initiatedAtThe date and time the refund was initiated
-
completedAtThe timestamp the reversal was completed
-
-
error
-
codeThe error code as returned from the bank
-
messageThe error message returned from the bank
-