> For the complete documentation index, see [llms.txt](https://developer.paywall.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.paywall.one/payment-orchestration-integration-document/wallet-services/2.-wallet/13.-money-transfer-wallet.md).

# 13. Money Transfer (Wallet)

## Money Transfer with Wallet 'Id'

<mark style="color:yellow;">`POST`</mark> `{{WalletUrl}}/api/v1/wallet/transfer`

{% hint style="info" %}
**Note:** To use this service, it is mandatory to include the **apikeypublic** and **apiclientpublic** parameters in the Header field.

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

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

<table><thead><tr><th width="162">Parameter</th><th width="94.3125">Type</th><th width="133.9296875">Compolsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeypublic</td><td>string</td><td>Yes</td><td>The general API key required to use the service.</td></tr><tr><td>apiclientpublic</td><td>string</td><td>Yes</td><td>The client ID required for service access.</td></tr></tbody></table>

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

```json
{
  "SourceWalletId": "eb6d76b1-eddc-4ce4-8538-93696ff15fa2",
  "DestinationWalletId": "1fef5f3f-3c7b-4aa7-b0dd-713ba391765d",
  "Amount": "10",
  "Description": "transfer",
  "ExternalReference": "{{$guid}}"
}
```

{% endtab %}
{% endtabs %}

## Service Request

| Parameter           | Type    | Description                                                                     |
| ------------------- | ------- | ------------------------------------------------------------------------------- |
| SourceWalletId      | Guid    | The identity information of the account from which the money will be withdrawn. |
| DestinationWalletId | Guid    | The identity information of the account to which the money will be transferred. |
| Amount              | decimal | The amount to be transferred.                                                   |
| Description         | string  | The description of the relevant transaction.                                    |

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

```json
{
    "IsSuccess": true,
    "IsFailure": false,
    "Value": {
        "TransferId": "58b33aa2-815d-4e03-977d-a7ce72615988",
        "SourceTransactionId": "6077149a-6eb2-4a18-844b-54afcfd1346f",
        "DestinationTransactionId": "644f2da5-7404-40bf-9284-3a3800407a9d",
        "SourceWalletId": "7883fb19-2359-4a9b-b917-f08a259898ed",
        "DestinationWalletId": "2ea244d1-6ed2-4eca-a84b-273c62f64606",
        "SourceWalletBalanceAfterTransaction": 0.80,
        "DestinationWalletBalanceAfterTransaction": 2.00
    }
}
```

{% 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>Indicates whether the transaction has failed.</td></tr><tr><td>IsSuccess</td><td>bool</td><td>Indicates whether the transaction was successful.</td></tr><tr><td>Errors</td><td>Array</td><td>Contains the error messages that occurred during the transaction.</td></tr><tr><td>Value</td><td>Array&#x3C;Items></td><td>Contains the data set returned as a result of the transaction.</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>TransferId</td><td>Guid</td><td>Transfer transaction identifier information</td></tr><tr><td>SourceTransactionId</td><td>Guid</td><td>Identifier information of the transaction generated for the source wallet account</td></tr><tr><td>DestinationTransactionId</td><td>Guid</td><td>Identifier information of the transaction generated for the recipient wallet account</td></tr><tr><td>SourceWalletId</td><td>Guid</td><td>Source wallet identifier information</td></tr><tr><td>DestinationWalletId</td><td>Guid</td><td>Recipient wallet identifier information</td></tr><tr><td>SourceWalletBalanceAfterTransaction</td><td>decimal</td><td>Post-transaction balance of the source wallet</td></tr><tr><td>DestinationWalletBalanceAfterTransaction</td><td>decimal</td><td>Post-transaction balance of the recipient wallet</td></tr></tbody></table>
