# Transactional Account Endpoint

{% hint style="info" %}
To get a brief summary of the flow of this endpoint, [you can check it here](https://apidocs.onekeypayments.com/api-documentation/deposits-api/endpoints/transactional-account-endpoint/understanding-the-solution)
{% endhint %}

{% hint style="warning" %}
Before utilizing any of our APIs, you should contact your responsible account manager, with your company's name and CNPJ so we can make the necessary configurations for you to proceed.
{% endhint %}

## Move balance between accounts

<mark style="color:green;">`POST`</mark> `https://api-stg.onekeypayments.com/v1/wallet/transaction`\
\
Allows you to move a specific amount between your proprietary accounts, and transactional account

**Headers**\
\
You can check how the [headers and signature are calculated here.](https://apidocs.onekeypayments.com/api-documentation/deposits-api/technical-and-security-aspects)<br>

<table><thead><tr><th width="227">Name</th><th width="115">Type</th><th>Description</th></tr></thead><tbody><tr><td>Content-Type</td><td>string</td><td><code>application/json</code></td></tr><tr><td>X-Date</td><td>string</td><td>ISO8601 Datetime with Timezone: <code>yyyy-MM-dd'T'HH:mm:ssZ</code></td></tr><tr><td>X-Login</td><td>string</td><td>Merchant X-Login API Key</td></tr><tr><td>Authorization</td><td>string</td><td>Authorization control hash</td></tr><tr><td>X-Idempotency-Key</td><td>string</td><td>Unique idempotency key</td></tr></tbody></table>

**Example Request:**

```json
{
  "source": "PROPRIETARY",
  "destination": "TRANSACTIONAL",
  "currency": "BRL",
  "amount": 100.00
}
```

**Example response:**

```json
{
  "currency": "BRL",
  "proprietary_balance": 100.00,
  "transactional_balance": 100.00
}
```

In this example, we've moved 100.1 BRL from our OWNER account to our TRANSACTIONAL account.

## Get Balance

<mark style="color:blue;">`GET`</mark> `https://api-stg.onekeypayments.com/v1/wallet/balance`\
\
Allows you to check your total balance between accounts.\
\
**Example of successful response:**

```json
{
    "balances": [
        {
            "amount": 200.00,
            "currency": "BRL",
            "type": "PROPRIETARY"
        },
        {
            "amount": 222.00,
            "currency": "BRL",
            "type": "TRANSACTIONAL"
        }
    ]
}
```
