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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ProductsResource(
transport,limiter?):ProductsResource
Defined in: sdks/n11/src/resources/products.ts:152
Parameters
Section titled “Parameters”transport
Section titled “transport”limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”ProductsResource
Methods
Section titled “Methods”create()
Section titled “create()”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.
Parameters
Section titled “Parameters”readonly N11ProductCreateItem[]
Returns
Section titled “Returns”Promise<N11ProductTask>
Throws
Section titled “Throws”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()
Section titled “delete()”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.
Parameters
Section titled “Parameters”stockCodes
Section titled “stockCodes”readonly string[]
Returns
Section titled “Returns”Promise<N11ProductTask>
getTask()
Section titled “getTask()”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.
Parameters
Section titled “Parameters”taskId
Section titled “taskId”string
Returns
Section titled “Returns”Promise<N11TaskDetails>
Throws
Section titled “Throws”for an unknown task id.
list()
Section titled “list()”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.
Parameters
Section titled “Parameters”params?
Section titled “params?”Returns
Section titled “Returns”Promise<CursorPage<N11Product>>
Example
Section titled “Example”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()
Section titled “update()”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.
Parameters
Section titled “Parameters”readonly N11ProductUpdateItem[]
Returns
Section titled “Returns”Promise<N11ProductTask>
Throws
Section titled “Throws”for an empty or oversized batch, or an item with
nothing but a stockCode (n11 would fail it).
waitForTask()
Section titled “waitForTask()”waitForTask(
taskId,opts?):Promise<N11TaskDetails>
Defined in: sdks/n11/src/resources/products.ts:295
Poll getTask until the task is PROCESSED or REJECT.
Parameters
Section titled “Parameters”taskId
Section titled “taskId”string
N11TaskPollOptions = {}
Returns
Section titled “Returns”Promise<N11TaskDetails>
Throws
Section titled “Throws”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.