Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Get Employee Document

ดึงข้อมูลเอกสารของพนักงานตาม ID

พารามิเตอร์ employee_documents_id ต้องส่งเป็น Base64-encoded string

Endpoint

GET /api/v1/open-apis/employee/get-employee-data-filter?path_action=get-document

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น get-document
employee_documents_idstringYesID ของเอกสาร (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

FieldTypeDescription
employee_documents_idstringID ของเอกสาร
employee_idstringID ของพนักงาน
documents_codestringรหัสประเภทเอกสาร
documents_namestringชื่อเอกสาร
documents_pathstringที่อยู่ไฟล์เอกสาร
documents_limit_timestringจำกัดเวลา
documents_effectivedateวันที่มีผล
documents_expireddateวันหมดอายุ
createddatetimeวันเวลาที่สร้าง
last_upddatetimeวันเวลาที่อัพเดทล่าสุด

Error Response

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Missing required parameter: employee_documents_id" }

Document Types (documents_code)

CodeDescription (TH)Description (EN)
person_idบัตรประจำตัวประชาชนID card
passportPassportPassport
homeทะเบียนบ้านHouse Registration
driverใบขับขี่Driver’s license
employee_agreementสัญญาจ้างContract
transcriptวุฒิการศึกษาTranscript
resumeResumeResume
visaVisaVisa
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 -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"

Last updated on