Skip to content

ProductsResource

Defined in: sdks/n11/src/resources/products.ts:151

n11 seller-product reads (GET https://api.n11.com/ms/product-query).

Source: https://developer.n11.com/documentation/n11-marketplace-entegrasyonu/satici-urun-sorgulama/ — the request filters, the 0-based page / size (default 20, max 250) pagination and the response fields below all come from that page, and were checked against prod on 2026-10-10: size over 250 is rejected (500 ConstraintViolationException, mapped to ValidationError), a page past the end answers an empty content, and a single categoryIds value filters. n11 confirmed (2026-10-13) that several categoryIds go comma-separated in one value, at most 1000 of them.

Rate limit: no per-endpoint limit is documented, so no limiter is applied by default. n11 has no 429: a client that keeps sending requests milliseconds apart is treated as an attack and its IP is suspended, then restricted. Inject a limiter through the constructor when paging through a large catalogue.

new ProductsResource(transport, limiter?): ProductsResource

Defined in: sdks/n11/src/resources/products.ts:152

N11Transport

TokenBucketRateLimiter

ProductsResource

create(items): Promise<N11ProductTask>

Defined in: sdks/n11/src/resources/products.ts:222

Upload new products (POST /ms/product/tasks/product-create), at most 1000 SKUs per call. Returns the queued task; read the per-SKU outcome with getTask or waitForTask. Create tasks can take from seconds to about 15 minutes (observed), so give waitForTask a longer timeoutMs. Common per-SKU failures: a price above the category’s cap (“fahiş fiyat”, e.g. “Maximum 42,000 TL”), a missing mandatory attribute, an invalid category, or an image n11 cannot fetch.

readonly N11ProductCreateItem[]

Promise<N11ProductTask>

for an empty or oversized batch, a price with more than 2 decimals, or listPrice below salePrice (all checked before sending), and for a task n11 rejects.


delete(stockCodes): Promise<N11ProductTask>

Defined in: sdks/n11/src/resources/products.ts:269

Delete products by stock code (POST /ms/product/tasks/product-delete), at most 1000 per call. An unknown stock code fails per SKU, not the call.

readonly string[]

Promise<N11ProductTask>


getTask(taskId): Promise<N11TaskDetails>

Defined in: sdks/n11/src/resources/products.ts:286

Read a task’s state and per-SKU results (POST /ms/product/task-details/page-query). Works for every task type, including inventory.update tasks.

string

Promise<N11TaskDetails>

for an unknown task id.


list(params?): Promise<CursorPage<N11Product>>

Defined in: sdks/n11/src/resources/products.ts:173

List the seller’s products, one page at a time.

n11 paginates by 0-based page index; the SDK exposes it as the opaque cursor of @lonca/core’s CursorPage (like @lonca/trendyol), so paginate() drives it. Following the portal’s advice, a page is the last one when it comes back empty or when page + 1 >= totalPages.

ListN11ProductsParams = {}

Promise<CursorPage<N11Product>>

import { paginate } from '@lonca/core';
for await (const product of paginate((p) => client.products.list({ ...p, saleStatus: 'On_Sale' }))) {
console.log(product.stockCode, product.quantity);
}

update(items): Promise<N11ProductTask>

Defined in: sdks/n11/src/resources/products.ts:251

Update products (POST /ms/product/tasks/product-update), at most 1000 SKUs per call: status (Active / Suspended), preparing day, shipment template, model code, purchase limit, description, VAT and product-safety attributes. Title, brand and other base attributes can only be changed by n11. Prices and stock go through inventory.update.

readonly N11ProductUpdateItem[]

Promise<N11ProductTask>

for an empty or oversized batch, or an item with nothing but a stockCode (n11 would fail it).


waitForTask(taskId, opts?): Promise<N11TaskDetails>

Defined in: sdks/n11/src/resources/products.ts:295

Poll getTask until the task is PROCESSED or REJECT.

string

N11TaskPollOptions = {}

Promise<N11TaskDetails>

when it is still running after opts.timeoutMs.

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.