Skip to content

CategoryAttribute

Defined in: sdks/hepsiburada/src/types/category.ts:102

One attribute definition for a leaf category (an element of data.baseAttributes[] / data.attributes[] / data.variantAttributes[] of GET /product/api/categories/{categoryId}/attributes — spec mpop-catalog.json, confirmed on the prod wire 2026-10).

optional externalName?: string

Defined in: sdks/hepsiburada/src/types/category.ts:116


optional group?: "base" | "category" | "variant"

Defined in: sdks/hepsiburada/src/types/category.ts:129

Which bucket this attribute came from. Hepsiburada returns a leaf category’s attributes in three groups — base (common), category (category-specific), and variant (variant-defining) — flattened into one list here, with this tag so callers can tell them apart.


optional id?: string | number

Defined in: sdks/hepsiburada/src/types/category.ts:104

Attribute id — a string on the wire; kept wide for back-compat.


optional mandatory?: boolean

Defined in: sdks/hepsiburada/src/types/category.ts:107

Whether a product in this category must set the attribute.


optional multiValue?: boolean

Defined in: sdks/hepsiburada/src/types/category.ts:111

Whether the attribute accepts more than one value.


optional name?: string

Defined in: sdks/hepsiburada/src/types/category.ts:105


raw: Record<string, unknown>

Defined in: sdks/hepsiburada/src/types/category.ts:131

Untouched raw attribute object.


optional type?: string

Defined in: sdks/hepsiburada/src/types/category.ts:109

Attribute value type, passed through as Hepsiburada spells it.


optional values?: unknown[]

Defined in: sdks/hepsiburada/src/types/category.ts:122

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.