1. Retrieve Debt

Retrieve payment-based debt information

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

Important: To use the Payment-Based Debt service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field. PaymentAPI Address

ParameterTypeZorunluAçıklama

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

paymentid

int

Yes

The payment's Id information in PayWall.

Servisten dönen cevap:

ParametreTipAçıklama

ErrorCode

int

Error code. It returns '0' if the operation is successful.

Result

bool

Returns a 'true' or 'false' value. It returns 'true' if the operation is successful.

Message

string

If the operation is erroneous, this message is specific to the error and provides language support based on the 'locale' parameter.

Body

object

Transaction details

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": [
        {
            "DebtId": 947,
            "Type": 2,
            "TypeName": "Cargo",
            "MemberId": 148,
            "MemberName": "test",
            "CurrencyId": 1,
            "Currency": "TRY",
            "ProductId": 2114065,
            "ProductAmount": 100.00,
            "DebtAmount": 120.00,
            "DebtStatusId": 1,
            "DebtTransactionId": 0,
            "Cargo": {
                "CargoId": 466722,
                "CargoOwnerType": 1,
                "CargoCost": 120.00
            },
            "Discount": null,
            "CalculationDateTime": "2023-09-15T14:53:58.5074"
        },
        {
            "DebtId": 948,
            "Type": 1,
            "TypeName": "Discount",
            "MemberId": 148,
            "MemberName": "test",
            "CurrencyId": 1,
            "Currency": "TRY",
            "ProductId": 2114065,
            "ProductAmount": 100.00,
            "DebtAmount": 9.90,
            "DebtStatusId": 1,
            "DebtTransactionId": 0,
            "Cargo": null,
            "Discount": {
                "DiscountId": 465176,
                "DiscountOwnerType": 1,
                "DiscountType": 1,
                "Discount": 10.00
            },
            "CalculationDateTime": "2023-09-15T14:53:58.530093"
        }
    ]
}

Last updated