All report endpoints require a valid JWT token. They aggregate data from bothDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Medinaallan/ContabilidadISV/llms.txt
Use this file to discover all available pages before exploring further.
consolidaciones_generales and consolidaciones_hoteles tables, returning
only active records (activo = 1). Results can be filtered by fiscal year
and, where supported, by a specific client.
The
/summaries endpoint returns combined results from both consolidation
tables. Each row in the response includes a tipo field ("general" or
"hotel") so you can distinguish the source table.GET /api/reports/metrics
Returns a high-level count of consolidation records across both tables, optionally scoped to a specific year and/or client. Query parametersFour-digit fiscal year to filter by (e.g.
2024). Pass "todos" or omit
to include all years.Numeric client ID to restrict counts to a single client. Pass
"todos" or
omit for all clients.Count of active records in
consolidaciones_generales matching the filters.Count of active records in
consolidaciones_hoteles matching the filters.Sum of
consolidacionesGenerales + consolidacionesHoteles.GET /api/reports/ranking
Returns an ordered list of all active clients with their consolidation counts, sorted bytotalConsolidaciones descending (ties resolved alphabetically by
company name). Clients with zero consolidations are excluded.
Query parameters
Four-digit fiscal year to filter by. Pass
"todos" or omit for all years.Numeric client ID (
clientes.id).Company name of the client.
Number of general consolidations for this client in the selected year.
Number of hotel consolidations for this client in the selected year.
Combined total, used for ranking order.
GET /api/reports/summaries
Returns aggregated per-client Debe/Haber account sums for a given period. Results fromconsolidaciones_generales and consolidaciones_hoteles are
both included in the same array — use the tipo field to distinguish them.
Query parameters
Four-digit fiscal year (e.g.
2024).Numeric client ID to restrict results to one client. Omit or pass
"todos"
for all clients.Accounting period within the year. Controls the date-range filter applied
to
When omitted, results are filtered by year only (no date-range overlap
check).
fecha_inicio/fecha_fin. Accepted values:| Value | Coverage |
|---|---|
anual | Full year (Jan 1 – Dec 31) |
bimestral-1 | Jan–Feb |
bimestral-2 | Mar–Apr |
bimestral-3 | May–Jun |
bimestral-4 | Jul–Aug |
bimestral-5 | Sep–Oct |
bimestral-6 | Nov–Dec |
trimestral-1 | Jan–Mar |
trimestral-2 | Apr–Jun |
trimestral-3 | Jul–Sep |
trimestral-4 | Oct–Dec |
semestral-1 | Jan–Jun |
semestral-2 | Jul–Dec |
Numeric client ID.
Company name.
Honduran RTN (tax registration number) of the client.
Username of the last user who worked on these consolidations.
Source table:
"general" (from consolidaciones_generales) or
"hotel" (from consolidaciones_hoteles).Aggregated SUM for each of the 55 accounting accounts, in both Debe and
Haber columns. Common accounts include
caja_bancos, ventas_gravadas_15,
isv_15_ventas, ventas_gravadas_18, isv_18_ventas, ventas_exentas,
ventas_exoneradas, ingresos_honorarios, compras_gravadas_15,
isv_15_compras, compras_gravadas_18, isv_18_compras,
compras_exentas, compras_exoneradas, sueldos_salarios,
treceavo_mes, catorceavo_mes, prestaciones_laborales,
energia_electrica, suministro_agua, ihss, alquileres,
combustibles_lubricantes, seguros, impuestos_municipales,
impuestos_estatales, honorarios_profesionales,
honorarios_contables, honorarios_legales, gastos_varios, and more.
Hotel records additionally include ist_4_debe / ist_4_haber (4 % IST
tourism tax).Aggregated sum of all Debe columns for the period.
Aggregated sum of all Haber columns for the period.
total_debe − total_haber (stored value, not recomputed).Related pages
- Features → Reports — UI walkthrough of the reports module
- Features → Consolidations — understanding general vs hotel consolidation records
- Clientes API — retrieving client IDs for use as
clienteIdfilters - Consolidaciones API — creating and editing the source records
- Features → Export — exporting report data to Excel