> ## 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.

# Generate account statement for a specific currency

> Generate a detailed account statement for a currency account between two dates. The statement includes opening balance, all transactions (debits and credits), and closing balance for the specified period. Useful for reconciliation and accounting purposes.



## OpenAPI

````yaml /openapi.json get /v1/ledger/statement/{currency}
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/statement/{currency}:
    get:
      tags:
        - Ledger
      summary: Generate account statement for a specific currency
      description: >-
        Generate a detailed account statement for a currency account between two
        dates. The statement includes opening balance, all transactions (debits
        and credits), and closing balance for the specified period. Useful for
        reconciliation and accounting purposes.
      operationId: LedgerController_getAccountStatement
      parameters:
        - description: Currency code (ISO 4217)
          in: path
          name: currency
          required: true
          schema:
            example: EUR
            type: string
        - description: 'Statement period start date (format: YYYY-MM-DD)'
          in: query
          name: startDate
          required: true
          schema:
            example: '2025-01-01'
            type: string
        - description: 'Statement period end date (format: YYYY-MM-DD)'
          in: query
          name: endDate
          required: true
          schema:
            example: '2025-01-31'
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountStatementDto'
          description: Account statement generated successfully
        '400':
          description: Bad request - invalid date format or date range
        '401':
          description: Unauthorized - missing or invalid JWT token
        '404':
          description: Account not found for specified currency
        '500':
          description: Internal Server Error
      security:
        - bearer: []
components:
  schemas:
    AccountStatementDto:
      properties:
        accountId:
          description: Account ID
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
        accountName:
          description: Account name
          example: user:client-id
          type: string
        closingBalance:
          description: Closing balance at end of period
          example: '1500.50'
          type: string
        currency:
          description: Currency
          example: EUR
          type: string
        generatedAt:
          description: Statement generation timestamp
          example: '2025-10-29T12:00:00Z'
          type: string
        openingBalance:
          description: Opening balance at start of period
          example: '1000.00'
          type: string
        periodEnd:
          description: Statement period end date
          example: '2025-01-31'
          type: string
        periodStart:
          description: Statement period start date
          example: '2025-01-01'
          type: string
        totalCredits:
          description: Total credits during period
          example: '600.50'
          type: string
        totalDebits:
          description: Total debits during period
          example: '100.00'
          type: string
        transactions:
          description: List of transactions in the period
          items:
            $ref: '#/components/schemas/StatementTransactionDto'
          type: array
      required:
        - accountId
        - accountName
        - currency
        - periodStart
        - periodEnd
        - openingBalance
        - closingBalance
        - totalCredits
        - totalDebits
        - transactions
        - generatedAt
      type: object
    StatementTransactionDto:
      properties:
        balanceAfter:
          description: Balance after transaction
          example: '1500.50'
          type: string
        credit:
          description: Credit amount (money in)
          example: '100.50'
          type: string
        date:
          description: Transaction date
          example: '2025-10-29T12:00:00Z'
          type: string
        debit:
          description: Debit amount (money out)
          example: '100.50'
          type: string
        description:
          description: Transaction description
          example: Payout to John Doe
          type: string
        reference:
          description: Transaction reference
          example: PAYOUT-001
          type: string
        transactionId:
          description: Transaction ID
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
      required:
        - date
        - balanceAfter
        - transactionId
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: Enter Auth0 JWT token
      scheme: bearer
      type: http

````