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
  • Overtime
    • Get Overtimes Preriods
    • Get Overtimes Documents
  • Employee
    • User Info
    • Update Employee Information
  1. Shifts

Get Shift Details

GET
https://api.gofive.co.th/empeo/api/v1/shifts
ดึงรายการกะการทำงาน
ดึงกะการทำงานที่ตั้งไว้ใน tenant พร้อมรายละเอียดเวลาเข้า-ออกรายวัน ใช้หา Code และ ShiftRefId
ก่อนกำหนดกะให้พนักงาน คืนเฉพาะกะที่เปิดใช้งานอยู่
ควรส่ง companyName เสมอ — ถ้าไม่ส่ง ระบบจะไม่ได้แปลว่า "ทุกบริษัท" แต่จะเลือกบริษัทใน tenant มา
หนึ่งบริษัทแบบไม่กำหนดแน่นอน แล้วคืนกะของบริษัทนั้นบวกกับกะที่ใช้ได้ทุกสาขา (IsAllSite = true)
ผลลัพธ์จึงอาจไม่ใช่บริษัทที่ต้องการ
companyName, code และ shiftName ค้นแบบ contains (shiftName ค้นทั้งชื่อไทยและอังกฤษ)
ผลลัพธ์เรียงตามชื่อกะจากมากไปน้อย ไม่ส่ง takeRow = 50 รายการแรก
ShiftDetails มีหนึ่งรายการต่อหนึ่งวันในรอบของกะ — DayOfWeek 1 = อาทิตย์ ถึง 7 = เสาร์
และ WeekOfMonth ใช้กับกะที่หมุนเวียนรายสัปดาห์ (0 = ทุกสัปดาห์)
ต้องมีสิทธิ์ 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/shifts?companyName=Acme&code=A&shiftName=%E0%B8%81%E0%B8%B0%E0%B9%80%E0%B8%8A%E0%B9%89%E0%B8%B2&takeRow=50&skipRow=0' \
--header 'Ocp-Apim-Subscription-Key: {{subscription_key}}' \
--header 'Authorization: Bearer <token>'

Responses

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

Example
{
    "StatusCode": 200,
    "Message": "OK",
    "Totals": 1,
    "Data": [
        {
            "ShiftRefId": 3301,
            "ShiftName": "กะเช้าตัวอย่าง",
            "ShiftName_EN": "Sample Morning Shift",
            "Code": "A01",
            "ColorCode": "#4CAF50",
            "Description": "กะทำงานปกติ จันทร์-ศุกร์",
            "IsAllSite": false,
            "IsNightShift": false,
            "IsDoubleShift": false,
            "MinuteFlexible": 15,
            "MinuteOfLate": 30,
            "MinuteOfAbsence": 240,
            "Allowance": 0,
            "HolidayAllowance": false,
            "ShiftDetails": [
                {
                    "DayOfWeek": 2,
                    "WeekOfMonth": 0,
                    "StartTime": "08:00:00",
                    "EndTime": "17:00:00",
                    "BreakStartTime": "12:00:00",
                    "BreakEndTime": "13:00:00",
                    "OTStartTime": "17:30:00",
                    "OTEndTime": "20:00:00"
                },
                {
                    "DayOfWeek": 3,
                    "WeekOfMonth": 0,
                    "StartTime": "08:00:00",
                    "EndTime": "17:00:00",
                    "BreakStartTime": "12:00:00",
                    "BreakEndTime": "13:00:00",
                    "OTStartTime": "17:30:00",
                    "OTEndTime": "20:00:00"
                }
            ]
        }
    ]
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
🟠429
🔴500Server Error
Modified at 2026-08-17 17:13:59
Previous
Get Employee Documents
Next
Update Employee Shifts
Built with