POST
/
pg
/
refunds
/
Create Refund
curl --request POST \
  --url https://api-pacb-uat.eximpe.com/pg/refunds/ \
  --header 'Content-Type: application/json' \
  --header 'X-Client-ID: <api-key>' \
  --header 'X-Client-Secret: <api-key>' \
  --data '{
  "payment_id": "PR2024120567891",
  "refund_amount": "2250.00"
}'
{
  "success": true,
  "message": "Refund request processed successfully",
  "data": {
    "refund_id": "RF5622596094",
    "payment_id": "PR2099558561",
    "refund_status": "initiated",
    "message": "Refund Request Queued",
    "transaction_id": "138605980",
    "bank_ref_num": null,
    "refund_amount": "1000"
  }
}

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