Get Employee Work Insurance
ดึงข้อมูลประกันการทำงาน (Work Insurance Log) เฉพาะรายการหนึ่งตาม ID
Endpoint
GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=get-work-insuranceQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น get-work-insurance |
work_insurance_log_id | string | Yes | ID ของรายการ (Base64 encoded) |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": {
"work_insurance_log_id": "20260121WI01A2B3C4D5",
"employee_id": "20260121EM01A2B3C4D5",
"master_salary_month": "2026-03",
"log_source": "Manual",
"log_balance": 1500,
"log_datetime": "2026-03-01 08:00:00"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
work_insurance_log_id | string | ID ของรายการ (plain text) |
employee_id | string | ID ของพนักงาน (plain text) |
master_salary_month | string | เดือนที่หักเงิน (YYYY-MM) |
log_source | string | แหล่งที่มา (Manual, System, Import) |
log_balance | number | จำนวนเงิน |
log_datetime | datetime | วันเวลาที่บันทึก |
Error Response
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Missing required parameter: work_insurance_log_id"
}Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/employee/get-employee-data-filter?path_action=get-work-insurance&work_insurance_log_id=MjAyNjAxMjFXSTAxQTJCM0M0RDU=" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Notes
- พารามิเตอร์
work_insurance_log_idที่ส่งใน request ต้อง encode เป็น Base64 - ฟิลด์
_idใน response เป็น plain text ไม่ได้ encode Base64
Related APIs
- List Work Insurance - ดึงรายการประกันการทำงานทั้งหมด
- Add Work Insurance - เพิ่มรายการประกันการทำงาน
- Delete Work Insurance - ลบรายการประกันการทำงาน
Last updated on