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

# Saldo

> Devuelve el saldo disponible y el pendiente en BRL y USD, en centavos.

#### Alcance

```bash theme={null}
read withdrawals_read
```

## Qué hace

Devuelve el saldo disponible y el pendiente en BRL y USD, en centavos.

## Casos de uso

* Mostrar el saldo en tu panel
* Decidir cuándo solicitar un retiro

## Respuesta

**data** `object[]`

**campos**

**currency** `string`

Moneda: `BRL` o `USD`.

**available\_cents** `integer`

Disponible para retiro, en centavos.

**pending\_cents** `integer`

Aún liberándose, en centavos.

## Errores

| Estado | Descripción |
| - | - |
| `401` | Clave inválida o revocada. |
| `403` | Faltan alcances (`insufficient_scope`). |
| `429` | Límite de solicitudes (`rate_limited`). |

```bash cURL theme={null}
curl --request GET \
  --url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/balance \
  -u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
```

```json 200 theme={null}
{
  "data": [
    {
      "currency": "BRL",
      "available_cents": 125000,
      "pending_cents": 3000
    }
  ]
}
```

```json 401 theme={null}
{ "error": "unauthorized", "message": "Chave de API inválida." }
```

```json 403 theme={null}
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, withdrawals_read." }
```


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