Skip to main content

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​

Accepted (queued, or acknowledged with nothing to do).