cURL
curl --request POST \ --url https://api-staging.eximpe.com/pg/refunds \ --header 'Content-Type: application/json' \ --header 'X-Client-ID: <api-key>' \ --header 'X-Client-Secret: <api-key>' \ --data ' { "payment_id": "PR8867819681", "refund_amount": "11" } '
{ "success": true, "message": "Refund request processed successfully", "data": { "refund_id": "RF8380989720", "payment_id": "PR8867819681", "refund_status": "INITIATED", "message": "Refund Request Queued", "transaction_id": "138287318", "bank_ref_num": null, "refund_amount": "11" } }
Create a new refund for a previously successful payment.
Client app ID. You can find your app id in the merchant dashboard.
Client secret key. You can find your secret in the merchant dashboard.
Refund creation request
The ID of the payment to refund.
The amount to be refunded. Can be a partial amount.
Refund created successfully
Indicates if the request was successful
Response message
Show child attributes
Unique identifier for the refund.
The ID of the payment that was refunded.
The status of the refund.
A message providing more detail about the refund status.
The bank reference number for the refund.
The refunded amount.
The timestamp of when the refund was completed.