Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Complaint

ลบเอกสารร้องเรียนพนักงานออกจากระบบ พร้อมทั้งลบการแจ้งเตือนและข้อมูลที่เกี่ยวข้องออกให้เรียบร้อย

การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ

Endpoint

POST /api/v1/open-apis/complaint/delete

Request Parameters

Required Parameters

ParameterTypeRequiredDescriptionExample
complaint_idstring (base64)YesID ของเอกสารร้องเรียนที่ต้องการลบ (Base64 encoded)MjAyNjAzMzBDTVAwMDAwMDAx

Request Body Example

{ "complaint_id": "MjAyNjAzMzBDTVAwMDAwMDAx" }

Response Format

Success Response (HTTP 200)

{ "code": 200, "message": "ลบข้อมูลสำเร็จ", "payload": [ { "complaint_id": "20260330CMP00000001", "complaint_dt": "2026-03-30", "complaint_desc": "พบเห็นการทุจริตการเบิกจ่ายงบประมาณ", "complaint_status_lv": "01", "message": "Deleted successfully" } ] }

Response Fields

FieldTypeDescription
complaint_idstringรหัสเอกสารร้องเรียนที่ถูกลบ
complaint_dtstringวันที่ร้องเรียน
complaint_descstringรายละเอียดการร้องเรียน
complaint_status_lvstringสถานะเอกสารก่อนถูกลบ

Error Response - Validation Failed (HTTP 422)

{ "code": 422, "message": "Validation failed", "errors": [ "'complaint_id' is required" ] }

Error Response - Document Not Found (HTTP 400)

{ "code": 400, "message": "Failed", "error": "ไม่พบข้อมูลพนักงานหรือเอกสารนี้ในระบบ" }

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/complaint/delete" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "complaint_id": "MjAyNjAzMzBDTVAwMDAwMDAx" }'

Notes

ข้อควรทราบ:

  • การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการลบ
  • complaint_id ต้องส่งเป็น Base64 encoded
  • เอกสารที่ต้องการลบจะต้องมีอยู่จริงในระบบ
  • การแจ้งเตือนที่เกี่ยวข้องกับเอกสารจะถูกลบออกด้วย
  • Get List - ตรวจสอบว่ารายการถูกลบออกจากระบบแล้ว
  • Submit Complaint - สร้างเอกสารร้องเรียนใหม่
Last updated on