Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Employee Work Insurance

ดึงข้อมูลประกันการทำงาน (Work Insurance Log) เฉพาะรายการหนึ่งตาม ID

Endpoint

GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=get-work-insurance

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น get-work-insurance
work_insurance_log_idstringYesID ของรายการ (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

FieldTypeDescription
work_insurance_log_idstringID ของรายการ (plain text)
employee_idstringID ของพนักงาน (plain text)
master_salary_monthstringเดือนที่หักเงิน (YYYY-MM)
log_sourcestringแหล่งที่มา (Manual, System, Import)
log_balancenumberจำนวนเงิน
log_datetimedatetimeวันเวลาที่บันทึก

Error Response

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Missing required parameter: work_insurance_log_id" }

Code Examples

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

  • List Work Insurance - ดึงรายการประกันการทำงานทั้งหมด
  • Add Work Insurance - เพิ่มรายการประกันการทำงาน
  • Delete Work Insurance - ลบรายการประกันการทำงาน
Last updated on