# 2. Update Member

## Update Member

<mark style="color:orange;">`PUT`</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.<br>

[<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 %}

<table><thead><tr><th width="217">Parameter</th><th width="79">Type</th><th width="135">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 member business panel.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The Public Client obtained from the member business panel."</td></tr></tbody></table>

&#x20;**The parameters that need to be sent to the service are as follows:**

<table><thead><tr><th width="244">Parameter</th><th width="157">Type</th><th width="131">Compulsory</th><th width="336">Description</th></tr></thead><tbody><tr><td>Id</td><td>int</td><td>Yes</td><td>The Id information of the member in Paywall.</td></tr><tr><td>IsSubMerchant</td><td>boolean</td><td>Yes</td><td>Is the added member a sub-member business?</td></tr><tr><td>MemberType</td><td>int</td><td>Yes/No</td><td>The type of member is a mandatory field if IsSubMerchant is sent as true.</td></tr><tr><td>MemberExternalId</td><td>string</td><td>Yes</td><td>The Id information of the member in your system.</td></tr><tr><td>MemberName</td><td>string</td><td>Yes</td><td>The nickname provided to the member by your side</td></tr><tr><td>MemberTitle</td><td>string</td><td>Yes</td><td><p>The real name of the member.</p><p><br>Company: Title Individual: First Name Last Name</p></td></tr><tr><td>MemberTaxOffice</td><td>string</td><td>Yes/No</td><td>The tax office of the member. Mandatory if the member is of the company type</td></tr><tr><td>MemberTaxNumber</td><td>string</td><td>Yes/No</td><td>The tax number of the member. Mandatory if the member is of the company type</td></tr><tr><td>MemberIdentityNumber</td><td>string</td><td>Yes/No</td><td>The ID number of the member. Mandatory if the member is an individual or a sole proprietorship.</td></tr><tr><td>MemberEmail</td><td>string</td><td>Yes</td><td>The email address of the member.</td></tr><tr><td>MemberPhone</td><td>string</td><td>Yes</td><td>The phone number of the member.</td></tr><tr><td>MemberAddress</td><td>string</td><td>Yes</td><td>The address of the member.</td></tr><tr><td>ContactName</td><td>string</td><td>Yes</td><td>The contact name of the member. Mandatory if the member is an individual or a sole proprietorship.</td></tr><tr><td>ContactLastname</td><td>string</td><td>Yes</td><td>The contact name of the member. Mandatory if the member is an individual or a sole proprietorship.</td></tr></tbody></table>

**Sample to be sent to the service&#x20;**<mark style="color:green;">**JSON**</mark>**&#x20;and&#x20;**<mark style="color:green;">**sample codes**</mark>**&#x20;is as follows**

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

```json5
{
    "Id": 12,
    "IsSubMerchant": true,
    "MemberType": 3,
    "MemberExternalId": "11111211aa111",
    "MemberName": "Intranet Technology",
    "MemberTitle": "Intranet Technology Yazılım A.S",
    "MemberTaxOffice": "Besiktas",
    "MemberTaxNumber": "4651176935",
    "MemberIdentityNumber": "38350370122",
    "MemberEmail": "member2@paywall.one",
    "MemberPhone": "5554443311",
    "MemberAddress": "test adresi",
    "ContactName": "MemberName",
    "ContactLastname": "Lastname"
}
```

{% endcode %}
{% endtab %}

{% tab title="C#" %}

```csharp
// Soon
```

{% endtab %}

{% tab title="GO" %}

```go
// Soon
```

{% endtab %}

{% tab title="Java" %}

```java
// Soon
```

{% endtab %}

{% tab title="PHP" %}

```php
// Soon
```

{% endtab %}

{% tab title="Python" %}

```python
// Soon
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
// Soon
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
// Soon
```

{% endtab %}

{% tab title="Curl" %}

```sh
// Soon
```

{% endtab %}
{% endtabs %}

**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 either true or false. If the transaction is successful, it returns 'true'.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is erroneous, this is the specified error message, providing language support based on the 'locale' parameter.</td></tr><tr><td>Body</td><td>object</td><td>Transaction details</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Id": 12,
        "IsSubMerchant": true,
        "MemberType": 1,
        "MemberExternalId": "111aa11135552244413",
        "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",
        "InsertDateTime": "2023-06-29T15:32:52.570869+03:00"
    }
}
```

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