# 9. Deposit (Alias)

## **Deposit Money with Wallet 'Alias' Information**

<mark style="color:yellow;">`POST`</mark> `{{WalletUrl}}/api/v1/wallet/deposit/by/alias`&#x20;

{% hint style="info" %}
Note: In order to use this 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 in API calls.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>It is the public key representing the client's system-defined identity.</td></tr></tbody></table>

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

```json
{
  "Amount": 1,
  "Description": "description",
  "Alias": "{{alias}}",
  "ExternalReference": "123321-123321-123321-123321"
}
```

{% endtab %}
{% endtabs %}

## **Service Request**

<table><thead><tr><th width="218.734375">Parameter</th><th width="180.171875">Type</th><th>Description</th></tr></thead><tbody><tr><td>Amount</td><td>decimal</td><td>The amount to be deposited.</td></tr><tr><td>Description</td><td>string</td><td>The description of the related transaction.</td></tr><tr><td>Alias</td><td>string</td><td>The account number assigned to the wallet (e.g., 1234567890).</td></tr><tr><td>ExternalReference</td><td>string</td><td>The transaction tracking number. You can track the transaction with this information.</td></tr></tbody></table>

{% 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": 2.00,
        "AvailableBalance": 2.00,
        "TotalGiftBalance": 0,
        "BlockedBalance": 0,
        "FrozenUntil": null,
        "IsFrozen": false,
        "IsDeleted": false,
        "CreatedAt": "2025-04-24T09:05:47.980805Z",
        "UpdatedAt": "2025-04-26T11:09:08.9994783Z",
        "TransactionId": "a2aace46-aa50-4ddb-b499-915e4b8c4e89"
    },
    "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 status flag that indicates whether the service call resulted in an error.</td></tr><tr><td>IsSuccess</td><td>bool</td><td>It is the confirmation that indicates the operation was successfully completed.</td></tr><tr><td>Errors</td><td>Array</td><td>It is the list structure that contains the error details that may occur during the operation.</td></tr><tr><td>Value</td><td>Array&#x3C;Items></td><td>It is the array that collects the data objects returned in the case of a successful operation.</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 of the entity registered in the system.</td></tr><tr><td>WalletOwnerId</td><td>Guid</td><td>It is the unique system identification number of the wallet owner.</td></tr><tr><td>Name</td><td>string</td><td>It is the name or title of the wallet user or corporate account.</td></tr><tr><td>Alias</td><td>string</td><td>It is the alias or alternative identifier name assigned to the wallet.</td></tr><tr><td>MerchantId</td><td>Guid</td><td>It is the unique identifier that represents the related merchant.</td></tr><tr><td>RegionId</td><td>string</td><td>It is the code representing the region to which the wallet owner is associated.</td></tr><tr><td>CurrencyCode</td><td>string</td><td>It is the code of the currency in which transactions in the wallet are conducted (e.g., TRY, USD).</td></tr><tr><td>Balance</td><td>decimal</td><td>It shows the total monetary value available in the wallet.</td></tr><tr><td>AvailableBalance</td><td>decimal</td><td>It is the currently available free balance.</td></tr><tr><td>TotalGiftBalance</td><td>decimal</td><td>It is the total gift balance value in the wallet.</td></tr><tr><td>BlockedBalance</td><td>decimal</td><td>It is the amount of balance subject to transaction restriction.</td></tr><tr><td>FrozenUntil</td><td>DateTime</td><td>It is the date information when the wallet is frozen and will be reactivated.</td></tr><tr><td>IsFrozen</td><td>bool</td><td>It is the information indicating whether the wallet is in a frozen status.</td></tr><tr><td>IsDeleted</td><td>bool</td><td>It indicates whether the relevant record is in a deleted status on the system.</td></tr><tr><td>CreatedAt</td><td>DateTime</td><td>It is the date and time information when the record was first created.</td></tr><tr><td>UpdatedAt</td><td>DateTime</td><td>It indicates the last update time of the record on the system.</td></tr><tr><td>TransactionId</td><td>Guid</td><td>It is the unique identifier of the performed transaction.</td></tr></tbody></table>
