Get Employee Document
ดึงข้อมูลเอกสารของพนักงานตาม ID
พารามิเตอร์ employee_documents_id ต้องส่งเป็น Base64-encoded string
Endpoint
GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=get-documentQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น get-document |
employee_documents_id | string | Yes | ID ของเอกสาร (Base64-encoded) |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": {
"employee_documents_id": "20260121DC01E2F3A4B5",
"employee_id": "20260121EM01A2B3C4D5",
"documents_code": "person_id",
"documents_name": "สำเนาบัตรประชาชน",
"documents_path": "uploads/documents/emp001_idcard.pdf",
"documents_limit_time": "",
"documents_effective": "2026-01-01",
"documents_expired": "2030-12-31",
"created": "2026-01-10 09:00:00",
"last_upd": "2026-01-12 14:30:00"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
employee_documents_id | string | ID ของเอกสาร |
employee_id | string | ID ของพนักงาน |
documents_code | string | รหัสประเภทเอกสาร |
documents_name | string | ชื่อเอกสาร |
documents_path | string | ที่อยู่ไฟล์เอกสาร |
documents_limit_time | string | จำกัดเวลา |
documents_effective | date | วันที่มีผล |
documents_expired | date | วันหมดอายุ |
created | datetime | วันเวลาที่สร้าง |
last_upd | datetime | วันเวลาที่อัพเดทล่าสุด |
Error Response
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Missing required parameter: employee_documents_id"
}Document Types (documents_code)
| Code | Description (TH) | Description (EN) |
|---|---|---|
person_id | บัตรประจำตัวประชาชน | ID card |
passport | Passport | Passport |
home | ทะเบียนบ้าน | House Registration |
driver | ใบขับขี่ | Driver’s license |
employee_agreement | สัญญาจ้าง | Contract |
transcript | วุฒิการศึกษา | Transcript |
resume | Resume | Resume |
visa | Visa | Visa |
work_permit | ใบรับรองการทำงาน | Work Permit |
work_through | ใบผ่านงาน | Work Pass |
soldier | ใบผ่านการเกณฑ์ทหาร | Military Service Certificate |
change_name | เอกสารการเปลี่ยนชื่อ | Change Name |
surety_ship_agreemen | สัญญาค้ำประกัน | Guarantee Contract |
etc | อื่นๆ | Other |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/employee/get-employee-data-filter?path_action=get-document&employee_documents_id=MjAyNjAxMjFEQzAxRTJGM0E0QjU=" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Related APIs
- List Documents - ดึงรายการเอกสารทั้งหมด
- Add Document - เพิ่มเอกสาร
- Update Document - แก้ไขเอกสาร
- Delete Document - ลบเอกสาร
Last updated on