# 1. Liste

<mark style="color:blue;">`GET`</mark> `{{Base Address}}/api/provider/list`

Yukarıda verilmiş olan adrese istek atmanız yeterli olacaktır. Test ortamı ve Gerçek ortam için 'Base Address' istediğiniz gibi kullanabilirsiniz.

{% hint style="info" %}
Önemli: **Sağlayıcı Liste** servisini kullanabilmeniz için 'Header' alanında '**apikeyprivate**' ve '**apiclientprivate**' parametrelerini göndermeniz gerekmektedir.\
\
[<mark style="color:green;">**PhysicalAPI Adresi**</mark>](https://developer.paywall.one/ortam)
{% endhint %}

#### Servise gönderilmesi gereken header bilgileri şu şekildedir:

<table><thead><tr><th width="243">Parametre</th><th width="106.33333333333331">Tip</th><th width="97">Zorunlu</th><th>Açıklama</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Private Key.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Evet</td><td>Üye işyeri panelinden temin etmiş olduğunuz Private Client.</td></tr></tbody></table>

**Servisten dönen cevap:**

<table><thead><tr><th width="182">Parametre</th><th width="107.33333333333331">Tip</th><th>Açıklama</th></tr></thead><tbody><tr><td>Result</td><td>object</td><td>Servisin detayındaki bilgileri döner</td></tr><tr><td>ErrorCode</td><td>int</td><td>Hata kodu. İşlem başarılı ise '0' değerini döner.</td></tr><tr><td>Succeeded</td><td>bool</td><td>True ya da false değeri döner. İşlem <mark style="color:green;">başarılı</mark> iste 'true' değerini döner</td></tr><tr><td>Failed</td><td>bool</td><td>True ya da false değeri döner. İşlem <mark style="color:red;">başarısız</mark> 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>ClientMessage</td><td>string</td><td>Paywall hata kodlarının sabit değerlerini döner. Map'leme yapabilirsiniz</td></tr></tbody></table>

{% tabs %}
{% tab title="Json" %}
{% code overflow="wrap" lineNumbers="true" %}

```json5
{
    "Providers": [
        {
            "Brand": 10,
            "Provider": 10,
            "Region": 1,
            "IsActive": true,
            "Name": "Pavo - Papara",
            "IsReporting": true,
            "IsAsyncPayment": true,
            "IsSocketPayment": true,
            "ServiceParameters": [
                {
                    "Name": "Reporting_ApiKey",
                    "Type": "text",
                    "GroupType": 10,
                    "Desciption": "Api Key",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "Reporting_ApiToken",
                    "Type": "password",
                    "GroupType": 10,
                    "Desciption": "Api Token",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "AsyncPayment_ApiKey",
                    "Type": "text",
                    "GroupType": 20,
                    "Desciption": "Api Key",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "AsyncPayment_ApiToken",
                    "Type": "password",
                    "GroupType": 20,
                    "Desciption": "Api Token",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                }
            ]
        },
        {
            "Brand": 10,
            "Provider": 20,
            "Region": 1,
            "IsActive": true,
            "Name": "Pavo - Vepara",
            "IsReporting": true,
            "IsAsyncPayment": true,
            "IsSocketPayment": true,
            "ServiceParameters": [
                {
                    "Name": "Reporting_ApiKey",
                    "Type": "text",
                    "GroupType": 10,
                    "Desciption": "Api Key",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "Reporting_ApiToken",
                    "Type": "password",
                    "GroupType": 10,
                    "Desciption": "Api Token",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "AsyncPayment_ApiKey",
                    "Type": "text",
                    "GroupType": 20,
                    "Desciption": "Api Key",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                },
                {
                    "Name": "AsyncPayment_ApiToken",
                    "Type": "password",
                    "GroupType": 20,
                    "Desciption": "Api Token",
                    "Length": "100",
                    "IsRequired": true,
                    "Value": null
                }
            ]
        }
    ],
    "Brands": [
        {
            "Id": 10,
            "Brand": 10,
            "Name": "Pavo",
            "IsActive": true
        }
    ],
    "Regions": [
        {
            "Id": 1,
            "Region": 1,
            "Name": "Türkiye",
            "IsActive": true
        },
        {
            "Id": 2,
            "Region": 2,
            "Name": "Amerika",
            "IsActive": false
        },
        {
            "Id": 3,
            "Region": 3,
            "Name": "Global",
            "IsActive": false
        }
    ]
}
```

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