{
"_links": {
"compare_ly": "/api/sales/compare?period_a_from=2026-01-01&period_a_to=2026-04-30&period_b_from=2025-01-01&period_b_to=2025-04-30",
"self": "/api/sales/summary?from=2026-01-01&to=2026-04-30&group_by=month"
},
"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
},
"currency": "CAD",
"metadata": {
"credits_scope": "none",
"extracted_at": "2026-05-13T09:12:00-04:00",
"invoice_types_included": [
"invoice"
],
"organisation_id": "constructions_jimmy_roy",
"scope": "invoicing_only",
"sdk_index_used": 6
},
"period": {
"from": "2026-01-01",
"group_by": "month",
"to": "2026-04-30"
},
"series": [
{
"active_customers_count": 22,
"bucket": "2026-01",
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"from": "2026-01-01",
"invoices_count": 32,
"is_partial": false,
"revenue_gross": 58200,
"revenue_net": 58200,
"subtotal": 50652.17,
"taxes": 7547.83,
"to": "2026-01-31"
}
],
"totals": {
"active_customers_count": 38,
"average_invoice": 1750,
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"invoices_count": 142,
"revenue_gross": 248500,
"revenue_net": 248500,
"subtotal": 213130.43,
"taxes": 35369.57
}
}