Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Employee
  • Authentication
    • Authorization
      POST
  • Master
    • Get Organizations
      GET
    • Get CustomField
      GET
    • Get Holiday
      GET
    • Get MasterSetup
      GET
    • Get Overtimes
      GET
  • Recruitment
    • Get Candidate
  • Core HR
    • Attendance
      • Get Time Attendance
      • Workin
      • Get Employee WorkIn Site
      • Get Timestamps
      • Get TimeStamp Attachments
      • Get Workin Sites
      • Get IOMO Logs
      • Add Timestamps
    • Asset
      • Get Asset list
      • Update Asset
      • Get Employee Assets
    • Employee
      • Get Employee
        GET
      • Update Employee
        PUT
      • Get Employees List
        GET
      • Get Mastertypes List
        GET
      • Get Name Prefixes
        GET
      • Get Document Types
        GET
      • Update Employee
        POST
      • Add Employee Attachment
        POST
      • Update Employee Address
        POST
      • Update Employee Family
        POST
      • Update Employee Contact
        POST
      • Update Employee Education
        POST
      • Update Employee Experience
        POST
      • Update Employee CustomField
        POST
      • Delete Employee
        POST
      • Get Employee Role
        GET
      • Get Employee Movement Lists
        GET
    • Leave
      • Get Employee Documents
    • Shifts
      • Get Shift Details
      • Update Employee Shifts
      • Get Employee Shifts
      • Swap Employee Shifts
    • Timesheet
      • Search Projects
      • Search Tasks
      • Create Timesheet Entry
  • Payroll
    • Get Financial Transactions
    • Update Financial Transactions
    • Create Loan
    • Get Cost Center
  • Welfare
    • Shuttle Buses
    • Passengers
  • Goals
    • Update KPI
  • Engagement
    • Achievement
      • Get Employee Achievements
      • Create Achievement Card
      • Create Achievement Award Document
      • Get Achievement Events
    • Praise
      • Get Employee Praises
      • Get Praise Types
      • Create Praise Reward Manager
    • StampCard
      • Get Stamp Cards
      • Get Stamp Card Detail
      • Add Stamp
    • Celebration
      • Get Upcoming Celebrations
    • Mission
      • ดึงคิวงานรอตรวจ
      • ดึงรายละเอียดงาน 1 ใบ
      • ดึงตัวเลขสรุปงานตามสถานะ
      • อนุมัติงานหลายใบพร้อมกัน
      • ส่งงานกลับให้แก้หลายใบพร้อมกัน
  • Overtime
    • Get Overtimes Preriods
    • Get Overtimes Documents
  • Employee
    • User Info
    • Update Employee Information
  1. Employee

Add Employee Attachment

POST
https://api.gofive.co.th/empeo/api/v2/employee/documents
แนบเอกสารให้พนักงาน
แนบเอกสารให้พนักงาน 1 คน ครั้งละหลายไฟล์ — แต่ละไฟล์ระบุประเภทเอกสารด้วยรหัสจาก
GET /api/v1/masters/mastersetup/document-type
📋 ต้องมีข้อมูลก่อนเรียก: ประเภทเอกสารที่อ้างถึงต้องถูกตั้งไว้ในระบบแล้ว
⚠️ ข้อควรรู้
ไฟล์ส่งเป็น URL ของไฟล์ที่อัปโหลดไว้แล้ว ไม่ใช่ multipart upload — endpoint นี้รับเฉพาะ application/json
endpoint นี้เป็น เวอร์ชัน 2 (/api/v2/...) ตามที่ระบบให้บริการจริง
ไม่สำเร็จได้ 400 โดยเหตุผลอยู่ใน Data.message
📎 Attachment Limit
จำนวนเอกสารแนบ (Documents) สูงสุดต่อ 1 Request: 20 รายการ
หากส่งเกินจำนวนนี้ ระบบจะตอบกลับ 429 Too Many Requests โดยไม่บันทึกรายการใดเลย
🔐 ต้องมีสิทธิ์ Open API โมดูล Employee ระดับ ReadAndWrite

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Header Params

Body Params application/jsonRequired

Example
{
    "EmployeeRefId": "EMP001",
    "CompanyName": "Acme",
    "Documents": [
        {
            "DocumentTypeId": 30201,
            "AttachmentFilename": "id-card-copy.pdf",
            "AttachmentURL": "https://cdn.example.com/employee/id-card-copy.pdf"
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.gofive.co.th/empeo/api/v2/employee/documents' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "EmployeeRefId": "EMP001",
    "CompanyName": "Acme",
    "Documents": [
        {
            "DocumentTypeId": 30201,
            "AttachmentFilename": "id-card-copy.pdf",
            "AttachmentURL": "https://cdn.example.com/employee/id-card-copy.pdf"
        }
    ]
}'

Responses

🟢200OK
application/json
แนบเอกสารสำเร็จ — ผลอยู่ใน Data
Bodyapplication/json

Example
{
    "Status": {
        "Code": "1000",
        "Description": "Success!"
    },
    "Data": {
        "result": true,
        "message": "Saved successfully."
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:06:34
Previous
Update Employee
Next
Update Employee Address
Built with