TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JDzuu/AplicativoWEB_GestorFinanciero/llms.txt
Use this file to discover all available pages before exploring further.
/analisis endpoint aggregates the financial outcomes of all closed projects into a set of performance indicators. It separates finalized projects (those that reached full completion) from cancelled ones, computing totals, profitability rankings, and loss detection for each group independently. All monetary values come directly from each project’s recorded income entries (entradas) and expense entries (salidas) — the contracted total (total) is carried along for reference but does not drive the computed profit figures. Filters let you narrow the analysis to a specific calendar year, month, or quarter, making it easy to compare performance across periods.
GET /analisis
Returns financial performance data for all finalized and cancelled projects, optionally filtered by time period.In-progress projects are always excluded. Only projects with
estado equal to "finalizado" or "cancelado" and a non-null fecha_fin value are considered. Projects that are still running — regardless of their active sub-state (iniciando, proceso, acabando, pausa) — never appear in analysis results.Query Parameters
Filter by the 4-digit year of
fecha_fin. Use "todos" (or omit) to include all years. Example: "2024".Filter by the 2-digit month of
fecha_fin. Valid values: "01" through "12". Use "todos" (or omit) to include all months. Example: "03" for March.Filter by quarter of
fecha_fin. Valid values: "1", "2", "3", "4". Use "todos" (or omit) to include all quarters.| Value | Months covered |
|---|---|
"1" | January – March |
"2" | April – June |
"3" | July – September |
"4" | October – December |
Filters are cumulative. Supplying
anio=2024&trimestre=3 returns only projects with a fecha_fin between July and September 2024.Response Structure
Array of project summary objects for finalized projects that match the current filter. See Project Item Schema below.
Aggregated performance indicators for the finalized projects in
proyectos. null when no finalized projects match the filter. See indicadores fields.Array of project summary objects for cancelled projects that match the filter. Same schema as
proyectos.Aggregated summary for the cancelled projects in
cancelados. null when no cancelled projects match the filter. See indicadores_cancelados fields.Project Item Schema
Each object inproyectos and cancelados has the following fields:
Project ID.
Project name.
Client name.
Contracted total (the amount agreed with the client at project creation or conversion from a budget).
Realized profit:
total_entradas − total_salidas. Can be negative.Sum of all income entries recorded for this project.
Sum of all expense entries recorded for this project.
Calendar days between
fecha_inicio and fecha_fin. null if either date is missing or malformed.Raw state value —
"finalizado" or "cancelado".Human-readable state label (e.g.
"Finalizado", "Cancelado").UI colour token for the state badge (e.g.
"verde" for finalized, "rojo" for cancelled).Project start date in ISO 8601 format (e.g.
"2024-01-10").Project end/closure date in ISO 8601 format.
indicadores
Theindicadores object is null when there are no finalized projects in the filtered set. Otherwise it contains:
Sum of
total_entradas across all finalized projects in the filter.Sum of
total_salidas across all finalized projects in the filter.Sum of
ganancia across all finalized projects in the filter. Equals ingresos_totales − gastos_totales.Count of finalized projects in the filter.
The project object with the highest
ganancia value in the filter.The project object with the lowest
ganancia value in the filter (can be the project with the biggest loss).Subset of finalized projects where
ganancia < 0. Empty array if none.The project with the shortest
duracion among projects that have a non-null duration. null if no project has a duration value.indicadores_cancelados
Theindicadores_cancelados object is null when there are no cancelled projects in the filtered set. Otherwise:
Count of cancelled projects in the filter.
Sum of
total_entradas across all cancelled projects — income already collected before cancellation.Sum of
total_salidas across all cancelled projects — expenses already incurred before cancellation.total_cobrado − total_gastado. A negative value indicates a net loss across cancelled projects.Example: Filter by Year and Quarter
fecha_fin falls in October, November, or December 2024.
Example response (abbreviated):
Example: All-time summary
anio=todos&mes=todos&trimestre=todos) returns indicators for every closed project in the database.