Mục lục tài liệu
POST
/addons/route-optimization/webhooks
Register an HTTPS terminal-event webhook
Deliveries are retried up to 6 attempts in total (backoff about 1m, 5m, 30m, 2h, 8h with +-20% jitter) on network errors, HTTP 408, 429 and 5xx; Retry-After is honoured for 429 and 503 up to 8h. Other statuses are final, and deactivating or deleting the webhook cancels any scheduled retry. Every attempt is re-signed with a fresh X-Smartway-Timestamp while X-Smartway-Event-Id stays the same, so receivers should dedupe on the event id.
Đường dẫn
POST
/api/v1/partners/addons/route-optimization/webhooksXác thực yêu cầu
api-keyVí dụ gọi bằng curl
curl -X POST "https://api.route4green.com/api/v1/partners/addons/route-optimization/webhooks" \
-H "api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"url": "string"
}'Tham số
Endpoint này không nhận tham số.
Nội dung gửi lên
| Trường | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
| url | string | Có | HTTPS endpoint that receives route optimization job lifecycle events |
1 trườngCreateRouteOptimizationWebhookDto
Kết quả trả về
201Returns the generated signing secret once409WEBHOOK_LIMIT_REACHED