Get Attendance Data List (New)
# Description
Retrieve attendance data list (new version)
# Request Specification
Method: POST + application/json
Endpoint: https://${Cloud Domain}/cgi/attendance/find/v2?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Dataset |
| ea | String | Yes | Enterprise account |
| userIds | List | Yes | Employee ID list |
| pageSize | Int | Yes | Page size |
| pageNumber | Int | Yes | Page number |
| pageType | Int | Yes | Fixed value |
| startTime | Long | Yes | Start time (millisecond timestamp) |
| endTime | Long | Yes | End time (millisecond timestamp) |
# Request Example
{
"data": {
"pageNumber": 1,
"pageType": 0,
"userIds": [
1000
],
"pageSize": 20,
"startTime": 0,
"endTime": 0,
"ea": "xxx"
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Request unique ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgments as errorMessage may change;