2. Decrease Debt

In cases such as shipping fees, discounts, etc., you can decrease the debts of sub-merchants in your payments whenever needed.

Decrease Debt

PUT {{Base Adres}}/api/paywall/marketplace/debt/decrease/id

Important: To use the Debt Decrease service, you must include the parameters apikeypublic and apiclientpublic in the Header section.

PaymentAPI Address

Parameter
Type
Compolsory
Description

apikeypublic

string

Yes

The Public Key you obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client you obtained from the merchant panel.

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

Parameter
Type
Description

Id

int

The ID information of the debt.

Debt

decimal

The amount by which you want to decrease the debt.

Response returned from the service:

Parameter
Type
Description

ErrorCode

int

Error code. Returns the value '0' if the operation is successful.

Result

bool

Returns a value of true or false. If the operation is successful, it returns 'true'.

Message

string

If the operation fails, this is the message describing the error. Language support is provided based on the locale parameter.

Body

object

Transaction detail information.

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

Last updated