# Balance

A read-only snapshot of your wallets: withdrawable earnings, earnings still in the clearing period, and Store Credit. Optionally include your statement history. Needs `balance:read`.

`GET /api/balance`

| Parameter | Type | Description |
|---|---|---|
| `statements` | boolean | 1 to include recent statements |
| `wallet` | string | balance \| store_credit — filter statements by wallet |
| `per_page` | integer | default 25, max 50 |
```bash
curl "https://sellmycode.net/api/balance?statements=1&wallet=balance" \
  -H "Authorization: Bearer YOUR_API_KEY"
```
```json
{
  "status": "success",
  "currency": "USD",
  "wallets": {
    "balance": 1250.75,
    "pending_balance": 89.4,
    "store_credit": 12.5
  },
  "pagination": { "page": 1, "per_page": 25, "total": 57, "last_page": 3 },
  "statements": [
    {
      "id": 4021,
      "title": "[Sale] #981 (My Theme)",
      "wallet": "balance",
      "type": "credit",
      "amount": 29.0,
      "total": 23.2,
      "date": "2026-07-01T09:30:05+00:00"
    }
  ]
}
```

---
Source: https://sellmycode.net/api-docs/balance
