Skip to main content

Partial Refund

Currently supported by Easypaisa, JazzCash, and HBL Konnect.

The partial refund amount must not exceed the original transaction amount — for example, if a transaction of 1000 PKR took place, the partial refund must be less than 1000 PKR. The refund process is asynchronous: the final status is delivered via IPN/postback to your configured URL.


Endpoint​

MethodPOST
Path/v3/transaction/refund

Headers​

HeaderValue
Accepttext/plain, application/json, application/*+json
Content-Typeapplication/json

Request Parameters​

ParameterRequiredTypeLengthDescription
transactionIdYesString—Unique ID of the transaction to refund
merchantIdYesString7Unique ID assigned by Simpaisa to the merchant
amountYesString—Amount to refund (must not exceed the original)
transactionDateYesString—Original transaction date (YYYY-MM-DD)
typeYesString—Transaction type (must be WALLETS)

Response Parameters​

ParameterDescription
statusResponse code indicating the result of the refund
messageMessage corresponding to the status code
merchantIdEcho of the merchant ID
transactionIdOriginal transaction ID
referenceNumberUnique reference number for this refund

Sample​

curl --location 'https://sandbox.simpaisa.com/v3/transaction/refund' \
--header 'Accept: text/plain, application/json, application/*+json' \
--header 'Content-Type: application/json' \
--data '{
"transactionId": "95188981",
"merchantId": "100000X",
"amount": "1",
"transactionDate": "2023-08-24",
"type": "WALLETS"
}'
{
"transactionId": "95188981",
"merchantId": "100000X",
"amount": "1",
"transactionDate": "2023-08-24",
"type": "WALLETS"
}