# 1. Borç Getir

## Ürün bazlı borç bilgilerini getir

<mark style="color:blue;">`GET`</mark> `{{Base Adres}}/api/paywall/marketplace/report/debt/product`

{% hint style="info" %}
Önemli: **Ürün Bazlı Borç** servisini kullanabilmeniz için 'Header' alanında '**apikeypublic**' ve '**apiclientpublic**' parametrelerini göndermeniz gerekmektedir.\
\
[<mark style="color:green;">**PaymentAPI Adresi**</mark>](https://developer.paywall.one/ortam)
{% endhint %}

<table><thead><tr><th width="188">Parametre</th><th width="79">Tip</th><th width="107">Zorunlu</th><th width="403">Açıklama</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Key.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Public Client.</td></tr><tr><td>productid</td><td>int</td><td>Evet</td><td>Ödemeye ait ürünün Paywall'daki Id bilgisi</td></tr></tbody></table>

**Servisten dönen cevap:**

<table><thead><tr><th width="189">Parametre</th><th width="100.33333333333331">Tip</th><th>Açıklama</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Hata kodu. İşlem başarılı ise '0' değerini döner.</td></tr><tr><td>Result</td><td>bool</td><td>True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner.</td></tr><tr><td>Message</td><td>string</td><td>İşlem hatalıysa, bu hataya dair belirtilen mesajdır, locale parametresine göre dil desteği sunar.</td></tr><tr><td>Body</td><td>nesne</td><td>İşlem detay bilgileri</td></tr></tbody></table>

{% tabs %}
{% tab title="JSON" %}
{% code lineNumbers="true" %}

```json
{
    "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"
        }
    ]
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
