Current Month
ดึงข้อมูลรอบเดือนเงินเดือนปัจจุบัน ใช้สำหรับตรวจสอบว่าขณะนี้อยู่ในรอบเดือนไหน และสถานะของรอบเดือนนั้น
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=current_monthRequest 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
| Field | Type | Description |
|---|---|---|
master_salary_report_id | string | รหัสรอบเงินเดือน |
master_salary_month | string | รอบเดือน (YYYY-MM) |
master_salary_year | string | ปี (YYYY) |
master_salary_start_date | string | วันที่เริ่มต้นรอบเดือน (YYYY-MM-DD) |
master_salary_end_date | string | วันที่สิ้นสุดรอบเดือน (YYYY-MM-DD) |
read_only_flag | string | สถานะปิดเดือน: "Y" (ปิดแล้ว), "N" (ยังไม่ปิด) |
calculate_flag | string | สถานะคำนวณ: "Y" (คำนวณแล้ว), "N" (ยังไม่คำนวณ) |
company_id | string | รหัสบริษัท |
branch_id | string | รหัสสาขา |
Error Response
{
"code": 401,
"message": "Unauthorized",
"payload": []
}| HTTP Status | Description |
|---|---|
401 | API Key ไม่ถูกต้องหรือไม่ได้ส่ง |
500 | ระบบขัดข้อง |
Code Examples
cURL
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 อื่นๆ
Related APIs
- Daily In Month - ดูตารางเวลาทำงานของรอบเดือนนี้
- Calculate Month - คำนวณเวลาทำงานของรอบเดือนนี้
- Salary Summary - ดูสรุปเงินเดือนของรอบเดือนนี้
Last updated on