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

# Download a customer statement

> Download a customer statement. This operation is scoped to the customer portal and returns only customer-accessible data.



## OpenAPI

````yaml /openapi/tenant-customer-v1.openapi.yaml get /statements/{statementId}/download
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/{statementId}/download:
    get:
      tags:
        - Customer Statements
      summary: Download a customer statement
      description: >-
        Download a customer statement. This operation is scoped to the customer
        portal and returns only customer-accessible data.
      operationId: downloadCustomerStatement
      parameters:
        - $ref: '#/components/parameters/StatementId'
      responses:
        '200':
          description: Statement file download.
          content:
            application/pdf:
              schema:
                type: string
                format: binary
            application/octet-stream:
              schema:
                type: string
                format: binary
components:
  parameters:
    StatementId:
      name: statementId
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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