Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Person Tax NVAT (ลบข้อมูลภาษี ณ ที่จ่าย รายบุคคล ภงด.3)

ลบข้อมูลภาษีเงินได้หัก ณ ที่จ่าย (ภงด.3) ของพนักงานรายบุคคล ตามงวดเดือนที่ระบุ

การลบข้อมูลไม่สามารถกู้คืนได้ — ควรตรวจสอบข้อมูลจาก NVAT Month Report ก่อนเรียก API นี้ทุกครั้ง

Endpoint

POST /api/v1/open-apis/report/delete-person-tax-nvat?path_action=delete_person_tax_nvat

Request Parameters

Required Parameters

ParameterTypeRequiredDescriptionExample
authorize_idstringYesรหัสผู้เรียก API"EMP001"
employee_codestringYesรหัสพนักงาน (plain text ไม่ต้อง encode)"EMP001"
tax_month_codestringYesรหัสเดือนภาษี 2 หลัก (01-12)"03"
tax_year_codestringYesรหัสปีภาษี 4 หลัก (YYYY)"2026"

Optional Parameters

ParameterTypeDefaultDescriptionExample
xtra_slip_listsarray<string>[]รายการ xtra slip ที่ต้องล็อกพร้อมการลบ (base64-encoded string)["eHRyYV9zbGlwXzAwMQ=="]
  • xtra_slip_lists เป็น array ของ base64-encoded string โดยตรง (ไม่ใช่ array of object)
  • ค่า xtra_slip_lists ที่ถูกต้องสามารถดึงได้จาก extra.xtra_slip_lists ใน response ของ NVAT Month Report
  • item ที่ decode ไม่ได้หรือว่างจะถูกข้ามโดยอัตโนมัติ (ไม่ error)

Example Request Body

{ "authorize_id": "EMP001", "employee_code": "EMP001", "tax_month_code": "03", "tax_year_code": "2026", "xtra_slip_lists": [ "eHRyYV9zbGlwXzAwMQ==", "eHRyYV9zbGlwXzAwMg==" ] }

Response Format

Success Response

{ "code": "200", "message": "Success", "payload": { "employee_code": "EMP001", "employee_id": "2024010112345ABC", "tax_month_code": "03", "tax_year_code": "2026" } }

Response Fields

FieldTypeDescription
payload.employee_codestringรหัสพนักงานที่ส่งมาใน request
payload.employee_idstringรหัสพนักงานที่ resolve ได้จาก employee_code
payload.tax_month_codestringรหัสเดือนภาษีที่ลบ
payload.tax_year_codestringรหัสปีภาษีที่ลบ

Error Response

{ "code": 400, "message": "Validation failed", "errors": [ "Missing required parameter: 'employee_code'", "'tax_month_code' must be a two-digit month (01-12)", "'tax_year_code' must be in YYYY format" ] }
HTTP StatusDescription
400พารามิเตอร์ไม่ครบหรือรูปแบบไม่ถูกต้อง
401API Key ไม่ถูกต้องหรือไม่ได้ส่ง
403ไม่มีสิทธิ์เรียก API นี้
500ไม่พบพนักงาน หรือไม่พบข้อมูลภาษีของงวดที่ระบุ

เมื่อเรียก API สำเร็จ ข้อมูลภาษีของพนักงานในงวดดังกล่าวจะถูกลบทันทีและไม่สามารถกู้คืนได้ ข้อมูล xtra slip ที่ผูกกับงวดจะถูกล็อกไม่ให้แก้ไขย้อนหลัง


Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/report/delete-person-tax-nvat?path_action=delete_person_tax_nvat" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "authorize_id": "EMP001", "employee_code": "EMP001", "tax_month_code": "03", "tax_year_code": "2026", "xtra_slip_lists": [ "eHRyYV9zbGlwXzAwMQ==" ] }'

  • NVAT Month Report (ภงด.3) - ดึงรายงานภาษี ณ ที่จ่ายประจำเดือน (แนะนำให้เรียกก่อน API นี้เพื่อดึง xtra_slip_lists)
Last updated on