Delete Employee Constant
ลบรายรับ/รายจ่ายคงที่ของพนักงาน โดยระบุ employee_constant_id
การลบข้อมูลเป็นการลบถาวร ไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/employee/delete-employee-financial?path_action=constantQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น constant |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_constant_id | string | Yes | ID รายการคงที่ (Base64 encoded) |
Response Format
Success Response
{
"code": 200,
"message": "Delete Constant Success",
"payload": {
"employee_constant_id": "20260215EC01A2B3C4D5",
"deleted": true
}
}Response Fields
| Field | Type | Description |
|---|---|---|
employee_constant_id | string | ID รายการที่ถูกลบ |
deleted | boolean | สถานะการลบ (true = สำเร็จ) |
Error Response
{
"code": 400,
"message": "Validation failed",
"errors": [
"Missing required parameter: 'employee_constant_id'"
]
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-financial?path_action=constant" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"employee_constant_id": "MjAyNjAyMTVFQzAxQTJCM0M0RDU="
}'Notes
Related APIs
- List Constants - ดึงรายการรายรับ/รายจ่ายคงที่ทั้งหมด
- Get Constant - ดึงข้อมูลรายรับ/รายจ่ายคงที่ตาม ID
- Add Constant - เพิ่มรายรับ/รายจ่ายคงที่
- Update Constant - แก้ไขรายรับ/รายจ่ายคงที่
Last updated on