Delete Employee Work Insurance
ลบรายการประกันการทำงาน (Work Insurance Log) ของพนักงาน
การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/employee/delete-employee-financial?path_action=work-insuranceQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น work-insurance |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
work_insurance_log_id | string | Yes | ID ของรายการที่ต้องการลบ (Base64 encoded) |
Response Format
Success Response
{
"code": 200,
"message": "Delete Work Insurance Success",
"payload": {
"work_insurance_log_id": "20260121WI01A2B3C4D5",
"deleted": true
}
}Response Fields
| Field | Type | Description |
|---|---|---|
work_insurance_log_id | string | ID ของรายการที่ลบ (plain text) |
deleted | boolean | สถานะการลบ (true = ลบสำเร็จ) |
Error Response
{
"code": 400,
"message": "Validation failed",
"errors": ["Missing required parameter: 'work_insurance_log_id'"]
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-financial?path_action=work-insurance" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"work_insurance_log_id": "MjAyNjAxMjFXSTAxQTJCM0M0RDU="
}'Notes
- พารามิเตอร์
work_insurance_log_idที่ส่งใน request ต้อง encode เป็น Base64 - ฟิลด์
work_insurance_log_idใน response เป็น plain text ไม่ได้ encode Base64 - ควรตรวจสอบข้อมูลก่อนลบเพื่อป้องกันการลบข้อมูลผิดพลาด
Related APIs
- List Work Insurance - ดึงรายการประกันการทำงานทั้งหมด
- Get Work Insurance - ดึงข้อมูลประกันการทำงานตาม ID
- Add Work Insurance - เพิ่มรายการประกันการทำงาน
Last updated on