List Calculate Month Queue
ตรวจสอบสถานะการทำงานของรายการคำนวณเวลาทำงานที่ถูกส่งเข้าคิว
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=list_calculate_month_queueResponse Format
Success Response
{
"code": 200,
"message": "Success",
"payload": [
{
"employee_id": "123",
"employee_code": "EMP001",
"employee_name": "นายสมชาย ใจดี",
"created_at": "2026-03-18 11:10:00",
"status": "Pending",
"error_message": null,
"error_time": null
},
{
"employee_id": "124",
"employee_code": "EMP002",
"employee_name": "นางสมหญิง ใจงาม",
"created_at": "2026-03-18 11:10:05",
"status": "Failed",
"error_message": "Employee not found",
"error_time": "2026-03-18 11:10:10"
}
],
"summary": {
"count": 2,
"error_count": 1
}
}Response Fields - payload
| Field | Type | Description |
|---|---|---|
employee_id | string | ID ของพนักงาน |
employee_code | string | รหัสพนักงาน |
employee_name | string | ชื่อ-นามสกุลพนักงาน |
created_at | string | เวลาที่เข้าคิว |
status | string | สถานะปัจจุบัน (Pending, Processing, Done, Failed) |
error_message | string | null | ข้อความแสดงข้อผิดพลาด (ถ้ามี) |
error_time | string | null | เวลาที่เกิดข้อผิดพลาด |
Response Fields - summary
| Field | Type | Description |
|---|---|---|
count | integer | จำนวนรายการทั้งหมดในคิว |
error_count | integer | จำนวนรายการที่เกิดข้อผิดพลาด |
- ข้อมูลในคิวจะถูกลบออกอัตโนมัติตามระยะเวลาที่กำหนด (ปกติ 12-24 ชั่วโมง)
- หาก
error_messageเป็นnullแสดงว่ารายการยังรอคิวหรือประมวลผลสำเร็จแล้ว
Error Response
| HTTP Status | Description |
|---|---|
200 | ดึงข้อมูลสำเร็จ |
401 | API Key ไม่ถูกต้องหรือไม่ได้ส่ง |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/salary/get-data-filter?path_action=list_calculate_month_queue" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Related APIs
- Calculate Month Queue - ส่งรายการเข้าคิวคำนวณ
- Calculate Month - คำนวณรายบุคคล
- Salary Summary - ดูผลลัพธ์การคำนวณ
Last updated on