# Download a report file

Returns a download URL for a generated report file (transactions or account statement). If no matching file is found, response fields are returned empty.

Endpoint: POST /v1/reports/clients/{client_id}/report/download
Version: 1.0.0
Security: bearerAuth

## Path parameters:

  - `client_id` (string, required)
    Unique identifier of the client (UUID).
    Example: "c2d1d1e3-3340-4170-980e-e9269bbbc551"

## Request fields (application/json):

  - `client_id` (string, required)
    Identificador único del cliente.
    Example: "c2d1d1e3-3340-4170-980e-e9269bbbc551"

  - `clabe_number` (string)
    Número CLABE de la cuenta asociada. Requerido cuando report_type es DAILY_ACCOUNT_STATEMENT o MONTHLY_ACCOUNT_STATEMENT. Debe pertenecer al cliente.
    Example: "123456789012345678"

  - `report_type` (string, required)
    Tipo de reporte a descargar. Para MONTHLY y MONTHLY_ACCOUNT_STATEMENT, operation_date se normaliza al último día del mes.
    Enum: "MONTHLY", "DAILY", "DAILY_ACCOUNT_STATEMENT", "MONTHLY_ACCOUNT_STATEMENT"

  - `operation_date` (string, required)
    Fecha de operación en formato YYYY-MM-DD. Para tipos MONTHLY y MONTHLY_ACCOUNT_STATEMENT se normaliza al último día del mes (ejemplo: 2025-08-25 → 2025-08-31).
    Example: "2025-08-25"

## Response 200 fields (application/json):

  - `file_name` (string)
    Nombre del archivo generado. Vacío si no se encontró ningún archivo.
    Example: "daily_account_statement_123456789012345678_20260224.csv"

  - `download_url` (string)
    URL de descarga del archivo. Vacía si no se encontró ningún archivo.
    Example: "https://..."


## Response 400 fields
