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

# Dashboard financiero con KPIs de facturación y cobros

> Returns full financial dashboard with:
    - KPIs: totalInvoiced, totalCollected, accountsReceivable, overdue, totalExpenses, overdueExpenses, paidThisMonth, netResult
    - Aging buckets: current, 1-30, 31-60, 61-90, 90+ days
    - Billing trend: 12 monthly data points with invoiced, collected, expenses, netBurn
    - Payment methods: grouped by method with labels, amounts, percentages
    - Top 10 debtors: sorted by total owed descending



## OpenAPI

````yaml /generated/specs/finance.json get /api/v1/analytics/financial-dashboard
openapi: 3.0.0
info:
  title: Raul API - Finanzas
  description: >-
    Facturas, boletas, ejecuciones de billing, cuentas por pagar y medios de
    pago.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/analytics/financial-dashboard:
    get:
      tags:
        - Analytics - Dashboard
      summary: Dashboard financiero con KPIs de facturación y cobros
      description: |-
        Returns full financial dashboard with:
            - KPIs: totalInvoiced, totalCollected, accountsReceivable, overdue, totalExpenses, overdueExpenses, paidThisMonth, netResult
            - Aging buckets: current, 1-30, 31-60, 61-90, 90+ days
            - Billing trend: 12 monthly data points with invoiced, collected, expenses, netBurn
            - Payment methods: grouped by method with labels, amounts, percentages
            - Top 10 debtors: sorted by total owed descending
      operationId: FinancialStatementsController_getFinancialDashboard
      parameters:
        - name: year
          required: false
          in: query
          description: Year to query the financial dashboard for
          schema:
            minimum: 2020
            maximum: 2050
            example: 2026
            type: number
      responses:
        '200':
          description: ''
        '400':
          description: Invalid year parameter
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

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