Aggregated counts for the dashboard cards (env-scoped, this month)
const url = 'https://api.emite.cr/v1/dashboard/stats';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/dashboard/stats \ --header 'Authorization: Bearer <token>'Returns issued / accepted / pending counts, the accepted totals for the calendar month (one totalAmounts entry per currency, default first — never converted or summed across currencies), month-over-month trends, the rejected/error attention backlog, and the daily activity series for the chart. Scoped to (tenant, environment) — switching environments in the UI returns completely different numbers. Cheap indexed COUNT/SUMs; fine to call on every dashboard mount.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
Documents of any type issued this month (by emission date, Costa Rica calendar) with status submitted, accepted, rejected or error. A signed one — numbered, not yet delivered — counts in invoicesPending instead.
Documents issued this month that Hacienda accepted (status=accepted).
Documents waiting on Hacienda right now, whatever their emission date: signed (numbered, not yet delivered) plus submitted (delivered, awaiting the verdict). Point-in-time, not month-windowed.
Accepted-invoice totals for the month, one entry per currency present in the data. The tenant's defaultCurrency always comes first (with total: 0 when nothing was accepted in it); the rest follow sorted by currency code. Amounts are not converted or summed across currencies — render them as separate figures. Credit notes (docType '03') subtract.
object
ISO 4217 code of the invoices included in this total.
Sum of totals.totalComprobante over accepted invoices this month in currency.
CRC equivalent of the month: Σ over accepted invoices of totalComprobante × the document's own snapshotted exchange_rate (never today's rate; CRC rows count ×1), credit notes subtracted. A non-CRC document without a snapshotted rate is left out, never converted at 1:1. Unlike totalAmounts, this IS a cross-currency sum — legitimate because every amount is converted first. Render as a secondary "≈ ₡" line.
This month so far against the whole previous calendar month: issued and accepted counts, and the accepted total in the default currency.
object
% change of issued invoices vs the previous calendar month.
% change of accepted invoices vs the previous calendar month.
% change of the accepted total in the tenant's defaultCurrency vs the previous month.
Documents issued this month that still need action.
object
Documents issued this month that Hacienda rejected (status=rejected).
Documents issued this month in emit error (status=error).
Daily accepted totals per currency for the activity chart. Default currency first, then sorted by currency code; every series spans day 1 of the month through today.
object
ISO 4217 code of the series. The company's default currency always has one, even without activity.
One point per Costa Rica day from day 1 of the month through today, in order and zero-filled.
object
A Costa Rica calendar day, YYYY-MM-DD.
Σ totalComprobante of the accepted documents issued that day in the series currency, credit notes subtracted; 0 on a day with none.
Example
{ "totalAmounts": [ { "currency": "USD" } ], "activity": [ { "currency": "CRC", "points": [ { "date": "2026-08-14" } ] } ]}