POST
/
pg
/
refunds
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"
  }
}

Authorizations

X-Client-ID
string
header
required

Client app ID. You can find your app id in the merchant dashboard.

X-Client-Secret
string
header
required

Client secret key. You can find your secret in the merchant dashboard.

Body

application/json

Refund creation request

The body is of type object.

Response

200
application/json

Refund created successfully

The response is of type object.