1. Refund (Batch)
The batch refund service is used to refund all payments initiated as a batch. With this service, you can refund all payments within the batch payment you started.
Batch Refund Service
POST
{{Base Adres}}/api/paywall/payment/bulk/payment/refund
Refund requests must be sent after the day the payments occur. For payments to be reversed on the same day, the cancellation service should be used instead of the refund service.
The parameters that must be sent to the service are as follows:
apikeypublic
string
Yes
The Public Key you obtained from the merchant panel.
apiclientpublic
string
Yes
The Public Client you obtained from the merchant panel.
Refund Details:
Date
DateTime
Yes
The date on which the batch payment you want to refund was made.
MerchantUniqueCode
string
Yes
The tracking number you provided at the time of the batch payment.
The sample JSON and example codes to be sent to the service are as follows:
{
"Date": "2024-12-12",
"MerchantUniqueCode": "8279c96e-2775-4ecf-b594-3cb8fb265f88"
}
Parameters Returned from the Service
ErrorCode
int
Error code. Returns '0' if the operation is successful.
Result
bool
Returns true if the operation is successful, and false if it fails.
Message
string
Contains information or an error message related to the operation.
Body > Result
bool
Indicates whether the operation was successfully received. If true, it means Paywall has successfully received the request and placed it into the queue mechanism. Results will be delivered via callback notifications.
Body > TotalPaymentCount
int
Total transactions
Example JSON Returned from the Service
{
"ErrorCodeType": 1,
"ErrorMessage": null,
"ErrorCode": 0,
"Result": true,
"Message": "Bulk payment created and enqueued",
"Body": {
"Result": true,
"BulkPaymentId": 391,
"TotalPaymentCount": 6
}
}
Last updated