Skip to content

WebhookEvent

Defined in: sdks/trendyol/src/types/webhook-event.ts:63

The parsed webhook event body. packages is the normalized content[] from the inbound JSON; pageInfo carries Trendyol’s pagination envelope verbatim so you can log / surface it.

In practice packages.length === 1 for status-change events, but the model is defined as a page so the same handler can absorb future batch events without breaking.

packages: ShipmentPackage[]

Defined in: sdks/trendyol/src/types/webhook-event.ts:64


pageInfo: object

Defined in: sdks/trendyol/src/types/webhook-event.ts:65

optional page?: number

optional size?: number

optional totalElements?: number

optional totalPages?: number


raw: Record<string, unknown>

Defined in: sdks/trendyol/src/types/webhook-event.ts:72

Raw inbound body — fall back here for fields the SDK doesn’t surface.

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.