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

Update Financial Transactions

PUT
https://api.gofive.co.th/empeo/api/v1/payrolls/financial-transactions
แก้ไขรายได้-รายหักของพนักงานตามงวด
แก้ไขยอดรายได้-รายหักของพนักงานในงวดหนึ่งเป็นชุด ส่งเฉพาะรายการที่ต้องการแก้ก็ได้
โดยระบุพนักงานด้วย EmployeeRefId และรายการด้วย Code
📋 ต้องเรียก POST /api/v1/payrolls/financial-transactions ก่อน เพื่อให้ได้ EmployeeRefId และ Code ที่มีอยู่จริงในงวดนั้น
⚠️ ข้อควรรู้
ผลลัพธ์ใช้ envelope Result<Hashtable> (Status.Code / Data) — ไม่ใช่ ApiResultBff<T> แบบ POST ของ path เดียวกัน
ไม่สำเร็จได้ 400 (ไม่ใช่ 409 เหมือน endpoint บันทึกอื่นในกลุ่มนี้) โดยเหตุผลอยู่ใน Data.message
📦 Batch Size Limit
จำนวนรายการเงินได้-เงินหัก (FinancialTransactions) สูงสุดต่อ 1 Request: 1,000 รายการ (1 รายการ = พนักงาน 1 คน)
หากส่งเกินจำนวนนี้ ระบบจะตอบกลับ 429 Too Many Requests โดยไม่บันทึกรายการใดเลย
แนะนำ: หากมีข้อมูลมากกว่านี้ ให้แบ่งส่งเป็นหลาย Request
🔐 ต้องมีสิทธิ์ Open API โมดูล Payroll ระดับ ReadAndWrite

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,
    "PeriodExtendNo": 0,
    "FinancialTransactions": [
        {
            "EmployeeRefId": "EMP001",
            "FinancialItems": [
                {
                    "Code": "D12",
                    "Type": 2,
                    "IsCalculate": false,
                    "Amount": 1200
                }
            ]
        }
    ]
}

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 --request PUT 'https://api.gofive.co.th/empeo/api/v1/payrolls/financial-transactions' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "CompanyName": "Acme",
    "Year": 2026,
    "PeriodCalculateNo": 1,
    "PeriodExtendNo": 0,
    "FinancialTransactions": [
        {
            "EmployeeRefId": "EMP001",
            "FinancialItems": [
                {
                    "Code": "D12",
                    "Type": 2,
                    "IsCalculate": false,
                    "Amount": 1200
                }
            ]
        }
    ]
}'

Responses

🟢200OK
application/json
แก้ไขสำเร็จ — ผลอยู่ใน Data
Bodyapplication/json

Example
{
    "Status": {
        "Code": "1000",
        "Description": "Success!"
    },
    "Data": {
        "result": true,
        "message": "Edited Successfully."
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠429Too Many Requests
🔴500Server Error
Modified at 2026-08-20 06:06:54
Previous
Get Financial Transactions
Next
Create Loan
Built with