{
"_links": {
"sales_summary": "/api/sales/summary?from=2026-01-01&to=2026-04-30&group_by=month",
"self": "/api/sales/top-customers?from=2026-01-01&to=2026-04-30&limit=10&sort_by=revenue"
},
"cache": {
"age_seconds": 247,
"cached_at": "2026-05-13T09:12:00-04:00",
"expires_at": "2026-05-14T09:12:00-04:00",
"force_refreshed": false,
"key_hash": "sha1:3e9b1c7a2d4f6e8a0b2c4d6e8f0a1b3c5d7e9f1a",
"status": "hit",
"ttl_policy": "historical_24h",
"ttl_remaining_seconds": 86153
},
"filter": {
"limit": 10,
"sort_by": "revenue"
},
"items": [
{
"_links": {
"customer_overview": "/api/customers/by-id/105/overview",
"customer_statement": "/api/customers/by-id/105/statement?from=2026-01-01&to=2026-04-30"
},
"avg_invoice": 7813.33,
"customer": {
"code": "CONS-EX",
"id": 105,
"name": "Construction Exemple inc."
},
"first_invoice_date": "2026-01-14",
"invoices_count": 24,
"last_invoice_date": "2026-04-22",
"rank": 1,
"revenue": 187520,
"share_pct": 8.67
},
{
"_links": {
"customer_overview": "/api/customers/by-id/211/overview",
"customer_statement": "/api/customers/by-id/211/statement?from=2026-01-01&to=2026-04-30"
},
"avg_invoice": 10712.25,
"customer": {
"code": "ATEL-FIC",
"id": 211,
"name": "Atelier Fictif enr."
},
"first_invoice_date": "2026-02-03",
"invoices_count": 9,
"last_invoice_date": "2026-04-28",
"rank": 2,
"revenue": 96410.25,
"share_pct": 4.46
}
],
"metadata": {
"extracted_at": "2026-05-13T09:12:00-04:00",
"organisation_id": "entreprise_exemple",
"scope": "invoicing_only_type_1",
"scope_note": "Ventes du module Facturation, même périmètre que la synthèse des ventes",
"sdk_indexes_used": {
"invoicing": 6
},
"truncated": true
},
"period": {
"from": "2026-01-01",
"to": "2026-04-30"
},
"summary": {
"currency": "CAD",
"customers_count": 78,
"invoices_count": 1406,
"revenue_total": 2162345.5
}
}