parseWebhookEvent
parseWebhookEvent(
rawBody):WebhookEvent
Defined in: sdks/trendyol/src/parse-webhook-event.ts:35
Parse an inbound webhook body into a typed WebhookEvent.
Accepts either an already-parsed object or a JSON string. Returns
normalized ShipmentPackage[] (the same shape orders.list()
produces), plus the page envelope and the raw body for fallthrough.
Parameters
Section titled “Parameters”rawBody
Section titled “rawBody”unknown
Returns
Section titled “Returns”Throws
Section titled “Throws”when the body isn’t an object / valid JSON,
or when content is missing or not an array.
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.