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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebhooksResource(
transport,limiter?):WebhooksResource
Defined in: sdks/trendyol/src/resources/webhooks.ts:56
Parameters
Section titled “Parameters”transport
Section titled “transport”TrendyolTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”WebhooksResource
Methods
Section titled “Methods”activate()
Section titled “activate()”activate(
webhookId):Promise<unknown>
Defined in: sdks/trendyol/src/resources/webhooks.ts:121
Re-activate a previously-deactivated webhook subscription.
Parameters
Section titled “Parameters”webhookId
Section titled “webhookId”string | number
Returns
Section titled “Returns”Promise<unknown>
create()
Section titled “create()”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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
Throws
Section titled “Throws”when url or authenticationType is missing.
deactivate()
Section titled “deactivate()”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.
Parameters
Section titled “Parameters”webhookId
Section titled “webhookId”string | number
Returns
Section titled “Returns”Promise<unknown>
delete()
Section titled “delete()”delete(
webhookId):Promise<unknown>
Defined in: sdks/trendyol/src/resources/webhooks.ts:112
Permanently delete a webhook subscription.
Parameters
Section titled “Parameters”webhookId
Section titled “webhookId”string | number
Returns
Section titled “Returns”Promise<unknown>
list()
Section titled “list()”list():
Promise<Webhook[]>
Defined in: sdks/trendyol/src/resources/webhooks.ts:81
List all registered webhook subscriptions.
Returns
Section titled “Returns”Promise<Webhook[]>
update()
Section titled “update()”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).
Parameters
Section titled “Parameters”webhookId
Section titled “webhookId”string | number
Returns
Section titled “Returns”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.