# 1. List

<mark style="color:green;">`POST`</mark> `{{Base Address}}/api/connection/list`

It will be sufficient to send a request to the address provided above. You can use the 'Base Address' for both the test environment and the live environment as you wish.

{% hint style="info" %}
Important: To use the **Connection List** service, you must include the '**apikeyprivate**' and '**apiclientprivate**' parameters in the 'Header' field.

\
[<mark style="color:green;">**PhysicalAPI Address**</mark>](https://developer.paywall.one/payment-orchestration-integration-document/environment)
{% endhint %}

**The header information that needs to be sent to the service is as follows:**

<table><thead><tr><th width="243">Parameter</th><th width="106.33333333333331">Type</th><th width="135">Compulsory</th><th>Description</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Yes</td><td>The Private Key that you obtained from the merchant panel.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Yes</td><td>The Private Client that you obtained from the merchant panel.</td></tr></tbody></table>

**The body information that needs to be sent to the service is as follows:**

{% tabs %}
{% tab title="JSON" %}

```json
{
  "pageIndex": 0,
  "pageSize": 10
}
```

{% endtab %}
{% endtabs %}

**Response returned from the service:**

<table><thead><tr><th width="182">Parameter</th><th width="107.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>Result</td><td>object</td><td>It returns the details of the service.</td></tr><tr><td>ErrorCode</td><td>int</td><td>Error code. If the transaction is successful, it returns a value of '0'.</td></tr><tr><td>Succeeded</td><td>bool</td><td>It returns a true or false value. If the transaction is successful, it returns a value of 'true'.</td></tr><tr><td>Failed</td><td>bool</td><td>It returns a true or false value. If the transaction is <mark style="color:red;">unsuccessful</mark>, it returns a value of 'true'.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is erroneous, this is the error message provided, and it offers language support based on the locale parameter.</td></tr><tr><td>ClientMessage</td><td>string</td><td>It returns the fixed values of Paywall error codes. You can map them.</td></tr></tbody></table>

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

```json5
{
    "Result": {
        "Items": [
            {
                "Id": "1b63d83f-d8ba-4476-9886-4b2f1d103e74",
                "Name": "Varsayılan 2",
                "DisplayName": "Paywall Uygulamam", // Cihazda görünür
                "EndOfDayId": 1,
                "IsReporting": true,
                "IsAsyncPayment": true,
                "IsSocketPayment": false,
                "BrandId": 10,
                "ProviderId": 30,
                "RegionId": 1,
                "IsProd": false,
                "IsConnected": true
            },
            {
                "Id": "70b2190b-e47b-455f-b05e-8c132a05534c",
                "Name": "Varsayılan 1",
                "DisplayName": "Paywall Uygulamam", // Cihazda görünür
                "EndOfDayId": 10,
                "IsReporting": true,
                "IsAsyncPayment": true,
                "IsSocketPayment": false,
                "BrandId": 10,
                "ProviderId": 10,
                "RegionId": 1,
                "IsProd": false,
                "IsConnected": true
            }
        ],
        "Pagination": {
            "CurrentPage": 0,
            "PageCount": 1,
            "PageSize": 10,
            "TotalCount": 2
        }
    },
    "Failed": false,
    "Message": null,
    "ClientMessage": null,
    "Succeeded": true
}
```

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