CategoriesResource
Defined in: sdks/n11/src/resources/categories.ts:80
n11 category reads (/cdn/…).
Sources: developer.n11.com → “Kategori Ağacı Listeleme” and “Kategori
Özellikleri Listeleme”. Response shapes verified against prod on 2026-10-10.
The pages say only appKey is needed; prod still answers with the key alone,
but the transport sends both headers as the 2025 changelog requires.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CategoriesResource(
transport):CategoriesResource
Defined in: sdks/n11/src/resources/categories.ts:81
Parameters
Section titled “Parameters”transport
Section titled “transport”Returns
Section titled “Returns”CategoriesResource
Methods
Section titled “Methods”getAttributes()
Section titled “getAttributes()”getAttributes(
categoryId):Promise<N11CategoryAttributes>
Defined in: sdks/n11/src/resources/categories.ts:97
Attributes of a leaf category, with their allowed values
(GET /cdn/category/{id}/attribute). An unknown or non-leaf id answers
400 invalidInput (“category … not found”), surfaced as ValidationError.
Parameters
Section titled “Parameters”categoryId
Section titled “categoryId”string | number
Returns
Section titled “Returns”Promise<N11CategoryAttributes>
list()
Section titled “list()”list():
Promise<N11Category[]>
Defined in: sdks/n11/src/resources/categories.ts:84
The full category tree, in one call (GET /cdn/categories).
Returns
Section titled “Returns”Promise<N11Category[]>
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.