# 4. Members

## Member List

<mark style="color:blue;">`GET`</mark> `{{MemberBaseAddress}}/api/paywall/member`

{% hint style="info" %}
**Important**: In order to use the member service, you need to send the '**apikeypublic**' and '**apiclientpublic**' **parameters** in the 'Header' field.\
\
[<mark style="color:green;">**MemberAPI**</mark> ](https://developer.paywall.one/payment-orchestration-integration-document/environment)[<mark style="color:green;">**Address**</mark>](https://developer.paywall.one/payment-orchestration-integration-document/environment)
{% endhint %}

**The Header information sent to the service is as follows:**

<table><thead><tr><th width="199">Parameter</th><th width="79">Type</th><th width="130">Compulsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>The Public Key obtained from the merchant panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client obtained from the merchant panel.</td></tr><tr><td>start</td><td>int</td><td>Yes</td><td>Determines from which record the list will start bringing in members.</td></tr><tr><td>length</td><td>int</td><td>Yes</td><td>Determines from which record the list will start bringing how many members.</td></tr></tbody></table>

**The parameters returned from the service are as follows:**

<table><thead><tr><th width="189">Parameter</th><th width="100.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Error code. Returns '0' if the operation is successful.</td></tr><tr><td>Result</td><td>bool</td><td>Returns a 'true' or 'false' value. It returns 'true' if the operation is successful.</td></tr><tr><td>Message</td><td>string</td><td>If the operation is erroneous, this message is specific to the error and provides language support based on the 'locale' parameter.</td></tr><tr><td>Body</td><td>object</td><td>Contains the list of merchant members.</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": [
        {
            "Id": 14,
            "IsSubMerchant": true,
            "MemberType": 1,
            "MemberExternalId": "111aa11135552244413",
            "MemberName": "Intranet Technology",
            "MemberTitle": "Intranet Technology Yazılım A.S",
            "MemberTaxOffice": "Besiktas",
            "MemberTaxNumber": "",
            "MemberIdentityNumber": "*1*1*1*1*1*",
            "MemberEmail": "member@paywall.one",
            "MemberPhone": "5554443322",
            "MemberAddress": "test adresi",
            "ContactName": "Member Name",
            "ContactLastname": "Lastname",
            "BankAccounts": [
                {
                    "Id": 24,
                    "CurrencyId": 2,
                    "Currency": "USD",
                    "Title": "Member Title A.S",
                    "Iban": "TR370006400000123456789876"
                },
                {
                    "Id": 25,
                    "CurrencyId": 3,
                    "Currency": "EUR",
                    "Title": "Member Title A.S",
                    "Iban": "TR370006407890987654312345"
                }
            ],
            "ValueDate": {
                "Id": 16,
                "CalculationType": 3, // Every first day of the month.
                "CalculationValue": 28, // The 28th day
                "Commission": 10.00 // 10% commission
            },
            "InsertDateTime": "2023-06-28T16:55:41.070934",
            "UpdateDateTime": "0001-01-01T00:00:00"
        }
    ]
}
```

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