Gofive OpenAPI
empeo
VenioeTaxGo
empeo
VenioeTaxGo
  1. Payroll
  • 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
  • Overtime
    • Get Overtimes Preriods
    • Get Overtimes Documents
  • Employee
    • User Info
    • Update Employee Information
  1. Payroll

Get Cost Center

POST
https://api.gofive.co.th/empeo/api/v1/payrolls/cost-centers
ดึงข้อมูล cost center ของงวดเงินเดือน
ดึงยอดรายได้-รายหักของงวดหนึ่งแยกตาม cost center ของหน่วยงาน ใช้ส่งต่อให้ระบบบัญชีลงบัญชีตามศูนย์ต้นทุน
เป็น POST แม้จะเป็นการอ่านข้อมูล — ตัวกรองส่งมาทาง request body
DebitCredit บอกว่ารายการนั้นเป็นด้านเดบิตหรือเครดิต และ Amount เป็นยอดรวมของ cost center นั้นในงวด
ฟิลด์ CostCenter / AccountCode ที่ tenant ยังไม่ได้ตั้งจะเป็นข้อความว่าง ไม่ใช่ null
ไม่พบข้อมูลของงวดที่ระบุจะได้ 204
ต้องมีข้อมูลก่อนเรียก: งวด Year / PeriodCalculateNo ต้องคำนวณเงินเดือนแล้ว
ต้องมีสิทธิ์ Open API โมดูล Payroll ระดับ Read

Request

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

Body Params application/jsonRequired

Example
{
    "CompanyName": "Acme",
    "Year": 2026,
    "PeriodCalculateNo": 1
}

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/payrolls/cost-centers' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "CompanyName": "Acme",
    "Year": 2026,
    "PeriodCalculateNo": 1
}'

Responses

🟢200OK
application/json
สำเร็จ — Data คือยอดแยกตาม cost center
Bodyapplication/json

Example
{
    "StatusCode": 200,
    "Message": "OK",
    "Totals": 1,
    "Data": [
        {
            "CompanyCode": "001",
            "CompanyName": "Acme",
            "Code": "D12",
            "FinancialItemName": "หักเงินกู้สวัสดิการ",
            "OrgLevelTwoName": "ฝ่ายตัวอย่าง",
            "OrgLevelTwoCostCenter": "CC-100",
            "OrgLevelThreeName": "แผนกตัวอย่าง",
            "OrgLevelThreeCostCenter": "",
            "OrgLevelFourName": "ทีมตัวอย่าง",
            "OrgLevelFourCostCenter": "",
            "CostCenter": "CC-100",
            "Amount": 1000,
            "AccountCode": "",
            "AccountCodeType": "",
            "DebitCredit": "Credit"
        }
    ]
}
🟢204No Content
🟠401Unauthorized
🟠403Forbidden
🟠429
🔴500Server Error
Modified at 2026-08-17 17:20:30
Previous
Create Loan
Next
Shuttle Buses
Built with