Marketplace (Trendyol) order webhook (public)
POST/api/hooks/mp/:token
Where Trendyol posts order-package events (doc 70 §12.4). Public, server-to-server. The path is neutral on purpose: Trendyol refuses a webhook url containing "trendyol", "dolap" or "localhost".
Trust is the per-channel x-api-key Trendyol was given when the
webhook was registered, compared in constant time. Wrong or missing
key → 401; unknown token → 404. The body is the getShipmentPackages
model ({content: [package…]}; a bare package is accepted too). Every
verified delivery is answered 200 at once and applied on the queue,
idempotently; national id / tax identifiers are dropped before queuing.
Request
Responses
- 200
- 401
- 404
- 429
Accepted (queued, or acknowledged with nothing to do).
Missing or wrong x-api-key.
Unknown or inactive webhook url.
Rate limit exceeded.
Response Headers
Request quota for the current window.
Remaining requests in the current window.
Seconds to wait before retrying.