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 Organizations

GET
https://api.gofive.co.th/empeo/api/v1/masters/organizations
ดึงโครงสร้างองค์กร
ดึงหน่วยงานทั้งหมดของบริษัทหนึ่งแบบ flat list พร้อม ParentId เพื่อให้ผู้เรียกประกอบเป็นต้นไม้เอง
ระดับของหน่วยงานอ่านได้จาก Levels (1 = ระดับบนสุด) และ LevelName = ชื่อระดับที่ tenant ตั้งไว้
⚠️ ข้อควรรู้
ไม่ส่ง companyName = ใช้บริษัทของผู้ใช้ที่ token ผูกอยู่ (ไม่ใช่ทุกบริษัทใน tenant)
ส่งชื่อบริษัทที่ไม่มีอยู่จริงจะได้ 204 ไม่ใช่ 404
endpoint นี้ใช้ envelope Result<T> — อ่านสถานะจาก Status.Code ไม่ใช่ StatusCode
🔐 ต้องมีสิทธิ์ 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/organizations?companyName=Acme' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>'

Responses

🟢200OK
application/json
สำเร็จ — Data คือหน่วยงานทั้งหมดของบริษัทนั้นแบบ flat list
Bodyapplication/json

Example
{
    "Status": {
        "Code": "1000",
        "Description": "Success!"
    },
    "Data": [
        {
            "OrganizationId": 7001,
            "Name": "บริษัทตัวอย่าง",
            "Name_EN": "Sample Company",
            "Levels": 1,
            "LevelName": "บริษัท",
            "ParentOrgName": null,
            "Code": "ORG-001",
            "ParentId": 0,
            "DateModified": null,
            "ModifiedBy": null,
            "CostCenter": null
        },
        {
            "OrganizationId": 7002,
            "Name": "ฝ่ายตัวอย่าง",
            "Name_EN": "Sample Division",
            "Levels": 2,
            "LevelName": "ฝ่าย",
            "ParentOrgName": "บริษัทตัวอย่าง",
            "Code": "ORG-002",
            "ParentId": 7001,
            "DateModified": "2026-05-01T10:00:00",
            "ModifiedBy": "ผู้ดูแลตัวอย่าง หนึ่ง",
            "CostCenter": "CC-100"
        }
    ]
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:06:44
Previous
Authorization
Next
Get CustomField
Built with