List Employee Driving Skills
ดึงรายการทักษะการขับขี่ทั้งหมดของพนักงาน
Endpoint
GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=list-driving-skillQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น list-driving-skill |
employee_code | string | Yes | รหัสพนักงาน |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": [
{
"employee_driving_skill_id": "20260121DS01F2A3B4C5",
"employee_id": "20260121EM01A2B3C4D5",
"vehicle_name": "รถยนต์",
"skill_level": "Y",
"certificate_no": "12345678",
"certificate_effective_dt": "2020-01-01",
"certificate_expire_dt": "2028-12-31",
"created": "2026-01-10 09:00:00",
"last_upd": "2026-01-12 14:30:00"
},
{
"employee_driving_skill_id": "20260121DS02F3A4B5C6",
"employee_id": "20260121EM01A2B3C4D5",
"vehicle_name": "รถจักรยานยนต์",
"skill_level": "Y",
"certificate_no": "87654321",
"certificate_expire_dt": "2027-06-15",
"created": "2026-01-11 10:00:00",
"last_upd": "2026-01-11 10:00:00"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
employee_driving_skill_id | string | ID ของทักษะการขับขี่ |
employee_id | string | ID ของพนักงาน |
vehicle_name | string | ประเภทยานพาหนะ (เช่น รถยนต์, รถจักรยานยนต์) |
skill_level | string | ได้/ไม่ได้ (Y/N) |
certificate_no | string | เลขที่ใบอนุญาตขับขี่ |
certificate_effective_dt | string | วันเริ่มมีผลใบอนุญาต (YYYY-MM-DD) |
certificate_expire_dt | string | วันหมดอายุใบอนุญาต (YYYY-MM-DD) |
created | datetime | วันเวลาที่สร้าง |
last_upd | datetime | วันเวลาที่อัปเดตล่าสุด |
Error Response
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Employee not found with code: EMP999"
}Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/employee/get-employee-data-filter?path_action=list-driving-skill&employee_code=EMP001" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Notes
Endpoint นี้ใช้ employee_code (รหัสพนักงาน) ไม่ใช่ employee_id ที่ต้อง encode Base64
Related APIs
- Get Driving Skill - ดึงข้อมูลทักษะการขับขี่ตาม ID
- Add Driving Skill - เพิ่มทักษะการขับขี่
- Update Driving Skill - แก้ไขทักษะการขับขี่
- Delete Driving Skill - ลบทักษะการขับขี่
Last updated on