Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Timesheet
  • 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
      • 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
      • 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
        POST
      • Search Tasks
        POST
      • Create Timesheet Entry
        POST
  • Payroll
    • Get Financial Transactions
      POST
    • Update Financial Transactions
      PUT
    • Create Loan
      POST
    • Get Cost Center
      POST
  • Welfare
    • Shuttle Buses
      GET
    • Passengers
      GET
  • Goals
    • Update KPI
      POST
  • 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
  • Overtime
    • Get Overtimes Preriods
    • Get Overtimes Documents
  • Employee
    • User Info
    • Update Employee Information
  1. Timesheet

Create Timesheet Entry

Developing
POST
https://api.gofive.co.th/empeo/api/v1/timesheets/entries
บันทึกเวลาทำงานของพนักงาน
บันทึกเวลาทำงาน 1 รายการ = พนักงาน 1 คน + งาน 1 งาน + 1 วัน โดย Time คือ ระยะเวลาที่ใช้ ในรูปแบบ HH:mm
(เช่น 08:00 = ทำงาน 8 ชั่วโมง ไม่ใช่เวลา 8 นาฬิกา)
ต้องมีข้อมูลก่อนเรียก: ProjectCode ต้องมีอยู่จริง (หาได้จาก POST /api/v1/timesheets/projects/search),
TaskId ต้องมีอยู่จริงและเป็นตัวเลข (หาได้จาก POST /api/v1/timesheets/tasks/search) และ EmployeeCode
ต้องเป็นรหัสพนักงานที่มีอยู่ใน tenant
ระบบกันบันทึกซ้ำ: ถ้ามีรายการของพนักงานคนนั้นในงาน/วันเดียวกันอยู่แล้วจะได้ 409
ต้องมีสิทธิ์ Open API โมดูล TimeSheet ระดับ ReadAndWrite

Request

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

Body Params application/jsonRequired

Example
{
    "projectCode": "TESTOPENAPI",
    "taskId": "311",
    "employeeCode": "00001",
    "date": "2026-03-30",
    "time": "02:30",
    "description": "Implement API integration for customer sync"
  }

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/timesheets/entries' \
--header 'Ocp-Apim-Subscription-Key: <key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "projectCode": "TESTOPENAPI",
    "taskId": "311",
    "employeeCode": "00001",
    "date": "2026-03-30",
    "time": "02:30",
    "description": "Implement API integration for customer sync"
  }'

Responses

🟢200OK
application/json
บันทึกสำเร็จ — Data คือรายการที่บันทึกไว้ พร้อม CreatedAt ที่ระบบออกให้
Bodyapplication/json

Examples
{
  "status": {
    "code": "200",
    "description": "Timesheet entry has been created successfully"
  },
  "data": {
    "projectCode": "PJ-240001",
    "taskId": "TASK-1001",
    "employeeCode": "EMP00045",
    "date": "2026-03-30",
    "time": "02:30",
    "description": "Implement API integration for customer sync",
    "createdAt": "2026-03-30T10:15:23Z"
  }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠409
🟠429
🔴500Server Error
Modified at 2026-08-17 17:14:09
Previous
Search Tasks
Next
Get Financial Transactions
Built with