1. Retrieve Debt

Retrieve product-specific debt information.

GET {{PaymentBaseAddress}}/api/paywall/marketplace/report/debt/product

Important: To use the Product-Specific Debt service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section. PaymentAPI Address

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.

productid

int

Yes

The ID information of the product related to the payment in PayWall.

Servisten dönen cevap:

ParameterTypeDescription

ErrorCode

int

Error code. If the transaction is successful, it returns a value of '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 unsuccessful, this is the error message specified, and it provides language support based on the 'locale' parameter.

Body

object

Transaction details

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": [
        {
            "DebtId": 1,
            "Type": 2,
            "TypeName": "Cargo",
            "MemberId": 136,
            "MemberName": "test12",
            "CurrencyId": 1,
            "Currency": "TRY",
            "ProductId": 1636447,
            "ProductAmount": 1.00,
            "DebtAmount": 10.00,
            "DebtStatusId": 0,
            "DebtTransactionId": 0,
            "Cargo": {
                "CargoId": 9494,
                "CargoOwnerType": 1,
                "CargoCost": 10.00
            },
            "Discount": null,
            "CalculationDateTime": "2023-07-14T19:07:28.256488"
        },
        {
            "DebtId": 3,
            "Type": 2,
            "TypeName": "Cargo",
            "MemberId": 136,
            "MemberName": "test12",
            "CurrencyId": 1,
            "Currency": "TRY",
            "ProductId": 1636447,
            "ProductAmount": 1.00,
            "DebtAmount": 10.00,
            "DebtStatusId": 0,
            "DebtTransactionId": 0,
            "Cargo": {
                "CargoId": 9494,
                "CargoOwnerType": 1,
                "CargoCost": 10.00
            },
            "Discount": null,
            "CalculationDateTime": "2023-07-14T21:55:47.604722"
        },
        {
            "DebtId": 4,
            "Type": 1,
            "TypeName": "Discount",
            "MemberId": 136,
            "MemberName": "test12",
            "CurrencyId": 1,
            "Currency": "TRY",
            "ProductId": 1636447,
            "ProductAmount": 1.00,
            "DebtAmount": 3.25,
            "DebtStatusId": 0,
            "DebtTransactionId": 0,
            "Cargo": null,
            "Discount": {
                "DiscountId": 9197,
                "DiscountOwnerType": 1,
                "DiscountType": 1,
                "Discount": 5.00
            },
            "CalculationDateTime": "2023-07-14T21:55:47.638496"
        }
    ]
}

Last updated