GEThttps://api.spirestock.com/api/v1/reports/attendance/monthly#
Monthly attendance grid: one row per employee with a status per day (P, A, a leave alias such as CL, or the holiday name), in/out times, days present/absent and percentage. In the current month the grid stops at today (IST). month, days and overall_percentage are top-level keys.
Access: API key read scope; staff need Monthly Attendance Report (48) — list.
Parameters
monthstring- YYYY-MM. Default: the current IST month
user_idnumber- One employee
curl "https://api.spirestock.com/api/v1/reports/attendance/monthly?month=2024-05" \
-H "X-API-Key: YOUR_API_KEY"{
"response_code": 200,
"data": [
{
"id": 51674,
"first_name": "Sample",
"middle_name": "",
"last_name": "User",
"role_name": "Sales Executive",
"emp_sap_id": "EMP-003",
"department_name": "Sales and Marketing ",
"father_name": "Sample User G",
"date_of_joining": "2024-05-22",
"days_present": 7,
"days_absent": 24,
"working_days": 31,
"percentage": 22.58,
"days": [
{
"date": "2024-05-01",
"status": "A",
"in_time": "",
"out_time": ""
},
{
"date": "2024-05-02",
"status": "A",
"in_time": "",
"out_time": ""
}
]
}
],
"month": "2024-05",
"days_in_month": 31,
"days": [
"2024-05-01"
],
"leave_aliases": [
"CL"
],
"overall_percentage": 73.37
}