Overview
The Reports API provides comprehensive business intelligence and analytics for your sales data. Access daily metrics, payment method distribution, top products, and hourly sales patterns.Get Dashboard Report
Retrieves comprehensive dashboard metrics for a specific date, including KPIs, hourly sales breakdown, top products, payment method distribution, and active cash session information.This endpoint requires admin privileges.
Query Parameters
Target date for the report in
YYYY-MM-DD format. Defaults to today’s date if not specified.Example: 2024-03-15Response
The date for which the report was generated
Key performance indicators for the day:
Total sales amount (gross) including all taxes
Total net sales amount (before taxes)
Total IVA (tax) amount collected
Number of sales transactions (invoices and receipts only)
Average ticket size (total_ventas / num_ventas)
Number of credit notes issued
Total amount of credit notes issued
Document Type Filtering
The dashboard report includes specific document types:Included Document Types
- Type 33: Facturas (Invoices)
- Type 39: Boletas (Receipts)
- Type 61: Notas de Crédito (Credit Notes) - counted separately
Excluded Document Types
Other document types like quotes, delivery notes, or internal documents are not included in the sales metrics.
Use Cases
Real-time Dashboard
Real-time Dashboard
Display live business metrics on a management dashboard. Update every few minutes to show:
- Current day’s sales performance
- Busiest hours for staffing decisions
- Most popular products for inventory planning
- Payment method preferences
End-of-Day Reporting
End-of-Day Reporting
Generate comprehensive daily reports for managers:
- Sales vs. target tracking
- Credit note analysis (returns/refunds)
- Cash session reconciliation
- Performance by hour to identify peak times
Multi-Location Analytics
Multi-Location Analytics
Compare performance across different stores or locations by calling this endpoint for each tenant/location.
Historical Analysis
Historical Analysis
Retrieve reports for past dates to analyze trends: