{
"_links": {
"period_a_detail": "/api/sales/summary?from=2026-01-01&to=2026-05-13&group_by=month",
"period_b_detail": "/api/sales/summary?from=2025-01-01&to=2025-05-13&group_by=month",
"self": "/api/sales/compare?period=ytd&vs=ly&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:...",
"status": "miss",
"ttl_policy": "current_period_4h",
"ttl_remaining_seconds": 14400
},
"currency": "CAD",
"deltas": {
"active_customers_count": {
"absolute": 4,
"percent": 10.53
},
"invoices_count": {
"absolute": 12,
"percent": 5.5
},
"revenue_gross": {
"absolute": 46300,
"percent": 19.78
},
"revenue_net": {
"absolute": 46300,
"percent": 19.78
},
"subtotal": {
"absolute": 40435,
"percent": 19.86
},
"taxes": {
"absolute": 5865,
"percent": 19.21
}
},
"group_by": "month",
"metadata": {
"alignment": "by_index",
"buckets_count": 5,
"credits_scope": "none",
"extracted_at": "2026-05-13T09:12:00-04:00",
"group_by": "month",
"invoice_types_included": [
"invoice"
],
"organisation_id": "constructions_jimmy_roy",
"preset_used": "ytd",
"scope": "invoicing_only",
"sdk_index_used": 6,
"vs_used": "ly"
},
"period_a": {
"from": "2026-01-01",
"label": "YTD 2026",
"to": "2026-05-13",
"totals": {
"active_customers_count": 42,
"average_invoice": 1219.13,
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"invoices_count": 230,
"revenue_gross": 280400,
"revenue_net": 280400,
"subtotal": 244000,
"taxes": 36400
}
},
"period_b": {
"from": "2025-01-01",
"label": "YTD 2025 (LY)",
"to": "2025-05-13",
"totals": {
"active_customers_count": 38,
"average_invoice": 1073.85,
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"invoices_count": 218,
"revenue_gross": 234100,
"revenue_net": 234100,
"subtotal": 203565,
"taxes": 30535
}
},
"series": [
{
"bucket_index": 1,
"bucket_label": "M1",
"deltas": {
"active_customers_count": {
"absolute": 3,
"percent": 15.79
},
"invoices_count": {
"absolute": 4,
"percent": 14.29
},
"revenue_gross": {
"absolute": 8700,
"percent": 17.58
},
"revenue_net": {
"absolute": 8700,
"percent": 17.58
},
"subtotal": {
"absolute": 7608.69,
"percent": 17.68
},
"taxes": {
"absolute": 1091.31,
"percent": 16.9
}
},
"period_a": {
"from": "2026-01-01",
"is_partial": false,
"to": "2026-01-31",
"totals": {
"active_customers_count": 22,
"average_invoice": 1818.75,
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"invoices_count": 32,
"revenue_gross": 58200,
"revenue_net": 58200,
"subtotal": 50652.17,
"taxes": 7547.83
}
},
"period_b": {
"from": "2025-01-01",
"is_partial": false,
"to": "2025-01-31",
"totals": {
"active_customers_count": 19,
"average_invoice": 1767.86,
"credits_amount": 0,
"credits_count": 0,
"discounts": 0,
"invoices_count": 28,
"revenue_gross": 49500,
"revenue_net": 49500,
"subtotal": 43043.48,
"taxes": 6456.52
}
}
}
]
}