Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Current Month

ดึงข้อมูลรอบเดือนเงินเดือนปัจจุบัน ใช้สำหรับตรวจสอบว่าขณะนี้อยู่ในรอบเดือนไหน และสถานะของรอบเดือนนั้น

Endpoint

GET /api/v1/open-apis/salary/get-data-filter?path_action=current_month

Request Parameters

API นี้ไม่ต้องส่ง parameters ใดๆ ระบบจะส่งคืนรอบเดือนปัจจุบันโดยอัตโนมัติ

API นี้ไม่ต้องใช้ employee_code เป็น API ระดับบริษัท/สาขา


Response Format

Success Response

{ "code": 200, "message": "Current Month (2026-02) Accept", "payload": { "master_salary_report_id": "20260201ABC123456789", "master_salary_month": "2026-02", "master_salary_year": "2026", "master_salary_start_date": "2026-01-26", "master_salary_end_date": "2026-02-25", "read_only_flag": "N", "calculate_flag": "N", "company_id": "20241225C3024958C974", "branch_id": "202412254358646B34E4" } }

Key Response Fields

FieldTypeDescription
master_salary_report_idstringรหัสรอบเงินเดือน
master_salary_monthstringรอบเดือน (YYYY-MM)
master_salary_yearstringปี (YYYY)
master_salary_start_datestringวันที่เริ่มต้นรอบเดือน (YYYY-MM-DD)
master_salary_end_datestringวันที่สิ้นสุดรอบเดือน (YYYY-MM-DD)
read_only_flagstringสถานะปิดเดือน: "Y" (ปิดแล้ว), "N" (ยังไม่ปิด)
calculate_flagstringสถานะคำนวณ: "Y" (คำนวณแล้ว), "N" (ยังไม่คำนวณ)
company_idstringรหัสบริษัท
branch_idstringรหัสสาขา

Error Response

{ "code": 401, "message": "Unauthorized", "payload": [] }
HTTP StatusDescription
401API Key ไม่ถูกต้องหรือไม่ได้ส่ง
500ระบบขัดข้อง

Code Examples

curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/salary/get-data-filter?path_action=current_month" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"

Notes

  • master_salary_month เป็นรูปแบบ YYYY-MM (เช่น "2026-02")
  • read_only_flag = "Y" หมายถึงเดือนปิดแล้ว ไม่สามารถแก้ไขข้อมูลได้
  • calculate_flag = "Y" หมายถึงคำนวณเงินเดือนแล้ว
  • รอบเดือนอาจไม่ตรงกับเดือนปฏิทิน (เช่น 26 ม.ค. - 25 ก.พ.)
  • ใช้ API นี้เพื่อหา master_salary_month สำหรับ APIs อื่นๆ

  • Daily In Month - ดูตารางเวลาทำงานของรอบเดือนนี้
  • Calculate Month - คำนวณเวลาทำงานของรอบเดือนนี้
  • Salary Summary - ดูสรุปเงินเดือนของรอบเดือนนี้
Last updated on