Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Financial

Router สำหรับลบข้อมูลการเงินพนักงาน รองรับการเรียกใช้งานแบบแยกเรื่องผ่าน path_action parameter

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

Endpoint

POST /api/v1/open-apis/employee/delete-employee-financial

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesประเภทข้อมูลที่ต้องการลบ

Base Parameters

ParameterTypeRequiredDescription
employee_codestringYesรหัสพนักงาน

ใช้ employee_code เพื่อระบุพนักงาน

พารามิเตอร์ที่ลงท้ายด้วย _id ต้องส่งเป็น Base64-encoded ของ raw internal ID

  • Response จะ return raw string ID (เช่น 20260121FC89F3BB9120)
  • เมื่อนำ ID จาก response ไปใช้ใน request ถัดไป ต้อง encode เป็น Base64 ก่อน

Supported Actions

path_actionDescriptionRequired ID
constantลบค่าคงที่employee_constant_id
fundลบกองทุนfund_employee_id
welfareลบสวัสดิการwelfare_employee_id
welfare-logลบบันทึกการใช้สวัสดิการemployee_welfare_log_id
salary-auto-checkedลบเงินเดือนอัตโนมัติemployee_auto_checked_id
work-insuranceลบประกันสังคมwork_insurance_log_id
delete-taxลบข้อมูลภาษีทั้งปีemployee_code + year

Response Format

Success Response

{ "code": 200, "message": "Delete Success", "payload": { "deleted_id": "20260121CN01F2A3B4C5" } }

Error Response

{ "code": 400, "message": "ข้อมูลไม่ถูกต้อง", "errors": [ "กรุณาระบุ 'employee_constant_id'" ] }

Code Examples

# ลบค่าคงที่ curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-financial?path_action=constant" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_constant_id": "MjAyNjAxMjFDTjAxRjJBM0I0QzU=" }' # ลบกองทุน curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-financial?path_action=fund" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "fund_employee_id": "MjAyNjAxMjFGRTAxQzJEM0U0RjU=" }' # ลบสวัสดิการ curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-financial?path_action=welfare" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "welfare_employee_id": "MjAyNjAxMjFXRTAxQjJDM0Q0RTU=" }'

Last updated on