> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wallets

> Manage multi-currency wallet balances and initiate payouts

Your Yativo wallet holds balances in multiple currencies. Fund payouts from your wallet, and receive deposits into it. The wallet API lets you check balances, create new currency wallets, and initiate quick payouts.

> [accordion] Type Definitions
>
> ```typescript theme={null}
> interface WalletBalance {
>   name: string;           // currency code, e.g. "USD"
>   slug: string;           // URL-friendly, e.g. "usd"
>   balance: string;        // current balance as string
>   currency: string;       // currency code
>   decimal_places: number;
>   meta: {
>     logo: string;         // URL to currency logo/flag
>     symbol: string;       // e.g. "$", "R$", "S/"
>     fullname: string;     // e.g. "US Dollar"
>     precision: string | number;
>   };
> }
>
> interface TotalBalance {
>   total_balance: number;  // total of all wallets converted to USD
> }
> ```

***

## Get Wallet Balance

Returns detailed balance information for every currency wallet on your account.

```
GET /wallet/balance
```

**currency** `string`

Optional: filter by a specific currency code (e.g. `USD`, `BRL`). Omit to return all.

```bash All balances theme={null}
curl -X GET 'https://api.yativo.com/api/v1/wallet/balance' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

```bash Single currency theme={null}
curl -X GET 'https://api.yativo.com/api/v1/wallet/balance?currency=USD' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

```json Success theme={null}
{
  "status": "success",
  "status_code": 200,
  "message": "Request successful",
  "data": [
    {
      "name": "USD",
      "slug": "usd",
      "balance": "35585.00",
      "currency": "USD",
      "decimal_places": 2,
      "meta": {
        "logo": "https://cdn.yativo.com/usd.svg",
        "symbol": "$",
        "fullname": "US Dollar",
        "precision": 2
      }
    },
    {
      "name": "BRL",
      "slug": "brl",
      "balance": "14200.00",
      "currency": "BRL",
      "decimal_places": 2,
      "meta": {
        "logo": "https://cdn.yativo.com/brl.svg",
        "symbol": "R$",
        "fullname": "Brazilian Real",
        "precision": "2"
      }
    }
  ]
}
```

**Supported currencies:** ARS, BRL, CLP, COP, EUR, MXN, PEN, USD

***

## Get Total Balance

Returns the sum of all wallet balances converted to USD at current exchange rates:

```
GET /wallet/balance/total
```

```bash cURL theme={null}
curl -X GET 'https://api.yativo.com/api/v1/wallet/balance/total' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

```json Success theme={null}
{
  "status": "success",
  "status_code": 200,
  "message": "Request successful",
  "data": {
    "total_balance": 37629.18
  }
}
```

***

## Create a Wallet

Create a new currency wallet for your account:

```
POST /wallet/create
```

**currency** `string` *required*

The currency code for the new wallet (e.g. `COP`, `PEN`, `ARS`).

```bash cURL theme={null}
curl -X POST 'https://api.yativo.com/api/v1/wallet/create' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{ "currency": "COP" }'
```

```json Success theme={null}
{
  "status": "success",
  "data": {
    "currency": "COP",
    "balance": "0.00"
  }
}
```

***

## Top up in sandbox

In sandbox, credit test funds to a wallet you already have:

```
POST /wallet/sandbox/topup
```

> [!WARNING]
>
> Sandbox only. Production returns `403`.

See [Top up wallet](https://docs.yativo.com/fiat-api-reference/sandbox/wallet-topup.md).

```bash cURL theme={null}
curl -X POST 'https://smtp.yativo.com/api/v1/wallet/sandbox/topup' \
  -H 'X-Api-Key: YOUR_SANDBOX_API_KEY' \
  -H 'X-Api-Secret: YOUR_SANDBOX_API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{ "currency": "USD", "amount": 100 }'
```

***

## Quick Wallet Payout

Initiate a payout directly from your wallet balance:

```
POST /wallet/payout
```

**debit\_wallet** `string` *required*

Currency to debit from your balance (e.g. `"USD"`).

**payment\_method\_id** `number` *required*

The saved beneficiary payment method ID.

**customer\_id** `string` *required*

The customer the payment method belongs to.

**quote\_id** `string`

Quote ID from `POST /exchange-rate`. Locks the rate for 5 minutes. Recommended — amount is taken from the quote.

**amount** `number`

Amount to send. Required if `quote_id` is not provided. Uses current market rate.

**amount\_type** `string` (default: send)

`send` (default): `amount` is debited from your wallet. `receive`: `amount` is what the customer receives in the payout currency. See [Pay out by receive amount](https://docs.yativo.com/yativo-fiat/exchange-rates.md#pay-out-by-receive-amount).

```bash With quote (recommended) theme={null}
curl -X POST 'https://api.yativo.com/api/v1/wallet/payout' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-payout-key' \
  -d '{
    "debit_wallet": "USD",
    "quote_id": "4a72ecf8-6c8a-4e38-9971-8aabe9f785ed",
    "payment_method_id": 21,
    "customer_id": "da44a3e6-eb5d-429f-8d17-357aa5a6cdf2"
  }'
```

```bash Without quote (market rate) theme={null}
curl -X POST 'https://api.yativo.com/api/v1/wallet/payout' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-payout-key' \
  -d '{
    "debit_wallet": "USD",
    "amount": 500,
    "payment_method_id": 21,
    "customer_id": "da44a3e6-eb5d-429f-8d17-357aa5a6cdf2"
  }'
```

***

## Display Tips

```javascript theme={null}
// Format a wallet balance for display
function formatBalance(wallet) {
  const balance = parseFloat(wallet.balance);
  const symbol = wallet.meta.symbol;
  const precision = wallet.decimal_places;
  return `${symbol}${balance.toFixed(precision)}`;
}

// Filter out zero balances
const activeWallets = wallets.filter(w => parseFloat(w.balance) > 0);
```

> [!NOTE]
>
> Wallets with zero balances are included in the response. Filter client-side if you only want non-zero holdings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.