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

# Get all accounts for current user (admin view)

> Retrieve a comprehensive list of all ledger accounts for the authenticated user. This admin-level view includes detailed account information for all currencies. Optionally include inactive accounts.



## OpenAPI

````yaml /openapi.json get /v1/ledger/accounts
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Comprehensive payment platform API supporting fiat and crypto payments,
    currency conversion, and compliance management
  title: Zuba Payment Platform API
  version: '1.0'
servers: []
security: []
tags:
  - description: Manage M2M API keys and credentials
    name: API Keys
  - description: Internal ledger accounts and transactions
    name: Ledger
  - description: Handle incoming payments and deposits
    name: Pay-ins
  - description: Manage payouts, beneficiaries, and SEPA transfers
    name: Payouts
  - description: Manage outbound webhook endpoints and deliveries
    name: Webhooks
paths:
  /v1/ledger/accounts:
    get:
      tags:
        - Ledger
      summary: Get all accounts for current user (admin view)
      description: >-
        Retrieve a comprehensive list of all ledger accounts for the
        authenticated user. This admin-level view includes detailed account
        information for all currencies. Optionally include inactive accounts.
      operationId: LedgerController_getUserAccounts
      parameters:
        - description: Include inactive/closed accounts in results
          in: query
          name: includeInactive
          required: false
          schema:
            example: false
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AccountBalanceDto'
                type: array
          description: List of all user accounts retrieved successfully
        '401':
          description: Unauthorized - missing or invalid JWT token
        '500':
          description: Internal Server Error
      security:
        - bearer: []
components:
  schemas:
    AccountBalanceDto:
      properties:
        balance:
          description: Available balance
          example: '1500.50'
          type: string
        currency:
          description: Currency code
          example: EUR
          type: string
        isActive:
          description: Account status
          example: true
          type: boolean
        lastTransactionAt:
          description: Last transaction date
          example: '2025-10-29T12:00:00Z'
          type: string
        pendingIn:
          description: Pending incoming amount
          example: '100.00'
          type: string
        pendingOut:
          description: Pending outgoing amount
          example: '50.00'
          type: string
        totalBalance:
          description: Total balance (available + pending)
          example: '1550.50'
          type: string
      required:
        - currency
        - balance
        - pendingIn
        - pendingOut
        - totalBalance
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: Enter Auth0 JWT token
      scheme: bearer
      type: http

````