Net Total Import Log
ดูประวัติการนำเข้าข้อมูลเงินเดือนสุทธิ
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=nettotal_listRequest Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
year_month | string | Yes | งวดเงินเดือน (YYYY-MM) | "2026-03" |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": [
{
"import_log_id": "20260305IMP00000003",
"import_log_type": "normal",
"import_month": "2026-03",
"import_log_file_name": "nettotal_import_20260305_150000.json",
"all_record": "50",
"insert_record": "48",
"update_record": "0",
"delete_record": "0",
"error_record": "2",
"import_log_file_dt": "2026-03-05 15:00:00"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
import_log_id | string | รหัส log การนำเข้า |
import_log_type | string | ประเภท: "normal" |
import_month | string | งวดเงินเดือน (YYYY-MM) |
import_log_file_name | string | ชื่อไฟล์ที่สร้างอัตโนมัติ |
all_record | string | จำนวนรายการทั้งหมด |
insert_record | string | จำนวนสลิปที่สร้างสำเร็จ |
update_record | string | จำนวนรายการที่อัปเดต |
delete_record | string | จำนวนรายการที่ลบ |
error_record | string | จำนวนรายการที่เกิดข้อผิดพลาด |
import_log_file_dt | string | วันเวลาที่นำเข้า (YYYY-MM-DD HH:mm:ss) |
- ดึงได้สูงสุด 100 รายการล่าสุด
- กรองเฉพาะ import_log_type เป็น
"normal"เท่านั้น - หากไม่มีประวัติการนำเข้า จะส่งคืน payload เป็น array ว่าง
Error Response
| HTTP Status | Description |
|---|---|
400 | ไม่พบงวดเงินเดือนที่ระบุ |
401 | API Key ไม่ถูกต้องหรือไม่ได้ส่ง |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/salary/get-data-filter?path_action=nettotal_list&year_month=2026-03" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Related APIs
- Net Total Import - นำเข้าข้อมูลเงินเดือน
- Net Total Template - ดึง Template คอลัมน์
Last updated on