10. Partial Refund

Partial Refund

POST {{Base Address}}/api/paywall/private/refund/partial

Important: To use the Partial Refund service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' section. PaymentAPI Address

Parameter
Type
Compulsory
Description

apikeyprivate

string

yes

The Private Key obtained from the merchant panel.

apiclientprivate

string

Yes

The Private Client obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

Parameter
Type
Compulsory
Description

MerchantUniqueCode

string

Yes

The MerchantUniqueCode in the request sent for initiating a payment must have the same value. This code is a unique value provided by your side for each transaction. It is used to uniquely identify and track a payment in all Cancel/Refund/Payment Inquiry operations.

Date

Date

Yes

Transaction date

Amount

Decimal

Yes

Expected refund amount

{
    "Date": "2023-01-23",
    "MerchantUniqueCode": "12222a222a",
    "Amount": 70
}

Response from the service:

Parameter
Type
Description

ErrorCode

int

Error code. It returns '0' if the operation is successful.

Result

bool

Returns a true or false value. It returns 'true' if the operation is successful.

Message

string

If the operation fails, this is the specified error message that provides language support based on the 'locale' parameter.

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "Success",
    "Body": null
}

Last updated