Skip to content

Sales grouped by receiver province (CR map data)

GET
/v1/reports/sales-by-province
curl --request GET \
--url 'https://api.emite.cr/v1/reports/sales-by-province?from=2026-06-01&to=2026-06-30' \
--header 'Authorization: Bearer <token>'

Net grand total and document count per CR provincia (from the receiver party location). Feeds the choropleth map. Documents without a receiver collapse to null.

from
string
Example
2026-06-01

Inclusive start (CR-local YYYY-MM-DD).

to
string
Example
2026-06-30

Inclusive end (CR-local YYYY-MM-DD).

currency
string

ISO 4217 code. Defaults to the tenant default currency.

convertToCrc
boolean

When true: no currency filter — all documents aggregate in CRC via each document's snapshotted exchange rate. Takes precedence over currency.

Media typeapplication/json
object
currency
required

Currency of the amounts: currency as requested, else the company's default, or CRC with convertToCrc.

string
rows
required

One row per province of the receiver's saved contact, largest grandTotal first.

Array<object>
object
provincia
required

CR provincia code (1-7); null for documents with no receiver location.

string
nullable
count
required

Accepted documents in the province, credit notes not counted.

number
grandTotal
required

Σ TotalComprobante in the province, credit notes subtracted. Numeric string.

string
unconvertedCount

Non-CRC documents excluded from the CRC equivalent for lacking a snapshot exchange rate. Only set with convertToCrc.

number
Examplegenerated
{
"currency": "example",
"rows": [
{
"provincia": "example",
"count": 1,
"grandTotal": "example"
}
],
"unconvertedCount": 1
}