Danh sách Endpoint Webhook Integrations
| Chức năng | Method & Path |
|---|---|
| Liệt kê Webhook đã cấu hình | GET /api/v1/integrations/webhooks |
| Tạo Webhook mới | POST /api/v1/integrations/webhooks |
| Cập nhật Webhook | PUT /api/v1/integrations/webhooks/:id |
| Xoay khóa bí mật (Rotate Secret) | POST /api/v1/integrations/webhooks/:id/rotate-secret |
| Gửi sự kiện kiểm thử | POST /api/v1/integrations/webhooks/:id/test |
| Xem nhật ký gửi (Outbox Logs) | GET /api/v1/integrations/logs |
| Thử gửi lại job lỗi | POST /api/v1/integrations/logs/:jobId/retry |
curl -X POST 'https://api.bankgateway.org/api/v1/integrations/webhooks' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{
"name": "Production Order IPN",
"url": "https://your-domain.com/webhooks/bankgateway",
"events": ["payment.paid", "batch.completed"]
}'