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.
Accessors
Section titled “Accessors”integratorName
Section titled “integratorName”Get Signature
Section titled “Get Signature”get integratorName():
string
Defined in: sdks/n11/src/transport.ts:129
Integrator name for the integrator field of product write tasks.
Returns
Section titled “Returns”string
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new N11Transport(
config):N11Transport
Defined in: sdks/n11/src/transport.ts:99
Parameters
Section titled “Parameters”config
Section titled “config”TransportConfig
Returns
Section titled “Returns”N11Transport
Methods
Section titled “Methods”request()
Section titled “request()”request<
T>(opts):Promise<T>
Defined in: sdks/n11/src/transport.ts:133
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”RequestOptions
Returns
Section titled “Returns”Promise<T>
soap()
Section titled “soap()”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).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”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.