Skip to content

N11Transport

Defined in: sdks/n11/src/transport.ts:94

REST transport for n11’s JSON services.

Auth is two plain headers, appkey and appsecret — every REST page says “Authorization: no auth; add appKey and appSecret to Headers”. The SOAP services (questions, returns, invoice links, catalog search) carry the same key pair inside the envelope’s auth element instead; they are not wired yet.

get integratorName(): string

Defined in: sdks/n11/src/transport.ts:129

Integrator name for the integrator field of product write tasks.

string

new N11Transport(config): N11Transport

Defined in: sdks/n11/src/transport.ts:99

TransportConfig

N11Transport

request<T>(opts): Promise<T>

Defined in: sdks/n11/src/transport.ts:133

T

RequestOptions

Promise<T>


soap(opts): Promise<XmlObject>

Defined in: sdks/n11/src/transport.ts:147

Call one of n11’s SOAP services (questions, returns, cancels, shipment companies, …) and return the <Operation>Response element, parsed.

The key pair travels in the envelope (auth.appKey / auth.appSecret), not in headers. Calls are idempotent (retried on 5xx / network failures) unless opts.idempotent is false, as it is for writes. A result.status of failure — n11 reports those with HTTP 200 — is thrown as a LoncaError (see mapSoapFailure).

SoapCallOptions

Promise<XmlObject>

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.