CreateClientOptions
Defined in: sdks/trendyol/src/client.ts:21
Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey:
string
Defined in: sdks/trendyol/src/client.ts:25
Trendyol API key.
apiSecret
Section titled “apiSecret”apiSecret:
string
Defined in: sdks/trendyol/src/client.ts:27
Trendyol API secret.
clientIp?
Section titled “clientIp?”
optionalclientIp?: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
Section titled “integratorName”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.
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: sdks/trendyol/src/client.ts:44
Optional structured logger (@lonca/core Logger). Defaults to no-op.
sellerId
Section titled “sellerId”sellerId:
number
Defined in: sdks/trendyol/src/client.ts:23
Trendyol seller (supplier) ID — visible in Partner Panel → Account Info.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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.