2. Debt Reduction
You can reduce the sub-merchant debts that occur in your payments (such as shipping, discounts, etc.) as needed.
Debt Reduction
PUT
{{PaymentBaseAddress}}/api/paywall/marketplace/debt/decrease/id
Important: In order to use the Debt Reduction service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field.
In order to perform the relevant transaction, the debt must not have been paid. Otherwise, the PayWall service will return an error message.
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeypublic | string | Yes | The Public Key you have obtained from the merchant panel. |
apiclientpublic | string | Yes | The Public Client you have obtained from the merchant panel. |
The parameters that need to be sent to the service are as follows:
Parameter | Type | Description |
---|---|---|
Id | int | The debt's ID (Identity) information |
Debt | decimal | The amount you want to reduce the debt by. |
The response returned from the service:
Parameter | Type | Description |
---|---|---|
ErrorCode | int | Error code. If the transaction is successful, it returns '0'. |
Result | bool | It returns a boolean value, either 'true' or 'false'. If the transaction is successful, it returns 'true'. |
Message | string | If the transaction is erroneous, it provides a message specific to that error, with language support based on the 'locale' parameter. |
Body | object | Transaction details |
Last updated