Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Income/Expense Import Log

ดูประวัติการนำเข้าข้อมูลรายได้/รายจ่าย

Endpoint

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

Request Parameters

ParameterTypeRequiredDescriptionExample
year_monthstringYesงวดเงินเดือน (YYYY-MM)"2026-03"
typestringYesประเภทการนำเข้า: "normal-inex" หรือ "split-inex""normal-inex"

type Values

ValueDescription
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

FieldTypeDescription
import_log_idstringรหัส log การนำเข้า (20 ตัวอักษร)
import_log_typestringประเภท: "normal-inex" หรือ "split-inex"
import_monthstringงวดเงินเดือน (YYYY-MM)
import_log_file_namestringชื่อไฟล์ที่สร้างอัตโนมัติ
all_recordstringจำนวนรายการทั้งหมด
insert_recordstringจำนวนรายการที่นำเข้าสำเร็จ
update_recordstringจำนวนรายการที่อัปเดต
delete_recordstringจำนวนรายการที่ลบ
error_recordstringจำนวนรายการที่เกิดข้อผิดพลาด
import_log_file_dtstringวันเวลาที่นำเข้า (YYYY-MM-DD HH:mm:ss)
  • ดึงได้สูงสุด 100 รายการล่าสุด
  • หากไม่มีประวัติการนำเข้า จะส่งคืน payload เป็น array ว่าง

Error Response

HTTP StatusDescription
400รูปแบบ year_month ไม่ถูกต้อง, type ไม่ถูกต้อง, ไม่พบงวดเงินเดือน
401API Key ไม่ถูกต้องหรือไม่ได้ส่ง

Code Examples

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"

Last updated on