Skip to Content
🚀 Welcome to Humansoft Open API Documentation

List Calculate Month Queue

ตรวจสอบสถานะการทำงานของรายการคำนวณเวลาทำงานที่ถูกส่งเข้าคิว

Endpoint

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

Response 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

FieldTypeDescription
employee_idstringID ของพนักงาน
employee_codestringรหัสพนักงาน
employee_namestringชื่อ-นามสกุลพนักงาน
created_atstringเวลาที่เข้าคิว
statusstringสถานะปัจจุบัน (Pending, Processing, Done, Failed)
error_messagestring | nullข้อความแสดงข้อผิดพลาด (ถ้ามี)
error_timestring | nullเวลาที่เกิดข้อผิดพลาด

Response Fields - summary

FieldTypeDescription
countintegerจำนวนรายการทั้งหมดในคิว
error_countintegerจำนวนรายการที่เกิดข้อผิดพลาด
  • ข้อมูลในคิวจะถูกลบออกอัตโนมัติตามระยะเวลาที่กำหนด (ปกติ 12-24 ชั่วโมง)
  • หาก error_message เป็น null แสดงว่ารายการยังรอคิวหรือประมวลผลสำเร็จแล้ว

Error Response

HTTP StatusDescription
200ดึงข้อมูลสำเร็จ
401API Key ไม่ถูกต้องหรือไม่ได้ส่ง

Code Examples

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"

Last updated on