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

# List customer statements

> List customer statements. This operation is scoped to the customer portal and returns only customer-accessible data.



## OpenAPI

````yaml /openapi/tenant-customer-v1.openapi.yaml get /statements
openapi: 3.1.0
info:
  title: Anbyan Customer Portal API
  version: 1.0.0
  description: >
    Customer portal API for password and passkey authentication, accounts,
    cards, statements, transactions, and other customer-owned resources.
servers:
  - url: https://{tenantDomain}/api/v1/customer
    description: Customer portal API on a tenant domain
    variables:
      tenantDomain:
        default: tenant.example.com
security:
  - bearerAuth: []
tags:
  - name: Customer Settings
  - name: Customer Auth
  - name: Customer Accounts
  - name: Customer Cards
  - name: Customer Statements
  - name: Customer Transactions
paths:
  /statements:
    get:
      tags:
        - Customer Statements
      summary: List customer statements
      description: >-
        List customer statements. This operation is scoped to the customer
        portal and returns only customer-accessible data.
      operationId: listCustomerStatements
      responses:
        '200':
          description: Customer statements.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerStatementPaginator'
components:
  schemas:
    CustomerStatementPaginator:
      allOf:
        - $ref: '#/components/schemas/PaginationMetadata'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/CustomerStatement'
    PaginationMetadata:
      type: object
      required:
        - current_page
        - data
        - from
        - path
        - perPage
        - nextPage_url
        - prevPage_url
      properties:
        current_page:
          type: integer
        data:
          type: array
          items: {}
        from:
          type:
            - integer
            - 'null'
        lastPage:
          type: integer
        nextPage_url:
          type:
            - string
            - 'null'
        path:
          type: string
        perPage:
          type: integer
        prevPage_url:
          type:
            - string
            - 'null'
        to:
          type:
            - integer
            - 'null'
        total:
          type: integer
    CustomerStatement:
      type: object
      properties:
        id:
          type: string
        accountId:
          type:
            - string
            - 'null'
        category:
          type: string
        purpose:
          type: string
        status:
          type: string
        originalFilename:
          type:
            - string
            - 'null'
        mimeType:
          type:
            - string
            - 'null'
        fileSizeBytes:
          type:
            - integer
            - 'null'
        isEncrypted:
          type: boolean
        periodStart:
          type:
            - string
            - 'null'
          format: date
        periodEnd:
          type:
            - string
            - 'null'
          format: date
        generatedAt:
          type:
            - string
            - 'null'
          format: date-time
        statementGenerationId:
          type:
            - string
            - 'null'
        uploadedAt:
          type:
            - string
            - 'null'
          format: date-time
        account:
          $ref: '#/components/schemas/CustomerStatementAccount'
    CustomerStatementAccount:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        currency:
          type: string
        status:
          type: string
        accountNumberLast4:
          type: string
        accountNumberFormatted:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.