Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Employee Welfare

ดึงข้อมูลสวัสดิการของพนักงานตาม ID

Endpoint

GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=get-welfare

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น get-welfare
welfare_employee_idstringYesID สวัสดิการพนักงาน (ต้อง encode Base64)

Query parameter welfare_employee_id ต้อง encode เป็น Base64 ก่อนส่ง แต่ Response fields ที่ลงท้ายด้วย _id จะเป็น Plain text ไม่ได้ encode Base64


Response Format

Success Response

{ "code": 200, "message": "สำเร็จ", "payload": { "welfare_employee_id": "20260121WE01A2B3C4D5", "employee_id": "20260121FC89F3BB9120", "salary_type_id": "20250520073EEED41E08", "welfare_year": "2026", "welfare_prev_amt": 0, "welfare_quota_amt": 10000, "created": "2026-01-10 09:00:00", "last_upd": "2026-01-12 14:30:00" } }

Response Fields

FieldTypeDescription
codenumberรหัสสถานะ (200 = สำเร็จ)
messagestringข้อความตอบกลับ
payloadobjectข้อมูลสวัสดิการ
payload.welfare_employee_idstringID สวัสดิการพนักงาน (Plain text)
payload.employee_idstringID พนักงาน (Plain text)
payload.salary_type_idstringID ประเภทสวัสดิการ (Plain text)
payload.welfare_yearstringปีสวัสดิการ
payload.welfare_prev_amtnumberยอดยกมา
payload.welfare_quota_amtnumberโควตาสวัสดิการ
payload.createddatetimeวันเวลาที่สร้าง
payload.last_upddatetimeวันเวลาที่อัพเดทล่าสุด

Error Response

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Missing required parameter: welfare_employee_id" }

Welfare Not Found

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Welfare record not found with id: MjAyNjAxMjFXRTAxQTJCM0M0RDU=" }

Code Examples

curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/employee/get-employee-data-filter?path_action=get-welfare&welfare_employee_id=MjAyNjAxMjFXRTAxQTJCM0M0RDU=" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -H "Content-Type: application/json"

  • List Welfare - ดึงรายการสวัสดิการทั้งหมด
  • Add Welfare - เพิ่มสวัสดิการ
  • Save Welfare - แก้ไขสวัสดิการ
  • Delete Welfare - ลบสวัสดิการ
  • Add Welfare Log - เพิ่มบันทึกการใช้สวัสดิการ
  • Delete Welfare Log - ลบบันทึกการใช้สวัสดิการ
Last updated on