Skip to main content

Get Refund By Id

Endpoint : GET https://api.zamplabs.com/payments/v1/refunds/{refund-id}

Response Body

KeyValueDescription
idReiHsjPSGKGscpAWJ38YyA_08_26This is the refund UUID. Please store this UUID as polling and callbacks of refunds will be made against this UUID
reference_idpshM776tAdmyMyZruPjXhK_08_26Reference of merchant's systems uuid
payment_session_idmerchant_uNR5Kc6a2zTdfqbLsDwxUZ_06_15Payment Session Id
amountfloat64 valueAmount of the money that was refunded
currency_codeString valueCurrency in which refund is processed
remarksString valueRemarks used while initiating a refund.
statusinitiated, in_process, succeeded, failedStatus of the refund
failure_codeRefund Failure CodesFailure code in case refund is failed

Response JSON Representation :

{
"data": {
"id": "ReiHsjPSGKGscpAWJ38YyA_08_26",
"merchant_id": "9GtnphjB6rbcvwb7eP5xid_05_27",
"reference_id": "8Gtnpzyion6rbcvwb7eP5xid",
"payment_session_id": "merchant_uNR5Kc6a2zTdfqbLsDwxUZ_06_15",
"amount": 10,
"currency_code": "USD",
"remarks": "Refund payment session",
"status": "initiated",
"failure_code":"",
"created_at": "2022-08-26T18:05:14.86225075Z",
"updated_at": "2022-08-26T18:05:14.862250868Z"
}
}