Get Import Log
ดึงรายการประวัติการนำเข้าโควตาการลาจาก Excel เพื่อตรวจสอบและติดตามผลการนำเข้าข้อมูล
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=get_list_import_excelRequest Parameters
ไม่มีพารามิเตอร์บังคับ ระบบจะดึง log ล่าสุดโดยอัตโนมัติ
Response Format
Success Response
{
"code": 200,
"message": "Success",
"payload": [
{
"import_log_id": "IMP20260220001",
"import_log_type": "quota",
"import_log_file_name": "quota_import_2026.xlsx",
"import_log_file_dt": "2026-02-20 14:30:00",
"all_record": 150,
"insert_record": 145,
"update_record": 3,
"error_record": 2
},
{
"import_log_id": "IMP20260218001",
"import_log_type": "quota",
"import_log_file_name": "quota_import_jan.xlsx",
"import_log_file_dt": "2026-02-18 10:15:00",
"all_record": 80,
"insert_record": 80,
"update_record": 0,
"error_record": 0
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
import_log_id | string | ID ของ log การนำเข้า |
import_log_type | string | ประเภทการนำเข้า ("quota") |
import_log_file_name | string | ชื่อไฟล์ที่นำเข้า |
import_log_file_dt | string | วันที่และเวลาที่นำเข้า (YYYY-MM-DD HH:mm:ss) |
all_record | number | จำนวนรายการทั้งหมดในไฟล์ |
insert_record | number | จำนวนรายการที่เพิ่มสำเร็จ |
update_record | number | จำนวนรายการที่อัปเดตสำเร็จ |
error_record | number | จำนวนรายการที่เกิดข้อผิดพลาด |
Empty Response
{
"code": 200,
"message": "Success",
"payload": []
}Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/salary/get-data-filter?path_action=get_list_import_excel" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Notes
- ระบบจะดึงเฉพาะ log ประเภท
"quota"เท่านั้น (ไม่รวมโควตาที่จะได้รับ) - รายการเรียงตามวันที่นำเข้าล่าสุดก่อน
- ใช้
import_log_idเพื่ออ้างอิงถึงการนำเข้าแต่ละครั้ง
Related APIs
- Excel Import - นำเข้าโควตาจาก Excel
- Excel Template - ดาวน์โหลด template สำหรับนำเข้า
- Get Receiving Import Log - ประวัติการนำเข้าโควตาที่จะได้รับ
Last updated on