Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Work Insurance

ลบรายการประกันการทำงาน (Work Insurance Log) ของพนักงาน

การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ

Endpoint

POST /api/v1/open-apis/employee/delete-employee-financial?path_action=work-insurance

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น work-insurance

Request Body

ParameterTypeRequiredDescription
work_insurance_log_idstringYesID ของรายการที่ต้องการลบ (Base64 encoded)

Response Format

Success Response

{ "code": 200, "message": "Delete Work Insurance Success", "payload": { "work_insurance_log_id": "20260121WI01A2B3C4D5", "deleted": true } }

Response Fields

FieldTypeDescription
work_insurance_log_idstringID ของรายการที่ลบ (plain text)
deletedbooleanสถานะการลบ (true = ลบสำเร็จ)

Error Response

{ "code": 400, "message": "Validation failed", "errors": ["Missing required parameter: 'work_insurance_log_id'"] }

Code Examples

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
  • ควรตรวจสอบข้อมูลก่อนลบเพื่อป้องกันการลบข้อมูลผิดพลาด

  • List Work Insurance - ดึงรายการประกันการทำงานทั้งหมด
  • Get Work Insurance - ดึงข้อมูลประกันการทำงานตาม ID
  • Add Work Insurance - เพิ่มรายการประกันการทำงาน
Last updated on