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

# Download statement

> Serves a `GENERATED` statement file. Responds `302` to a short-lived URL that serves the file directly, so a plain HTTP client that follows redirects downloads it in one call; fetch that URL without your API credentials. Send `Accept: application/json` to receive the URL and its expiry as a body instead. A statement that is `PENDING` or `FAILED` has no file and responds `STATEMENT_NOT_READY`.



## OpenAPI

````yaml /api-reference/openapi.json get /statements/{id}/download
openapi: 3.1.0
info:
  title: Reap API
  version: 1.0.0
  description: Reap platform API
servers:
  - url: https://sg.sandbox.api.reap.global
    description: Singapore sandbox
  - url: https://sg.prod.api.reap.global
    description: Singapore production
  - url: https://mx.sandbox.api.reap.global
    description: Mexico sandbox
  - url: https://mx.prod.api.reap.global
    description: Mexico production
  - url: https://sandbox.api.reap.global
    description: Singapore sandbox (alias)
  - url: https://prod.api.reap.global
    description: Singapore production (alias)
security:
  - bearerAuth: []
tags:
  - name: Accounts
  - name: Activities
  - name: Card Designs
  - name: Card Shipments
  - name: Card Transactions
  - name: Cards
  - name: Companies
  - name: Crypto Deposits
  - name: Crypto Withdrawals
  - name: Disputes
  - name: Fees
  - name: Fiat Deposits
  - name: Fraud Alerts
  - name: Policies
  - name: Simulation
  - name: Statements
  - name: Users
  - name: Virtual Asset Postings
  - name: Virtual Assets
  - name: Webhooks
  - name: Agentic
paths:
  /statements/{id}/download:
    get:
      tags:
        - Statements
      summary: Download statement
      description: >-
        Serves a `GENERATED` statement file. Responds `302` to a short-lived URL
        that serves the file directly, so a plain HTTP client that follows
        redirects downloads it in one call; fetch that URL without your API
        credentials. Send `Accept: application/json` to receive the URL and its
        expiry as a body instead. A statement that is `PENDING` or `FAILED` has
        no file and responds `STATEMENT_NOT_READY`.
      operationId: download_statements
      parameters:
        - name: id
          in: path
          required: true
          schema:
            description: Statement ID
            type: string
            format: uuid
        - name: Reap-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2025-02-14'
            description: API version (YYYY-MM-DD)
            example: '2025-02-14'
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: >-
                      Short-lived URL serving the file directly. Fetch it
                      without authentication headers.
                  expiresAt:
                    type: string
                    examples:
                      - '2025-04-02T03:25:12Z'
                    description: ISO 8601 timestamp after which the URL stops working
                required:
                  - url
                  - expiresAt
        '302':
          description: Response for status 302
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: >-
                      Short-lived URL serving the file directly. Fetch it
                      without authentication headers.
                  expiresAt:
                    type: string
                    examples:
                      - '2025-04-02T03:25:12Z'
                    description: ISO 8601 timestamp after which the URL stops working
                required:
                  - url
                  - expiresAt
        '404':
          description: Statement not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        const: STATEMENT_NOT_FOUND
                      message:
                        type: string
                      detail:
                        anyOf:
                          - type: object
                            additionalProperties: {}
                          - type: 'null'
                    required:
                      - code
                      - message
                      - detail
                required:
                  - error
                title: StatementNotFoundError
        '409':
          description: Statement has no file to download in its current status
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        const: STATEMENT_NOT_READY
                      message:
                        type: string
                      detail:
                        anyOf:
                          - type: object
                            additionalProperties: {}
                          - type: 'null'
                    required:
                      - code
                      - message
                      - detail
                required:
                  - error
                title: StatementNotReadyError
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key as Bearer token

````