Skip to content

WebhooksResource

Defined in: sdks/trendyol/src/resources/webhooks.ts:53

Trendyol webhook subscription management.

Max 15 active webhooks per seller (Trendyol-enforced). Webhooks fire on shipment-package status events only — there is no webhook support for product / stock changes.

Trendyol’s gateway authenticates against your endpoint with the authenticationType you configure. Pick API_KEY over BASIC_AUTHENTICATION so you can rotate the secret without redeploying.

No HMAC signature — security relies entirely on the auth method you pick + the secret you store with Trendyol.

new WebhooksResource(transport, limiter?): WebhooksResource

Defined in: sdks/trendyol/src/resources/webhooks.ts:56

TrendyolTransport

TokenBucketRateLimiter

WebhooksResource

activate(webhookId): Promise<unknown>

Defined in: sdks/trendyol/src/resources/webhooks.ts:121

Re-activate a previously-deactivated webhook subscription.

string | number

Promise<unknown>


create(input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/webhooks.ts:70

Create a new webhook subscription. Trendyol caps subscriptions at 15 per seller — the SDK does NOT pre-check (you’d need to call list() first), but Trendyol returns 400 when the cap is exceeded.

WebhookInput

Promise<unknown>

when url or authenticationType is missing.


deactivate(webhookId): Promise<unknown>

Defined in: sdks/trendyol/src/resources/webhooks.ts:134

Deactivate a webhook subscription. Trendyol automatically deactivates a subscription after persistent delivery failures (and sends 2 emails); use activate() to bring it back online once your endpoint is healthy.

string | number

Promise<unknown>


delete(webhookId): Promise<unknown>

Defined in: sdks/trendyol/src/resources/webhooks.ts:112

Permanently delete a webhook subscription.

string | number

Promise<unknown>


list(): Promise<Webhook[]>

Defined in: sdks/trendyol/src/resources/webhooks.ts:81

List all registered webhook subscriptions.

Promise<Webhook[]>


update(webhookId, input): Promise<unknown>

Defined in: sdks/trendyol/src/resources/webhooks.ts:101

Update a webhook subscription. Same input shape as create; replaces the whole subscription (Trendyol does NOT partially update).

string | number

WebhookInput

Promise<unknown>

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.