Get Title Names
ดึงรายการคำนำหน้าชื่อ (Title Name) ที่ใช้ในระบบ เช่น นาย, นาง, นางสาว, Mr., Mrs., Miss เป็นต้น
Endpoint
GET /api/v1/open-apis/organization/get-list-title-nameRequest Parameters
ไม่มี parameters
Response Format
Success Response (HTTP 200)
{
"code": 200,
"message": "สำเร็จ",
"payload": [
{
"code": "01",
"name": "นาย",
"name_en": "Mr."
},
{
"code": "02",
"name": "นาง",
"name_en": "Mrs."
},
{
"code": "03",
"name": "นางสาว",
"name_en": "Miss"
}
]
}Error Response (HTTP 400)
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Error message here"
}Response Fields
| Field | Type | Description |
|---|---|---|
code | string | รหัสคำนำหน้าชื่อ |
name | string | คำนำหน้าชื่อ (แสดงตามภาษาที่เลือก) |
name_en | string | คำนำหน้าชื่อภาษาอังกฤษ |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/organization/get-list-title-name" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Notes
- ข้อมูลคำนำหน้าชื่อที่ตั้งค่าไว้ในระบบ
- ฟิลด์
nameจะแสดงตามภาษาที่เลือก (TH หรือ EN) - ถ้าไม่มีข้อมูล payload จะเป็น array ว่าง
[] - ใช้สำหรับแสดงตัวเลือกคำนำหน้าชื่อในฟอร์มข้อมูลพนักงาน
Related APIs
- Add Employee - เพิ่มพนักงานพร้อมคำนำหน้าชื่อ
- Get Employee Info - ดึงข้อมูลพนักงาน
Last updated on