Get Refund By Id
Endpoint : GET https://api.zamplabs.com/payments/v1/refunds/{refund-id}
Response Body
Key | Value | Description |
---|---|---|
id | ReiHsjPSGKGscpAWJ38YyA_08_26 | This is the refund UUID. Please store this UUID as polling and callbacks of refunds will be made against this UUID |
reference_id | pshM776tAdmyMyZruPjXhK_08_26 | Reference of merchant's systems uuid |
payment_session_id | merchant_uNR5Kc6a2zTdfqbLsDwxUZ_06_15 | Payment Session Id |
amount | float64 value | Amount of the money that was refunded |
currency_code | String value | Currency in which refund is processed |
remarks | String value | Remarks used while initiating a refund. |
status | initiated, in_process, succeeded, failed | Status of the refund |
failure_code | Refund Failure Codes | Failure 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"
}
}