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

# Get ledger accounts

> Get a paginated list of ledger accounts for the organization.



## OpenAPI

````yaml get /v1/ledger-account
openapi: 3.0.0
info:
  title: ibana public api
  description: Public API for ibana
  version: 1.0.0
  contact:
    name: ibana
    url: https://ibana.io
    email: dev@ibana.io
servers:
  - url: http://localhost:3001
security: []
tags: []
paths:
  /v1/ledger-account:
    get:
      tags:
        - Ledger Account
      summary: Get ledger accounts
      description: Get a paginated list of ledger accounts for the organization.
      operationId: LedgerAccountController_getAll_v1
      parameters:
        - name: order
          required: false
          in: query
          description: Choose between ascending and descending order.
          schema:
            default: ASC
            type: string
            enum:
              - ASC
              - DESC
        - name: page
          required: false
          in: query
          description: Specify the number of the page you want to retrieve.
          schema:
            minimum: 1
            default: 1
            type: number
        - name: take
          required: false
          in: query
          description: Specify the number of items you want to retrieve per page.
          schema:
            minimum: 1
            maximum: 100
            default: 10
            type: number
        - name: searchTerm
          required: false
          in: query
          description: The search term to look for in the ledger account list.
          schema:
            type: string
        - name: orderField
          required: false
          in: query
          description: Specify the field you want to order by.
          schema:
            type: string
        - name: orderDir
          required: false
          in: query
          description: Choose between ascending and descending order.
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PageDto'
                  - properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/LedgerAccountResponseDto'
      security:
        - bearer: []
components:
  schemas:
    PageDto:
      type: object
      properties:
        data:
          description: Paginated items.
          type: array
          items:
            type: object
        meta:
          description: Additional information about the page.
          allOf:
            - $ref: '#/components/schemas/PageMetaDto'
      required:
        - data
        - meta
    LedgerAccountResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        accountNumber:
          type: string
          description: Account number of the ledger account
        name:
          type: string
          description: Name of the ledger account
      required:
        - accountNumber
        - name
    PageMetaDto:
      type: object
      properties:
        page:
          type: number
          description: Specify the number of the page you want to retrieve.
        take:
          type: number
          description: Specify the number of items you want to retrieve per page.
        itemCount:
          type: number
          description: Total number of items.
        pageCount:
          type: number
          description: Total number of pages.
        hasPreviousPage:
          type: boolean
          description: Whether there is a previous page.
        hasNextPage:
          type: boolean
          description: Whether there is a next page.
      required:
        - page
        - take
        - itemCount
        - pageCount
        - hasPreviousPage
        - hasNextPage
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````