Skip to content

CreateClientOptions

Defined in: sdks/trendyol/src/client.ts:21

apiKey: string

Defined in: sdks/trendyol/src/client.ts:25

Trendyol API key.


apiSecret: string

Defined in: sdks/trendyol/src/client.ts:27

Trendyol API secret.


optional clientIp?: string

Defined in: sdks/trendyol/src/client.ts:42

IPv4 address to send in x-clientip. Defaults to '127.0.0.1' — Trendyol does not validate this against the request origin, the header just has to be present and IPv4-shaped.


env: "prod" | "stage"

Defined in: sdks/trendyol/src/client.ts:29

Which Trendyol environment to target.


integratorName: string

Defined in: sdks/trendyol/src/client.ts:36

Integrator company name to send in User-Agent / x-agentname. Required — Trendyol uses this to attribute API traffic. Use 'SelfIntegration' if the seller owns the integration code, otherwise your company / product name. Trendyol caps this at 30 alphanumeric characters.


optional logger?: Logger

Defined in: sdks/trendyol/src/client.ts:44

Optional structured logger (@lonca/core Logger). Defaults to no-op.


sellerId: number

Defined in: sdks/trendyol/src/client.ts:23

Trendyol seller (supplier) ID — visible in Partner Panel → Account Info.


optional timeoutMs?: number

Defined in: sdks/trendyol/src/client.ts:46

Request timeout in ms. Default: 30_000.

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.