Get billing summary for a specific period. If client_id is provided, returns detailed data for that client. Otherwise, returns aggregated summary for all clients.
Period in format YYYY-MM
"2026-01"
Client ID (optional, if not provided returns summary for all clients)
"123e4567-e89b-12d3-a456-426614174000"
Billing summary retrieved successfully
"2026-01"
38000
Total subscriptions in CLP
1500000.5
Total visits in CLP
250000
Total device sales in CLP
0
Net total in CLP
1750000.5
45
[]Source of data: facturas_generadas or calculo_tiempo_real
facturas_generadas, calculo_tiempo_real "calculo_tiempo_real"
Array of warning messages for suspicious or critical data issues
[
"SOSPECHOSO: Plan \"Premium\" (ID:123) tiene precio 50 UF - Verificar"
]Metadata about processing statistics