3. Delete Debt

You can delete sub-merchant debts that occur in your payments (such as shipping, discounts, etc.) as needed.

Delete Debt

DELETE {{PaymentBaseAddress}}/api/paywall/marketplace/debt/delete/id

Important: In order to use the Debt Deletion service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field. PaymentAPI Address

In order to perform the relevant transaction, the debt must not have been paid. Otherwise, the PayWall service will return an error message.

ParameterTypeMandatoryDescription

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 need to be sent to the service are as follows:

ParameterTypeDescription

Id

int

The debt's ID (Identity) information

The response returned from the service:

ParameterTypeDescription

ErrorCode

int

Error code. If the transaction is successful, it returns '0'.

Result

bool

It returns either true or false. If the operation is successful, it returns 'true

Message

string

If the operation is erroneous, this is the specified error message, providing language support based on the 'locale' parameter.

Body

object

Transaction details.

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

Last updated