{
"_links": {
"periods": "/api/payroll/periods",
"self": "/api/payroll/periods/stats?type=years"
},
"cache": {
"age_seconds": 1800,
"cached_at": "2026-10-07T09:00:00-04:00",
"expires_at": "2026-10-07T13:00:00-04:00",
"force_refreshed": false,
"key_hash": "sha1:2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c",
"status": "hit",
"ttl_policy": "current_scope_4h",
"ttl_remaining_seconds": 12600
},
"filters": {
"include_archived": true,
"include_temporary": false,
"year_from": 2025,
"year_to": 2026
},
"metadata": {
"extracted_at": "2026-10-07T09:00:00-04:00",
"organisation_id": "construction_demo",
"sdk_indexes_used": {
"pay": "Idx 1 full scan + agrégat par dimension"
},
"supported_types": [
"years"
],
"version": "v1"
},
"stats": [
{
"_links": {
"periods": "/api/payroll/periods?year=2025&brief=true",
"periods_detailed": "/api/payroll/periods?year=2025&brief=false",
"summary": "/api/payroll/summary?year=2025"
},
"employees_count": 80,
"pays_count": 2010,
"period_first": "2025-01-09",
"period_last": "2025-12-31",
"periods_count": 52,
"year": 2025
},
{
"_links": {
"periods": "/api/payroll/periods?year=2026&brief=true",
"periods_detailed": "/api/payroll/periods?year=2026&brief=false",
"summary": "/api/payroll/summary?year=2026"
},
"employees_count": 68,
"pays_count": 1150,
"period_first": "2026-01-08",
"period_last": "2026-07-30",
"periods_count": 30,
"year": 2026
}
],
"summary": {
"total_employees": 96,
"total_pays": 3160,
"total_periods": 82,
"years_count": 2
},
"type": "years"
}