Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Add Employee Document

เพิ่มเอกสารของพนักงาน

Endpoint

POST /api/v1/open-apis/employee/add-employee-profile?path_action=document

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น document

Request Body

ParameterTypeRequiredDescription
employee_codestringYesรหัสพนักงาน
documents_codestringYesรหัสประเภทเอกสาร
documents_nostringYesเลขที่เอกสาร
documents_date_fromstringNoวันที่เริ่มต้น (YYYY-MM-DD)
documents_date_tostringNoวันที่สิ้นสุด (YYYY-MM-DD)

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

Response Format

Success Response

{ "code": 200, "message": "Add Document Success", "payload": { "documents_id": "20260213ABC1234567890", "employee_id": "20260121FC89F3BB9120", "documents_code": "02", "documents_no": "AB1234567", "documents_date_from": "2020-01-01", "documents_date_to": "2025-12-31" } }

Error Response

{ "code": 400, "message": "Validation failed", "errors": [ "Missing required parameter: 'employee_code'", "Missing required parameter: 'documents_code'" ] }

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/add-employee-profile?path_action=document" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_code": "EMP001", "documents_code": "person_id", "documents_no": "AB1234567", "documents_date_from": "2020-01-01", "documents_date_to": "2025-12-31" }'

Last updated on