# 5. Search for Member

## Search for Member

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

{% hint style="info" %}
**Important**: To use the member service, you need to send the '**apikeypublic**' and '**apiclientpublic**' parameters in the 'Header' section.\
\
[<mark style="color:green;">**MemberAPI 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="198">Parameter</th><th width="79">Type</th><th width="129">Compulsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td><p>The Public Key you obtained from the </p><p>merchant panel.</p></td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client you obtained from the merchant panel.</td></tr><tr><td>memberid</td><td>int</td><td>Yes/No</td><td>The member's Id information in Paywall.</td></tr><tr><td>memberexternalid</td><td>int</td><td>Yes/No</td><td><p>The member's ID information in </p><p>your system.</p></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. It returns '0' if the transaction is successful.</td></tr><tr><td>Result</td><td>bool</td><td>It returns a true or false value. If the transaction is successful, it returns 'true'.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is unsuccessful, this is the specified error message that provides language support based on the 'locale' parameter.</td></tr><tr><td>Body</td><td>object</td><td>Transaction information</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Id": 15,
        "IsSubMerchant": true,
        "MemberType": 3,
        "MemberExternalId": "111aa1113551",
        "MemberName": "Intranet Technology",
        "MemberTitle": "Intranet Technology Yazılım A.S",
        "MemberTaxOffice": "Besiktas",
        "MemberTaxNumber": "*6*1*7*9*5",
        "MemberIdentityNumber": "",
        "MemberEmail": "member@paywall.one",
        "MemberPhone": "5554443322",
        "MemberAddress": "test adresi",
        "ContactName": "Member Name",
        "ContactLastname": "Lastname",
        "BankAccounts": [
            {
                "Id": 26,
                "CurrencyId": 1,
                "Currency": "TRY",
                "Title": "Enes Selman Tütüncü",
                "Iban": "TR370006400000123456789876"
            }
        ],
        "ValueDate": {
            "Id": 17,
            "CalculationType": 1, // PlusDay, number of days after approval
            "CalculationValue": 10, // 10 days after approval
            "Commission": 10.00 // %10
        },
        "InsertDateTime": "2023-06-29T15:32:52.570869",
        "UpdateDateTime": "0001-01-01T00:00:00"
    }
}
```

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