Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Welfare Employee Config

ดึงรายละเอียดการตั้งค่าสวัสดิการของพนักงาน 1 รายการ

Endpoint

POST /api/v1/open-apis/welfare/get_welfare_employee

Request Parameters

Required Parameters

ParameterTypeRequiredDescriptionExample
welfare_employee_idstring (base64)Yesรหัส Welfare Employee Config"MjAyNjAzMDNXRU1QMDAwMDE="

Request Body Example

{ "welfare_employee_id": "MjAyNjAzMDNXRU1QMDAwMDE=" }

Response Format

Success Response (HTTP 200)

{ "code": 200, "message": "ดึงข้อมูลสำเร็จ", "payload": { "welfare_employee_id": "20260303WEMP00001", "employee_id": "20260309462FEF65EFCA", "salary_type_id": "20260303STYP00001", "welfare_year": "2026", "welfare_quota_amt": "20000.00", "welfare_prev_amt": "5000.00", "created": "2026-03-01 08:00:00", "last_upd": "2026-03-15 10:30:00" } }

Response Fields

FieldTypeDescription
welfare_employee_idstringรหัส Config
employee_idstringรหัสพนักงาน
salary_type_idstringรหัสประเภทสวัสดิการ
welfare_yearstringปีสวัสดิการ
welfare_quota_amtstringวงเงินสวัสดิการ
welfare_prev_amtstringยอดยกมาจากปีก่อน
createdstringวันเวลาที่สร้าง
last_updstringวันเวลาแก้ไขล่าสุด

Error Response - Not Found (HTTP 404)

{ "code": 404, "message": "ไม่พบข้อมูล" }

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/welfare/get_welfare_employee" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "welfare_employee_id": "MjAyNjAzMDNXRU1QMDAwMDE=" }'

Notes

ข้อควรทราบ:

  • welfare_employee_id ใน request ต้องเข้ารหัส Base64
  • ID ทั้งหมดใน response เป็น plain text
Last updated on