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

Create Loan

POST
https://api.gofive.co.th/empeo/api/v1/payrolls/loan
สร้างเงินกู้/รายการผ่อนชำระให้พนักงาน
สร้างรายการเงินกู้หรือรายการผ่อนชำระให้พนักงาน โดยอ้างรายการรายได้-รายหักด้วย ชื่อ (FinancialItemName)
ไม่ใช่รหัส ระบบจะตั้งงวดหักเงินเดือนตาม TotalPeriod ให้
ต่างจาก POST /api/v1/payrolls/employee/loans ตรงที่ endpoint นี้ให้ระบบคำนวณงวดและดอกเบี้ยให้จากยอดรวม
ส่วน employee/loans เป็นการบันทึกยอดต่องวดที่ผู้เรียกคำนวณมาเองแล้ว
สำเร็จได้ 201 พร้อม body { "status": true, "message": "Successfully" }
ไม่ส่ง EmployeeRefId จะได้ 403 ไม่ใช่ 400
ต้องมีข้อมูลก่อนเรียก: FinancialItemName ต้องตรงกับรายการรายได้-รายหักที่ตั้งไว้ในบริษัทนั้นแล้ว
ต้องมีสิทธิ์ Open API โมดูล Payroll ระดับ ReadAndWrite

Request

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

Body Params application/jsonRequired

Example
{
    "EmployeeRefId": "EMP001",
    "CompanyName": "Acme",
    "FinancialItemName": "เงินกู้สวัสดิการ",
    "DateOfPayment": "2026-08-31",
    "Amount": 19800,
    "DocumentNo": "LOAN-2026-000001",
    "TotalPeriod": 12,
    "Remark": "เงินกู้ตัวอย่าง",
    "InterestType": 1,
    "InterestRatePerYear": 3
}

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/loan' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "EmployeeRefId": "EMP001",
    "CompanyName": "Acme",
    "FinancialItemName": "เงินกู้สวัสดิการ",
    "DateOfPayment": "2026-08-31",
    "Amount": 19800,
    "DocumentNo": "LOAN-2026-000001",
    "TotalPeriod": 12,
    "Remark": "เงินกู้ตัวอย่าง",
    "InterestType": 1,
    "InterestRatePerYear": 3
}'

Responses

🟢201Created
application/json
สร้างรายการสำเร็จ — body เป็น object ดิบ ไม่มี envelope ครอบ
Bodyapplication/json

Example
{
    "status": true,
    "message": "Successfully"
}
🟠401Unauthorized
🟠403Forbidden
🟠409
🟠429
🔴500Server Error
Modified at 2026-08-17 17:20:30
Previous
Update Financial Transactions
Next
Get Cost Center
Built with