Get Employee Setting Data
ดึงข้อมูลการตั้งค่าทั้งหมดของพนักงาน
Endpoint
GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=all-settingQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น all-setting |
employee_code | string | Yes | รหัสพนักงาน |
ใช้ employee_code เพื่อระบุพนักงาน
พารามิเตอร์ที่ลงท้ายด้วย _id ต้องส่งเป็น Base64-encoded ของ raw internal ID
- Response จะ return raw string ID (เช่น
20260121FC89F3BB9120) - เมื่อนำ ID จาก response ไปใช้ใน request ถัดไป ต้อง encode เป็น Base64 ก่อน
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": {
"cost_center": {
"cost_center_id": "20260121CC01A2B3C4D5",
"cost_center_code": "CC001",
"cost_center_name": "ศูนย์ต้นทุนหลัก",
"effective_date": "2026-01-01"
},
"holiday": {
"holiday_group_id": "20260121HG01A2B3C4D5",
"holiday_group_name": "วันหยุดประจำปี",
"year": "2026"
},
"ot": {
"ot_type": "STANDARD",
"ot_rate": 1.5,
"ot_limit": 36
},
"quota": [
{
"leave_type_id": "20260121LT01A2B3C4D5",
"leave_type_name": "ลาป่วย",
"quota_days": 30,
"used_days": 5,
"remaining_days": 25
}
],
"role_duty": {
"role_duty_id": "20260121RD01A2B3C4D5",
"role_duty_name": "พนักงานทั่วไป"
},
"time_frame": {
"time_frame_id": "20260121TF01A2B3C4D5",
"time_frame_name": "กะปกติ",
"start_time": "08:00",
"end_time": "17:00"
},
"user": {
"username": "emp001",
"user_groups": ["EMPLOYEE", "USER"],
"is_active": true
},
"work_cycle": {
"work_cycle_id": "20260121WC01A2B3C4D5",
"work_cycle_name": "จันทร์-ศุกร์"
},
"worktime": {
"worktime_type": "FIXED",
"start_time": "08:00",
"end_time": "17:00",
"break_time": 60
},
"facial": [
{
"employee_facial_id": "20260121FC01A2B3C4D5",
"facial_image_path": "uploads/facial/emp001_1.jpg"
}
]
}
}Response Fields
| Section | Field | Description |
|---|---|---|
cost_center | - | ข้อมูลศูนย์ต้นทุน |
holiday | - | ข้อมูลวันหยุด |
ot | - | ข้อมูลค่าล่วงเวลา |
quota | - | รายการโควตาการลา |
role_duty | - | ข้อมูลหน้าที่ |
time_frame | - | ข้อมูลกรอบเวลา |
user | - | ข้อมูลบัญชีผู้ใช้ |
work_cycle | - | ข้อมูลกะการทำงาน |
worktime | - | ข้อมูลเวลาทำงาน |
facial | - | รายการข้อมูลใบหน้า |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/employee/get-employee-data-filter?path_action=all-setting&employee_code=EMP001" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Related APIs
- Setting Overview - ภาพรวม Setting APIs
- Get Employee Data - ดึงข้อมูลพนักงานทั้งหมด
- Get Employee Data Filter - ดึงข้อมูลพนักงานแบบกรอง
Last updated on