Skip to content

N11Category

Defined in: sdks/n11/src/types/category.ts:8

One node of the n11 category tree (GET /cdn/categories).

The whole tree comes back in one call; a leaf has subCategories: null on the wire (observed on prod, 2026-10-10), normalised here to an empty array plus leaf: true. Products must use a leaf id.

id: string

Defined in: sdks/n11/src/types/category.ts:9


leaf: boolean

Defined in: sdks/n11/src/types/category.ts:14

true when n11 sends no sub-categories — the only ids products may use.


name: string

Defined in: sdks/n11/src/types/category.ts:12


optional parentId?: string

Defined in: sdks/n11/src/types/category.ts:11

Absent on the root categories (parentId: null on the wire).


raw: Record<string, unknown>

Defined in: sdks/n11/src/types/category.ts:17

Untouched raw node, without its subCategories (those are normalised above).


subCategories: N11Category[]

Defined in: sdks/n11/src/types/category.ts:15

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.