Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Unfinish Work Cycle Plan

ยกเลิกสถานะปิดแผนกะ (Finish) กลับมาเป็นสถานะเปิด เพื่อให้สามารถแก้ไขข้อมูลแผนได้อีกครั้ง ใช้ในกรณีที่ปิดแผนผิดพลาดหรือต้องการแก้ไขข้อมูลหลังจากปิดแผนไปแล้ว

Endpoint

POST /api/v1/open-apis/salary/update-data-filter?path_action=unfinish_work_cycle_plan

Request Body

ParameterTypeRequiredDescriptionExample
work_cycle_plan_idstringYesรหัสแผนกะ (Base64 encoded)"MjAyNjAxMTZDNzU4RDI2RjcyRkU"

Response Format

Success Response

{ "code": 200, "message": "สำเร็จ", "payload": { "work_cycle_plan_id": "20260116C758D26F72FE", "unfinished": true } }

Response Fields

FieldTypeDescription
work_cycle_plan_idstringรหัสแผนกะ (plain text 20 ตัวอักษร)
unfinishedbooleanสถานะการเปิดแผนกลับ (true = สำเร็จ)

Error Response

{ "code": 404, "message": "Work cycle plan not found", "payload": [] }

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/salary/update-data-filter?path_action=unfinish_work_cycle_plan" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "work_cycle_plan_id": "MjAyNjAxMTZDNzU4RDI2RjcyRkU" }'

Notes

  • การ Unfinish ไม่ได้ลบข้อมูลการ Apply เพียงแค่เปิดสถานะ Header ของแผนให้สามารถแก้ไขได้อีกครั้ง
  • หลังจาก Unfinish แล้วสามารถแก้ไขแผนด้วย Set Work Cycle Plan ได้ตามปกติ

  • Finish Plan - ปิดแผนกะ
  • Set Work Cycle Plan - แก้ไขข้อมูลแผน (หลังจาก Unfinish)
  • Apply Plan - นำแผนไปใช้กับพนักงานทุกคน
Last updated on