Delete Employee Financial
Router สำหรับลบข้อมูลการเงินพนักงาน รองรับการเรียกใช้งานแบบแยกเรื่องผ่าน path_action parameter
การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/employee/delete-employee-financialQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ประเภทข้อมูลที่ต้องการลบ |
Base Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_code | string | Yes | รหัสพนักงาน |
ใช้ employee_code เพื่อระบุพนักงาน
พารามิเตอร์ที่ลงท้ายด้วย _id ต้องส่งเป็น Base64-encoded ของ raw internal ID
- Response จะ return raw string ID (เช่น
20260121FC89F3BB9120) - เมื่อนำ ID จาก response ไปใช้ใน request ถัดไป ต้อง encode เป็น Base64 ก่อน
Supported Actions
| path_action | Description | Required 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
# ลบค่าคงที่
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="
}'Related APIs
- Add Employee Financial - เพิ่มข้อมูลการเงิน
- Update Employee Financial - แก้ไขข้อมูลการเงิน
- Get Employee Info - ดึงข้อมูลพนักงาน
Last updated on