# 4. Update

## **Update Wallet**

<mark style="color:blue;">`PUT`</mark>`{{WalletUrl}}/api/v1/wallet`&#x20;

{% hint style="info" %}
**Note:** Before calling the service, the apikeypublic and apiclientpublic parameters must be included in the Header section.

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

**The parameters that must be sent to the service are as follows:**

<table><thead><tr><th width="162">Parameter</th><th width="79">Type</th><th width="107">Required</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>It is the public key used for authentication during API access.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>It is the key value used to specify the identity of the API client.</td></tr></tbody></table>

{% tabs %}
{% tab title="Service Request - JSON" %}

```json
{
  "Id": "0000-0000-0000-0000-0000",
  "Name": "cüzdanın güncellenen ismi"
}
```

{% endtab %}
{% endtabs %}

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

```json
{
    "Value": {
        "Id": "30bac1c0-ad6b-4c50-a52e-1b34f9b487a7",
        "WalletOwnerId": "b5708099-be62-4d34-af06-27132082eb78",
        "Name": "juzdan1",
        "Alias": "8203287943",
        "MerchantId": 2071,
        "RegionId": 1,
        "CurrencyCode": "TRY",
        "Balance": 1.00,
        "AvailableBalance": 1.00,
        "TotalGiftBalance": 0,
        "BlockedBalance": 0,
        "FrozenUntil": "0001-01-01T00:00:00",
        "IsFrozen": false,
        "IsDeleted": false,
        "CreatedAt": "2025-04-24T09:05:47.980805Z",
        "UpdatedAt": "2025-04-25T10:01:20.870433Z",
        "TransactionId": null
    },
    "Errors": [],
    "IsSuccess": true,
    "IsFailure": false
}
```

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

## **Service Response**

<table><thead><tr><th width="192">Parameter</th><th width="147.89192708333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>IsFailure</td><td>bool</td><td>It is the control field that determines whether the operation has resulted in failure or not.</td></tr><tr><td>IsSuccess</td><td>bool</td><td>It is the flag value that indicates whether the API call was successfully completed.</td></tr><tr><td>Errors</td><td>Array</td><td>It is the list structure containing the error details that occurred during the service operation.</td></tr><tr><td>Value</td><td>Array&#x3C;Items></td><td>It is the list of data returned after successful calls.</td></tr></tbody></table>

## **Service Response (Value)**

<table><thead><tr><th width="234.05859375">Parameter</th><th width="162.38671875">Type</th><th width="348.94140625">Description</th></tr></thead><tbody><tr><td>Id</td><td>Guid</td><td>It is the unique identifier number of the object registered in the system.</td></tr><tr><td>WalletOwnerId</td><td>Guid</td><td>It is the unique identity of the relevant wallet owner.</td></tr><tr><td>Name</td><td>string</td><td>It is the field representing the wallet owner's name or company name.</td></tr><tr><td>Alias</td><td>string</td><td>It is the alternate name or short name assigned to the wallet.</td></tr><tr><td>MerchantId</td><td>Guid</td><td>It is the merchant ID associated with the wallet owner.</td></tr><tr><td>RegionId</td><td>string</td><td>It is the code representing the region where the wallet is registered.</td></tr><tr><td>CurrencyCode</td><td>string</td><td>It is the international code of the currency used in the wallet.</td></tr><tr><td>Balance</td><td>decimal</td><td>Shows the total balance amount on the wallet</td></tr><tr><td>AvailableBalance</td><td>decimal</td><td>Indicates the currently available balance amount for transactions.</td></tr><tr><td>TotalGiftBalance</td><td>decimal</td><td>Represents the total amount of gift balance.</td></tr><tr><td>BlockedBalance</td><td>decimal</td><td>Represents the blocked balance that cannot be used.</td></tr><tr><td>FrozenUntil</td><td>DateTime</td><td>It is the valid date until the wallet's frozen period ends.</td></tr><tr><td>IsFrozen</td><td>bool</td><td>Indicates whether the wallet is in a frozen (freeze) state.</td></tr><tr><td>IsDeleted</td><td>bool</td><td>Indicates whether the wallet record has been deleted from the system.</td></tr><tr><td>CreatedAt</td><td>DateTime</td><td>It is the timestamp when the record was created in the system.</td></tr><tr><td>UpdatedAt</td><td>DateTime</td><td>It is the date and time when the record was last updated.</td></tr><tr><td>TransactionId</td><td>Guid</td><td>It is the unique identifier of the transaction record in the system.</td></tr></tbody></table>
