Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Fund

ลบการเป็นสมาชิกกองทุนของพนักงาน (ออกจากกองทุน)

Endpoint

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

Request Body

ParameterTypeRequiredDescription
fund_employee_idstringYesID สมาชิกกองทุน (Base64 encoded)

Response Format

Success Response

{ "code": 200, "message": "Delete Fund Success", "payload": { "fund_employee_id": "20260215FE01A2B3C4D5", "deleted": true } }

Response Fields

FieldTypeDescription
fund_employee_idstringID สมาชิกกองทุนที่ถูกลบ
deletedbooleanสถานะการลบ (true = สำเร็จ)

Error Responses

Missing required parameter (HTTP 400)

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

Fund record not found (HTTP 400)

{ "code": 400, "message": "Fund employee record not found with ID: MjAyNjAyMTVGRTAxQTJCM0M0RDU=" }

Code Examples

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": "MjAyNjAyMTVGRTAxQTJCM0M0RDU=" }'

Notes

  • ข้อมูลไม่ถูกลบถาวร สามารถดึงข้อมูลกลับมาได้ด้วย Pull Back Fund API
  • ยอดสะสมกองทุนจะยังคงถูกเก็บไว้ในระบบ
  • การลบกองทุนจะมีผลกับการคำนวณเงินเดือนงวดถัดไป
  • หากต้องการหยุดหักชั่วคราวแทนการลบ สามารถใช้ Pause Fund API ได้

  • List Funds - ดึงรายการกองทุนทั้งหมด
  • Get Fund - ดึงข้อมูลกองทุนตาม ID
  • Add Fund - เพิ่มกองทุนให้พนักงาน
  • Update Fund - แก้ไขข้อมูลกองทุน
  • Pause Fund - เปิด/ปิดกองทุน
  • Pull Back Fund - ดึงข้อมูลกองทุนที่ลบแล้วกลับมา
Last updated on