Skip to main content
Retrieves a paginated list of balances. Supports basic pagination and advanced filtering through query parameters.

Query Parameters

Pagination

limit
integer
default:"10"
Maximum number of balances to return per request.Range: 1-1000Example: ?limit=50
offset
integer
default:"0"
Number of balances to skip before starting to return results.Example: ?offset=20

Advanced Filtering

You can filter balances using query parameters in the format field_operator=value. Supported Operators:
  • eq: Equals
  • neq: Not equals
  • gt: Greater than
  • gte: Greater than or equal
  • lt: Less than
  • lte: Less than or equal
  • in: In list (comma-separated values)
  • like: Pattern matching
Filterable Fields:
  • currency
  • ledger_id
  • identity_id
  • indicator
  • created_at
currency_eq
string
Filter by exact currency match.Example: ?currency_eq=USD
ledger_id_in
string
Filter by multiple ledger IDs (comma-separated).Example: ?ledger_id_in=ldg_123,ldg_456
identity_id_eq
string
Filter by specific identity ID.Example: ?identity_id_eq=usr_789
created_at_gte
string
Filter balances created on or after this date (ISO 8601 format).Example: ?created_at_gte=2024-01-01
created_at_lte
string
Filter balances created on or before this date (ISO 8601 format).Example: ?created_at_lte=2024-12-31

Response

Returns an array of balance objects.
[]
array
Array of balance objects matching the query.

Examples

curl "https://api.blnk.io/balances?limit=20&offset=0" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response Example
[
  {
    "balance_id": "bal_123abc",
    "ledger_id": "ldg_456def",
    "identity_id": "usr_789ghi",
    "currency": "USD",
    "balance": "50000",
    "credit_balance": "100000",
    "debit_balance": "50000",
    "inflight_balance": "0",
    "currency_multiplier": 100,
    "version": 15,
    "track_fund_lineage": false,
    "allocation_strategy": "FIFO",
    "created_at": "2024-01-15T10:30:00Z",
    "meta_data": {}
  },
  {
    "balance_id": "bal_456def",
    "ledger_id": "ldg_456def",
    "identity_id": "usr_321zyx",
    "currency": "USD",
    "balance": "25000",
    "credit_balance": "75000",
    "debit_balance": "50000",
    "inflight_balance": "5000",
    "currency_multiplier": 100,
    "version": 8,
    "track_fund_lineage": true,
    "allocation_strategy": "LIFO",
    "created_at": "2024-01-16T14:20:00Z",
    "meta_data": {
      "account_type": "savings"
    }
  }
]

Pagination Strategy

For large datasets, use limit and offset for pagination:
# Page 1 (first 50 items)
curl "https://api.blnk.io/balances?limit=50&offset=0"

# Page 2 (next 50 items)
curl "https://api.blnk.io/balances?limit=50&offset=50"

# Page 3 (next 50 items)
curl "https://api.blnk.io/balances?limit=50&offset=100"

Advanced Filtering

For complex filtering needs with sorting and count capabilities, use the Filter Balances endpoint which accepts filters in a JSON request body and provides more advanced options.

Build docs developers (and LLMs) love