Platform modules
Reports, printing and export
Discover authorized reports, apply supported filters and export complete bounded results.
Discover the available reports
Call GET /api/v1/reports or open the report center. The returned catalog contains only reports allowed by the caller's permissions. Each definition describes its columns, filters, formats and limits, so an API client should build its choices from that response.
The current catalog defines three report IDs: directory, tickets and billing. Directory accepts status and organizational unit filters. Tickets additionally accepts dates and priority. Billing accepts date filters. Unsupported combinations are rejected rather than ignored.
Preview before exporting
Send POST /api/v1/reports/{id}/preview with a ReportParameters body. For example, this is a ticket preview request body:
{
"status": "Open",
"priority": "High",
"page": 1,
"pageSize": 25
}
Use GET /api/v1/reports/{id}/units to populate a directory or ticket unit picker with authorized active units. Supply dates as date values such as 2026-12-01, and keep the start before or equal to the end. Unknown request members are disallowed by the contract.
Export and access control
Use POST /api/v1/reports/{id}/export/{format} with the filters and page 1. Supported formats are pdf, xlsx, csv and print; print returns HTML. Export reads the complete filtered result within the configured limit, rather than exporting only the current preview page.
All access needs Permissions.Reporting.View and the provider's own data permissions. Export additionally requires Permissions.Reporting.Export. Organizational scope is enforced by the data providers. Giving access to the report center alone does not grant access to every report or department.
Capacity and rendering
Reporting option |
Default in the options class |
|---|---|
MaxPreviewSize |
100 rows |
MaxExportRows |
2,000 rows |
MaxFileBytes |
8 MiB |
MaxConcurrent |
2 executions per API instance |
TimeoutSeconds |
60 seconds |
MemoryMiB |
1,152 MiB budget |
The service rejects an incomplete or oversized export and asks the caller to narrow the result. It uses the tenant name, eligible uploaded logo and request culture for rendering. Generated documents are returned to the caller; the report service does not maintain a document archive.
PDF and invoice printing share the Chromium engine. Configure its matching browser and deployment requirements using the PDF guide. Increasing row limits without reviewing memory and render capacity can create expensive requests.
Add a report and verify behavior
Implement IReportDataProvider for authorized data reading, register it, and add the report's filter and column definition in ReportCatalog. Reuse the existing renderers when the result is tabular. The catalog currently uses an explicit ID switch, so registering a provider alone is insufficient.
Compare a small preview to its CSV and XLSX exports. Check Arabic labels and direction in print and PDF, and use a restricted user to verify unit filtering. Diagnose 400 as invalid parameters, 413 as an export limit, 429 as occupied capacity and 408 as an execution timeout. Export activity is written to auditing after successful rendering.