Skip to content

CreateClientOptions

Defined in: sdks/hepsiburada/src/client.ts:17

env: "prod" | "sit"

Defined in: sdks/hepsiburada/src/client.ts:28

Which Hepsiburada environment to target — 'prod' (production) or 'sit' (sandbox). No default — explicit is safer than implicit.


optional fetch?: (input, init?) => Promise<Response>

Defined in: sdks/hepsiburada/src/client.ts:43

Custom fetch implementation (e.g. to add a proxy agent, record or mock traffic). Defaults to the global fetch.

string | URL | Request

RequestInit

Promise<Response>


integratorName: string

Defined in: sdks/hepsiburada/src/client.ts:34

Integrator company name sent in User-Agent. Hepsiburada rejects requests without a meaningful User-Agent. Use the bare integrator name configured server-side in the Merchant Portal (e.g. beekod_dev).


optional logger?: Logger

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

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


merchantId: string

Defined in: sdks/hepsiburada/src/client.ts:19

Hepsiburada merchant ID (UUID-shaped). Visible in the Merchant Portal.


password: string

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

Hepsiburada API password / secret.


optional timeoutMs?: number

Defined in: sdks/hepsiburada/src/client.ts:38

Request timeout in ms. Default: 30_000.


username: string

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

Hepsiburada API username (from Merchant Portal → Settings → Integrations).

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.