Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Title Names

ดึงรายการคำนำหน้าชื่อ (Title Name) ที่ใช้ในระบบ เช่น นาย, นาง, นางสาว, Mr., Mrs., Miss เป็นต้น

Endpoint

GET /api/v1/open-apis/organization/get-list-title-name

Request 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

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

Code Examples

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 ว่าง []
  • ใช้สำหรับแสดงตัวเลือกคำนำหน้าชื่อในฟอร์มข้อมูลพนักงาน
  • Add Employee - เพิ่มพนักงานพร้อมคำนำหน้าชื่อ
  • Get Employee Info - ดึงข้อมูลพนักงาน
Last updated on