Chuyển đến nội dung chính
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.

Mở trong ChatGPTMở trong Claude

Đường dẫn

POST/api/v1/partners/addons/route-optimization/webhooks
Xác thực yêu cầuapi-key

Ví 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ườngKiểuBắt buộcMô tả
urlstringCóHTTPS endpoint that receives route optimization job lifecycle events
1 trườngCreateRouteOptimizationWebhookDto

Kết quả trả về

201Returns the generated signing secret once
409WEBHOOK_LIMIT_REACHED

Về nhóm: Tối ưu tuyến đường

POST /addons/route-optimization/webhooks | Route4Green