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

# Generate Account Statement PDF

> Generate a PDF account statement covering a chosen date range.

Pass ``date_from`` and ``date_to`` as ISO 8601 timestamps; the range
may span at most twelve months. The response is the generated PDF.



## OpenAPI

````yaml /openapi.json get /api/private/account-statement/pdf/
openapi: 3.0.3
info:
  title: Digital Surge API
  version: '2.0'
  description: >-
    Digital Surge is an Australian cryptocurrency exchange. This API provides
    programmatic access to your account: live AUD pricing for hundreds of
    assets, instant swaps, recurring buys, price triggers, portfolio balances,
    transaction history, and crypto withdrawals.


    **Authentication** — create an API key in the Digital Surge app under
    *Account Settings → API Keys* and send it with every request:
    `Authorization: Bearer <your-api-key>`. Read-only and read & write keys are
    available.


    **Guides and interactive documentation** — https://digitalsurge.com.au/docs


    **AI agents** — connect via the Digital Surge MCP server:
    https://mcp.digitalsurge.com.au/mcp
servers:
  - url: https://app.digitalsurge.com.au
    description: Production
security: []
tags:
  - name: Public
    description: Unauthenticated endpoints — market data, asset info, pricing
  - name: Private
    description: Authenticated endpoints — trading, portfolio, account management
paths:
  /api/private/account-statement/pdf/:
    get:
      tags:
        - Private
      summary: Generate Account Statement PDF
      description: |-
        Generate a PDF account statement covering a chosen date range.

        Pass ``date_from`` and ``date_to`` as ISO 8601 timestamps; the range
        may span at most twelve months. The response is the generated PDF.
      operationId: private_account_statement_pdf_list
      parameters:
        - in: query
          name: date_from
          schema:
            type: string
          description: ISO 8601 period start
          required: true
        - in: query
          name: date_to
          schema:
            type: string
          description: ISO 8601 period end
          required: true
      responses:
        '200':
          description: PDF binary (application/pdf)
        '400':
          description: Validation error
        '503':
          description: PDF generation service unavailable
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal API key, created in the Digital Surge app under Account
        Settings → API Keys. Send it with every request as `Authorization:
        Bearer <your-api-key>`.

````