Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Welfare Employee Config

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

Endpoint

GET /api/v1/open-apis/welfare/get-welfare-employee

สิทธิ์ที่ต้องการ: API Key ต้องมีสิทธิ์ ข้อมูลการยื่นเอกสาร (document:manage)

Request Parameters

Required Parameters

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

Request Example

GET /api/v1/open-apis/welfare/get-welfare-employee?welfare_employee_id=MjAyNjAzMDNXRU1QMDAwMDE%3D

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", "welfare_claim_limit_amt": "2000.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ยอดยกมาจากปีก่อน
welfare_claim_limit_amtstring | nullวงเงินต่อการเบิก 1 ฉบับ (null = ไม่จำกัด)
createdstringวันเวลาที่สร้าง
last_updstringวันเวลาแก้ไขล่าสุด

Error Response - Not Found (HTTP 404)

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

Code Examples

curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/welfare/get-welfare-employee?welfare_employee_id=MjAyNjAzMDNXRU1QMDAwMDE%3D" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"

Notes

ข้อควรทราบ:

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