Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Shifts
  • 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
        GET
      • Update Employee Shifts
        POST
      • Get Employee Shifts
        GET
      • Swap Employee Shifts
        POST
    • 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
      GET
    • Passengers
      GET
  • 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. Shifts

Get Employee Shifts

GET
https://api.gofive.co.th/empeo/api/v1/employees/shifts
ดึงประวัติกะของพนักงาน
ดึงรายการกะที่พนักงานคนหนึ่งเคยถูกกำหนดไว้ พร้อมวันที่ที่กะนั้นเริ่มมีผล (AsOfDate)
⚠️ ข้อควรรู้
403 ของ endpoint นี้มีได้ 2 สาเหตุ — นอกจากสิทธิ์ Open API แล้ว ผู้ใช้ที่ token ผูกอยู่ต้องมีสิทธิ์ดูข้อมูลกะของพนักงานคนนั้นในระบบหลักด้วย (เมนูข้อมูลพนักงาน) ถ้าไม่มีสิทธิ์จะได้ 403 ไม่ใช่ 204
ส่ง companyName หรือ employeeNo ที่ไม่มีอยู่จริงจะได้ 204 ไม่ใช่ 404
🔐 ต้องมีสิทธิ์ Open API โมดูล Shift ระดับ Read

Request

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

Header Params

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/employees/shifts?employeeNo=EMP001&companyName=Acme' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>'

Responses

🟢200OK
application/json
สำเร็จ — Data คือรายการกะของพนักงาน เรียงตามข้อมูลที่ระบบเก็บไว้
Bodyapplication/json

Example
{
    "StatusCode": 200,
    "Message": "OK",
    "Totals": 2,
    "Data": [
        {
            "ShiftId": 3301,
            "Code": "A01",
            "ShiftName": "กะเช้าตัวอย่าง",
            "CreatedBy": "ผู้ดูแลตัวอย่าง หนึ่ง",
            "ModifiedBy": null,
            "DateCreated": "2026-01-15T08:00:00",
            "DateModified": null,
            "AsOfDate": "2026-01-16T00:00:00",
            "Description": "กะทำงานปกติ จันทร์-ศุกร์"
        },
        {
            "ShiftId": 3302,
            "Code": "B01",
            "ShiftName": "กะบ่ายตัวอย่าง",
            "CreatedBy": "ผู้ดูแลตัวอย่าง หนึ่ง",
            "ModifiedBy": "ผู้ดูแลตัวอย่าง สอง",
            "DateCreated": "2026-05-01T09:00:00",
            "DateModified": "2026-05-02T10:30:00",
            "AsOfDate": "2026-06-01T00:00:00",
            "Description": "กะบ่าย"
        }
    ]
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:07:07
Previous
Update Employee Shifts
Next
Swap Employee Shifts
Built with