{
"_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": 0,
"cached_at": "2026-05-13T09:12:00-04:00",
"expires_at": "2026-05-13T13:12:00-04:00",
"force_refreshed": false,
"key_hash": "sha1:abc...",
"status": "miss",
"ttl_policy": "current_period_4h",
"ttl_remaining_seconds": 14400
},
"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": 20313.33,
"customer": {
"code": "10005",
"id": 105,
"name": "Atelier Lac Saint-Jean"
},
"first_invoice_date": "2026-01-14",
"invoices_count": 24,
"last_invoice_date": "2026-04-22",
"rank": 1,
"revenue": 487520,
"share_pct": 5.97
}
],
"metadata": {
"extracted_at": "2026-05-13T09:12:00-04:00",
"organisation_id": "constructions_jimmy_roy",
"scope": "invoicing_only_type_1",
"scope_note": "Crédits TRANS_AR (type 2) exclus",
"sdk_indexes_used": {
"invoicing": 6
},
"truncated": false
},
"period": {
"from": "2026-01-01",
"to": "2026-04-30"
},
"summary": {
"currency": "CAD",
"customers_count": 78,
"invoices_count": 1406,
"revenue_total": 8162345.5
}
}