Skip to Content
🚀 Welcome to Humansoft Open API Documentation
DocumentationAPI ReferenceOrganization (องค์กร)Get Employee Types

Get Employee Types

ดึงรายการประเภทพนักงานทั้งหมด ซึ่งค่าจริงในระบบจะจำแนกตาม “วิธีการคิด/จ่ายเงินเดือน (Salary Payment Category)” ของระบบ HRM

Endpoint

GET /api/v1/open-apis/organization/get-list-employee-type

สิทธิ์ที่ต้องการ: API Key ต้องมีสิทธิ์ กลุ่มข้อมูลองค์กร (org:manage)

Request Parameters

ไม่มี parameters

Response Format

Success Response (HTTP 200)

{ "code": 200, "message": "สำเร็จ", "payload": [ { "code": "01", "name": "พนักงานรายเดือน", "name_en": "Monthly" }, { "code": "02", "name": "พนักงานรายวัน", "name_en": "Daily" }, { "code": "03", "name": "พนักงานพาร์ตไทม์", "name_en": "Parttime" }, { "code": "04", "name": "พนักงานเหมาจ่าย", "name_en": "Fixed Pay / Contractor" } ] }

Error Response (HTTP 400)

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Error message here" }

Response Fields

FieldTypeDescription
codestringรหัสประเภทพนักงาน
namestringชื่อประเภท (แสดงตามภาษาที่เลือก)
name_enstringชื่อประเภทภาษาอังกฤษ

Code Examples

curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/organization/get-list-employee-type" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"

Salary Payment Categories

CodeภาษาไทยEnglish
01พนักงานรายเดือนMonthly
02พนักงานรายวันDaily
03พนักงานพาร์ตไทม์Parttime
04พนักงานเหมาจ่ายFixed Pay / Contractor

Notes

  • ข้อมูลดึงจาก List of Values ประเภท employee_type ซึ่งจำแนกตาม วิธีการคิด/จ่ายเงินเดือน ของระบบ HRM
  • ฟิลด์ name จะแสดงตามภาษาที่เลือก (TH หรือ EN)
  • ถ้าไม่มีข้อมูล payload จะเป็น array ว่าง []
  • Get Employee Status - ดึงรายการสถานะพนักงาน
  • Add Employee - เพิ่มพนักงานพร้อมระบุประเภท
Last updated on