Income/Expense Import Log
ดูประวัติการนำเข้าข้อมูลรายได้/รายจ่าย
Endpoint
GET /api/v1/open-apis/salary/get-data-filter?path_action=inex_listRequest Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
year_month | string | Yes | งวดเงินเดือน (YYYY-MM) | "2026-03" |
type | string | Yes | ประเภทการนำเข้า: "normal-inex" หรือ "split-inex" | "normal-inex" |
type Values
| Value | Description |
|---|---|
normal-inex | ประวัติการนำเข้ารายได้/รายจ่ายปกติ |
split-inex | ประวัติการนำเข้ารายได้/รายจ่ายรอบเงินเดือนแยก |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": [
{
"import_log_id": "20260305IMP00000001",
"import_log_type": "normal-inex",
"import_month": "2026-03",
"import_log_file_name": "inex_import_20260305_143000.json",
"all_record": "10",
"insert_record": "9",
"update_record": "0",
"delete_record": "0",
"error_record": "1",
"import_log_file_dt": "2026-03-05 14:30:00"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
import_log_id | string | รหัส log การนำเข้า (20 ตัวอักษร) |
import_log_type | string | ประเภท: "normal-inex" หรือ "split-inex" |
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 รายการล่าสุด
- หากไม่มีประวัติการนำเข้า จะส่งคืน payload เป็น array ว่าง
Error Response
| HTTP Status | Description |
|---|---|
400 | รูปแบบ year_month ไม่ถูกต้อง, type ไม่ถูกต้อง, ไม่พบงวดเงินเดือน |
401 | API Key ไม่ถูกต้องหรือไม่ได้ส่ง |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/salary/get-data-filter?path_action=inex_list&year_month=2026-03&type=normal-inex" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Related APIs
- Income/Expense Import - นำเข้ารายได้/รายจ่าย
- Split Income/Expense Import - นำเข้ารอบเงินเดือนแยก
Last updated on