Webhook Events
รายการ Events ทั้งหมดที่ระบบ Webhook รองรับ
Event Categories
| หมวดหมู่ | คำอธิบาย |
|---|---|
| Employee Events | Events เกี่ยวกับข้อมูลพนักงาน: สร้าง, ลบ, ย้ายแผนก, ลาออก |
Test Events
test.ping
เกิดขึ้นเมื่อกดปุ่ม “ทดสอบ” ในหน้าตั้งค่า Webhook
ตัวอย่าง Payload:
{
"request_id": "test_a90b78b79dadff88",
"event": "test.ping",
"event_occurred_at": "2025-01-23 12:07:42",
"body": {
"message": "This is a test webhook from HumanSoft API",
"timestamp": "2025-01-23T12:07:42+07:00",
"endpoint": {
"endpoint_id": "20250123FAC4DE16F4FE",
"endpoint_name": "Webhook"
}
}
}test.ping ใช้สำหรับทดสอบว่า Callback URL ของคุณสามารถรับ Webhook ได้ถูกต้อง
สรุป Events ทั้งหมด
| Event Code | หมวดหมู่ | คำอธิบาย |
|---|---|---|
employee.create | Employee Events | เมื่อมีการสร้างข้อมูลพนักงานใหม่ในระบบ |
employee.terminate | Employee Events | เมื่อพนักงานลาออกหรือพ้นสภาพการเป็นพนักงาน |
employee.structure.change | Employee Events | เมื่อพนักงานถูกย้ายแผนกหรือเปลี่ยนตำแหน่ง |
employee.purge | Employee Events | เมื่อมีการลบข้อมูลพนักงานออกจากระบบ |
test.ping | Test Events | เมื่อกดปุ่มทดสอบในหน้าตั้งค่า |
Last updated on