Get Receiving Import Log
ดึงรายการประวัติการนำเข้าโควตาการลาที่จะได้รับ (Receiving Quota) จาก Excel เพื่อตรวจสอบและติดตามผลการนำเข้าข้อมูล
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=get_list_receiving_import_excelRequest Parameters
ไม่มีพารามิเตอร์บังคับ ระบบจะดึง log ล่าสุดโดยอัตโนมัติ
Response Format
Success Response
{
"code": 200,
"message": "Success",
"payload": [
{
"import_log_id": "RIMP20260220001",
"import_log_type": "receiving-quota",
"import_log_file_name": "receiving_quota_2027.xlsx",
"import_log_file_dt": "2026-02-20 15:45:00",
"all_record": 200,
"insert_record": 195,
"update_record": 5,
"error_record": 0
},
{
"import_log_id": "RIMP20260215001",
"import_log_type": "receiving-quota",
"import_log_file_name": "receiving_quota_q1.xlsx",
"import_log_file_dt": "2026-02-15 09:30:00",
"all_record": 120,
"insert_record": 120,
"update_record": 0,
"error_record": 0
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
import_log_id | string | ID ของ log การนำเข้า |
import_log_type | string | ประเภทการนำเข้า ("receiving-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_receiving_import_excel" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Notes
- ระบบจะดึงเฉพาะ log ประเภท
"receiving-quota"เท่านั้น (ไม่รวมโควตาปกติ) - รายการเรียงตามวันที่นำเข้าล่าสุดก่อน
- ใช้
import_log_idเพื่ออ้างอิงถึงการนำเข้าแต่ละครั้ง
Related APIs
- Excel Receiving Import - นำเข้าโควตาที่จะได้รับจาก Excel
- Excel Receiving Template - ดาวน์โหลด template สำหรับนำเข้า
- Get Import Log - ประวัติการนำเข้าโควตาปกติ
Last updated on