Reports
Reporting aggregates your emission data into analytics. All reports are read-only and scoped to the tenant + environment.
GET /v1/reports/overview # headline KPIsGET /v1/reports/sales # sales over timeGET /v1/reports/customers # by customerGET /v1/reports/products # by productGET /v1/reports/proformas # quote pipelineGET /v1/reports/recurring # recurring performanceGET /v1/reports/tax-summary # IVA / tax breakdownGET /v1/reports/compliance # acceptance / rejection healthGET /v1/reports/sales-by-province # geographicGET /v1/reports/emission-heatmap # activity by day/hourGET /v1/reports/:report/export # CSV / XLSXConventions
Section titled “Conventions”- Reports count each document on its issue date (
fechaEmision, the one its XML declares) in Costa Rica time, so a document issued at 11pm CR lands in the right local day — and an offline sale replayed days later, or a document signed and sent hours after it was numbered, lands on the day it was issued, not the day it reached Hacienda. - Date-range filters (
from/to) and the usual pagination apply where relevant. exportstreams the same data as CSV or XLSX; exports are audited.
Multi-currency: the convertToCrc mode
Section titled “Multi-currency: the convertToCrc mode”Every money-carrying report accepts ?convertToCrc=true (“All · ≈ CRC” in the
web UI’s currency selector). With it, the currency filter is dropped and each
document aggregates as its total times its own snapshotted exchange rate
(the TipoCambio the document was emitted with — never today’s rate; credit
notes subtract as usual). The response reports currency: "CRC".
Non-CRC documents without a snapshot rate (rare: imported XMLs without
TipoCambio, or pre-feature rows) are excluded from the sums — never
converted at 1:1 — and counted in unconvertedCount so the number stays
honest. The recurring report’s MRR converts each schedule using the exchange
rate of its latest materialized invoice (a real persisted rate, not an
estimate). Exports inherit the mode and label money columns (CRC).
Gating
Section titled “Gating”Individual reports may be gated by the tenant’s plan tier — a higher tier unlocks the richer analytics. Check entitlements for what’s included. Access also requires the reporting scope.