Skip to content

Aggregated counts for the dashboard cards (env-scoped, this month)

GET
/v1/dashboard/stats
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.

Media typeapplication/json
object
invoicesIssued
required

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.

number
invoicesAccepted
required

Documents issued this month that Hacienda accepted (status=accepted).

number
invoicesPending
required

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.

number
totalAmounts
required

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.

Array<object>
object
currency
required

ISO 4217 code of the invoices included in this total.

string
total
required

Sum of totals.totalComprobante over accepted invoices this month in currency.

number
totalCrcEquivalent
required

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.

number
trends
required

This month so far against the whole previous calendar month: issued and accepted counts, and the accepted total in the default currency.

object
issued
required

% change of issued invoices vs the previous calendar month.

number
nullable
accepted
required

% change of accepted invoices vs the previous calendar month.

number
nullable
amount
required

% change of the accepted total in the tenant's defaultCurrency vs the previous month.

number
nullable
attention
required

Documents issued this month that still need action.

object
rejected
required

Documents issued this month that Hacienda rejected (status=rejected).

number
error
required

Documents issued this month in emit error (status=error).

number
activity
required

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.

Array<object>
object
currency
required

ISO 4217 code of the series. The company's default currency always has one, even without activity.

string
points
required

One point per Costa Rica day from day 1 of the month through today, in order and zero-filled.

Array<object>
object
date
required

A Costa Rica calendar day, YYYY-MM-DD.

string
total
required

Σ totalComprobante of the accepted documents issued that day in the series currency, credit notes subtracted; 0 on a day with none.

number
Example
{
"totalAmounts": [
{
"currency": "USD"
}
],
"activity": [
{
"currency": "CRC",
"points": [
{
"date": "2026-08-14"
}
]
}
]
}