Skip to main content
POST
/
pg
/
refunds
Create Refund
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

payment_id
string
required

The ID of the payment to refund.

refund_amount
string
required

The amount to be refunded. Can be a partial amount.

Response

Refund created successfully

success
boolean
required

Indicates if the request was successful

message
string
required

Response message

data
object
required