Skip to content

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.

new CategoriesResource(transport): CategoriesResource

Defined in: sdks/n11/src/resources/categories.ts:81

N11Transport

CategoriesResource

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.

string | number

Promise<N11CategoryAttributes>


list(): Promise<N11Category[]>

Defined in: sdks/n11/src/resources/categories.ts:84

The full category tree, in one call (GET /cdn/categories).

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.