1. Payment ID

Partial Refund Service with Payment ID (PaymentId)

Partial Refund

POST {{Private Base Address}}/api/paywall/private/refund/partial/by/paymentid

Important: In order to use the Partial Refund with Payment ID service, you must send the 'apikeyprivate' and 'apiclientprivate' parameters in the Header field. PaymentPrivateAPI 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 to be sent to the service are as follows:

Parameter
Type
Compulsory
Description

PaymentId

int

Yes

This is the value contained in the PaymentId parameter within the response object returned by Paywall after the payment initiation.

Date

Date

Yes

Transaction date.

Amount

Decimal

Yes

Amount to be refunded.

{
    "Date": "2024-06-13",
    "PaymentId": 994838374,
    "Amount": 101.5,
    "MarketPlace": {
        "ProviderCommissionUpdate": true,
        "Platform": {
            "Decrease": true,
            "DecreaseAmount": 101.5
        },
        "Member": {
            "Decrease": false,
            "DecreaseAmount": null
        }
    }
}

Response returned from the service:

Parameter
Type
Description

ErrorCode

int

Error code. Returns “0” if the operation is successful.

Result

bool

Returns a true or false value. Returns “true” if the operation is successful.

Message

string

If the operation fails, this is the message describing the error; it provides language support based on the locale parameter.

Last updated