Skip to content

Top products / services by net revenue

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

Top-N line items (by code + description) ranked by pre-tax net revenue, with quantity sold and line count. Credit-note lines subtract.

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.

limit
number
default: 10 >= 1 <= 100

How many ranked rows to return. The customer concentration shares are still computed over every customer, not only these.

Media typeapplication/json
object
currency
required

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

string
topProducts
required

Up to limit rows ranked by netRevenue, largest first.

Array<object>
object
code
required

The CAByS code of the lines; null for lines without one, such as a REP's payment lines.

string
nullable
description
required

The line description as written on the documents. Rows group code and description together, so one product described two ways appears twice.

string
quantity
required

Σ quantity sold (credit notes subtracted). Numeric string.

string
netRevenue
required

Σ line subtotal, pre-tax (credit notes subtracted). Numeric string.

string
lineCount
required

Document lines in the row, credit-note lines included.

number
unconvertedCount

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

number
Examplegenerated
{
"currency": "example",
"topProducts": [
{
"code": "example",
"description": "example",
"quantity": "example",
"netRevenue": "example",
"lineCount": 1
}
],
"unconvertedCount": 1
}