Skip to content

Top customers, revenue concentration and new-vs-returning

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

Top-N customers by net grand total, plus top-5/top-10 revenue share and a new-vs-returning split (new = first-ever accepted invoice within the range).

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
topCustomers
required

Up to limit customers ranked by grandTotal, largest first. Documents without a saved contact (tickets, receivers typed by hand) share one row with partyId: null.

Array<object>
object
partyId
required

Party id; null for inline/no-receiver documents.

string
nullable
name
required

The contact's name as saved today; Consumidor final on the row of documents without a saved contact.

string
identification
required

The contact's identification number; null on the row without a contact.

string
nullable
count
required

Accepted documents to this customer in the range, credit notes not counted.

number
grandTotal
required

Σ TotalComprobante to this customer, credit notes subtracted — the ranking key. Numeric string.

string
lastPurchase
required

ISO-style timestamp (with offset) of the customer's latest accepted document within the range — not necessarily their latest ever.

string
nullable
concentration
required

Share of the range's revenue held by the largest customers, over every customer and not only the limit returned; the row without a contact counts as one customer.

object
totalRevenue
required

Σ grandTotal over all customers in range. Numeric string.

string
top5Share
required

0..1 share of revenue from the top 5 customers.

number
top10Share
required

0..1 share of revenue from the top 10 customers.

number
newCustomers
required

Customers whose first-ever accepted invoice falls within the range.

number
returningCustomers
required

Customers active in range that had a prior accepted invoice.

number
unconvertedCount

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

number
Examplegenerated
{
"currency": "example",
"topCustomers": [
{
"partyId": "example",
"name": "example",
"identification": "example",
"count": 1,
"grandTotal": "example",
"lastPurchase": "example"
}
],
"concentration": {
"totalRevenue": "example",
"top5Share": 1,
"top10Share": 1
},
"newCustomers": 1,
"returningCustomers": 1,
"unconvertedCount": 1
}