KPIs, monthly trend and document-type mix for a date range
const url = 'https://api.emite.cr/v1/reports/overview?from=2026-06-01&to=2026-06-30';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/reports/overview?from=2026-06-01&to=2026-06-30' \ --header 'Authorization: Bearer <token>'Accepted documents only, credit notes (docType 03) subtracted, in a single currency (defaults to the tenant default). Time buckets are CR-local. Range defaults to the current calendar month.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
2026-06-01Inclusive start (CR-local YYYY-MM-DD).
Example
2026-06-30Inclusive end (CR-local YYYY-MM-DD).
ISO 4217 code. Defaults to the tenant default currency.
When true: no currency filter — all documents aggregate in CRC via each document's snapshotted exchange rate. Takes precedence over currency.
Responses
Section titled “Responses”object
Headline figures of the range.
object
Currency of the monetary KPIs.
Net sales (Σ TotalVentaNeta), credit notes subtracted. Numeric string.
Σ TotalImpuesto, credit notes subtracted. Numeric string.
Σ TotalComprobante, credit notes subtracted. Numeric string.
Count of accepted sales documents (excludes credit notes).
Count of accepted credit notes (docType 03).
GrandTotal / documentCount. Numeric string.
Non-CRC documents excluded from the CRC equivalent for lacking a snapshot exchange rate. Only set with convertToCrc.
Same-length prior period, for period-over-period deltas.
object
Net sales of the prior period — the same number of days right before from, not the previous calendar month — credit notes subtracted. Numeric string.
Σ TotalComprobante of the prior period, credit notes subtracted. Numeric string.
Accepted documents of the prior period, credit notes not counted.
Monthly trend across the range.
object
Bucket key (YYYY-MM-DD for day/week, YYYY-MM for month).
Net sales of the bucket (Σ TotalVentaNeta), credit notes subtracted. Numeric string.
Σ TotalComprobante of the bucket, credit notes subtracted. Numeric string.
Accepted documents of the bucket, credit notes not counted.
Document mix by type (in currency).
object
Hacienda document type code.
Accepted documents of this type in the range.
Σ TotalComprobante of this type, never negated: credit notes (03) are a row of their own. Numeric string.
Currencies present in the range (for the UI switcher).
Example
{ "trend": [ { "period": "2026-06" } ], "docTypeMix": [ { "docType": "01" } ]}