Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Attendance
  • Authentication
    • Authorization
      POST
  • Master
    • Get Organizations
      GET
    • Get CustomField
      GET
    • Get Holiday
      GET
    • Get MasterSetup
      GET
    • Get Overtimes
      GET
  • Recruitment
    • Get Candidate
      GET
  • Core HR
    • Attendance
      • Get Time Attendance
        GET
      • Workin
        POST
      • Get Employee WorkIn Site
        GET
      • Get Timestamps
        GET
      • Get TimeStamp Attachments
        GET
      • Get Workin Sites
        GET
      • Get IOMO Logs
        GET
      • Add Timestamps
        POST
      • Get Pulse Survey
        GET
    • Asset
      • Get Asset list
      • Update Asset
      • Get Employee Assets
    • Employee
      • Get Employee
      • Update Employee
      • Get Employees List
      • Get Mastertypes List
      • Get Name Prefixes
      • Get Document Types
      • Update Employee
      • Add Employee Attachment
      • Update Employee Address
      • Update Employee Family
      • Update Employee Contact
      • Update Employee Education
      • Update Employee Experience
      • Update Employee CustomField
      • Delete Employee
      • Get Employee Role
      • Get Employee Movement Lists
    • 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
      POST
    • Update Financial Transactions
      PUT
    • Create Loan
      POST
    • Get Cost Center
      POST
  • 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. Attendance

Workin

POST
https://api.gofive.co.th/empeo/api/v1/workin
บันทึกเวลาเข้า-ออกงาน (work in)
บันทึกการตอกบัตรของพนักงาน 1 ครั้ง พร้อมพิกัด/จุดลงเวลา/ไฟล์แนบ
ระบบจะตรวจว่าอยู่ในรัศมีของจุดลงเวลาหรือไม่ และเป็นการเข้าหรือออกงานตามลำดับการตอกของวันนั้น
📘 WorkinType ต้องตรงกับชนิดของจุดลงเวลาที่ใช้ (ดูจุดลงเวลาที่มีได้จาก GET /api/v1/workin-sites)
1 = GPS
2 = iBeacon
3 = เครื่องสแกน (IOMO)
4 = empeo Station
5 = ทำงานที่บ้าน
6 = Wi-Fi
📥 header เสริมที่ระบบอ่านเอง — x-DeviceId (รหัสอุปกรณ์) และ User-Agent ถ้าส่งมาจะถูกบันทึกไว้กับรายการ โดยทับค่าที่ส่งใน body
📋 ต้องมีข้อมูลก่อนเรียก: จุดลงเวลาที่อ้างถึงต้องถูกตั้งค่าไว้แล้วในระบบ empeo
⚠️ ไม่สำเร็จได้ 400 เช่น อยู่นอกรัศมีที่กำหนด, ไม่พบพนักงาน หรือจุดลงเวลาไม่ถูกต้อง — เหตุผลอยู่ใน Data.message (มี message_EN คู่กันด้วย)
📎 Attachment Limit
จำนวนไฟล์แนบ (Attachments) สูงสุดต่อ 1 Request: 20 ไฟล์
หากส่งเกินจำนวนนี้ ระบบจะตอบกลับ 429 Too Many Requests โดยไม่บันทึกการลงเวลา
🔐 ต้องมีสิทธิ์ Open API โมดูล Time ระดับ ReadAndWrite

Request

Header Params

Body Params application/jsonRequired

Example
{
    "EmployeeRefId": "EMP001",
    "WorkinType": 1,
    "Latitude": 13.736717,
    "Longitude": 100.523186,
    "LocationName": "อาคารตัวอย่าง ชั้น 10",
    "Note": "เข้างานปกติ",
    "IsWorkFromHome": false
}

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/v1/workin' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'x-DeviceId: DEVICE-EXAMPLE-0001' \
--header 'Content-Type: application/json' \
--data '{
    "EmployeeRefId": "EMP001",
    "WorkinType": 1,
    "Latitude": 13.736717,
    "Longitude": 100.523186,
    "LocationName": "อาคารตัวอย่าง ชั้น 10",
    "Note": "เข้างานปกติ",
    "IsWorkFromHome": false
}'

Responses

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

Example
{
    "Status": {
        "Code": "1000",
        "Description": "Success!"
    },
    "Data": {
        "result": true,
        "message": "บันทึกเวลาเรียบร้อย",
        "message_EN": "Saved successfully."
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:07:13
Previous
Get Time Attendance
Next
Get Employee WorkIn Site
Built with