Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Master
  • 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
      • 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
      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
    • Mission
      • ดึงคิวงานรอตรวจ
      • ดึงรายละเอียดงาน 1 ใบ
      • ดึงตัวเลขสรุปงานตามสถานะ
      • อนุมัติงานหลายใบพร้อมกัน
      • ส่งงานกลับให้แก้หลายใบพร้อมกัน
  • Overtime
    • Get Overtimes Preriods
    • Get Overtimes Documents
  • Employee
    • User Info
    • Update Employee Information
  1. Master

Get Holiday

GET
https://api.gofive.co.th/empeo/api/v1/masters/calendars
ดึงวันหยุดตามปฏิทิน
ดึงวันหยุดของปฏิทินหนึ่งในปีหนึ่ง ใช้เมื่อระบบภายนอกต้องคำนวณวันทำงาน/วันหยุดให้ตรงกับ empeo
⚠️ โครงสร้างผลลัพธ์ต่างจากที่คาด
Data เป็น array ที่มี หนึ่งรายการต่อหนึ่งวันหยุด โดยแต่ละรายการซ้ำ CalendarName / Year เดิม
DayOff เป็น array ที่มีสมาชิกเพียงตัวเดียว — ผู้เรียกที่ต้องการรายการวันหยุดทั้งปีต้องรวม DayOff ของทุกรายการเข้าด้วยกันเอง
🎛️ ตัวกรอง
calendarName เทียบชื่อแบบ ตรงตัวทั้งชื่อ (ไม่ใช่ contains)
year เป็น ค.ศ.
คืนเฉพาะวันหยุดที่เปิดใช้งานอยู่
🔐 ต้องมีสิทธิ์ Open API โมดูล Master ระดับ Read

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
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/masters/calendars?calendarName=%E0%B8%9B%E0%B8%8F%E0%B8%B4%E0%B8%97%E0%B8%B4%E0%B8%99%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%20%E0%B8%AA%E0%B8%B3%E0%B8%99%E0%B8%B1%E0%B8%81%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B9%83%E0%B8%AB%E0%B8%8D%E0%B9%88&year=2026' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>'

Responses

🟢200OK
application/json
สำเร็จ — หนึ่งรายการต่อหนึ่งวันหยุด (DayOff มีสมาชิกตัวเดียวเสมอ)
Bodyapplication/json

Example
{
    "StatusCode": 200,
    "Message": "OK",
    "Data": [
        {
            "CalendarName": "ปฏิทินตัวอย่าง สำนักงานใหญ่",
            "Year": 2026,
            "DayOff": [
                {
                    "Date": "2026-01-01",
                    "HolidayName": "วันขึ้นปีใหม่"
                }
            ]
        },
        {
            "CalendarName": "ปฏิทินตัวอย่าง สำนักงานใหญ่",
            "Year": 2026,
            "DayOff": [
                {
                    "Date": "2026-04-13",
                    "HolidayName": "วันสงกรานต์"
                }
            ]
        }
    ]
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:06:44
Previous
Get CustomField
Next
Get MasterSetup
Built with