CategoryAttribute
Defined in: sdks/trendyol/src/types/category.ts:41
A required or optional attribute for products in a given category.
Use these when constructing a createProduct V2 payload — the API rejects
products that omit required attributes.
Properties
Section titled “Properties”allowCustom
Section titled “allowCustom”allowCustom:
boolean
Defined in: sdks/trendyol/src/types/category.ts:48
Whether the attribute accepts custom text values in addition to the listed ones.
allowMultipleAttributeValues?
Section titled “allowMultipleAttributeValues?”
optionalallowMultipleAttributeValues?:boolean
Defined in: sdks/trendyol/src/types/category.ts:57
V2-only: whether the attribute accepts multiple values at once.
Present on responses from the V2 getCategoryAttributes endpoint; absent on V1.
categoryId?
Section titled “categoryId?”
optionalcategoryId?:string
Defined in: sdks/trendyol/src/types/category.ts:45
The category this attribute belongs to (echoed back by Trendyol).
id:
string
Defined in: sdks/trendyol/src/types/category.ts:42
name:
string
Defined in: sdks/trendyol/src/types/category.ts:43
required
Section titled “required”required:
boolean
Defined in: sdks/trendyol/src/types/category.ts:46
slicer
Section titled “slicer”slicer:
boolean
Defined in: sdks/trendyol/src/types/category.ts:52
Whether the attribute is used as a price slicer (e.g. size for shoes).
values
Section titled “values”values:
CategoryAttributeValue[]
Defined in: sdks/trendyol/src/types/category.ts:67
Allowed values for this attribute.
NOTE: Trendyol’s live API often omits this field on the getCategoryAttributes
response — the endpoint returns attribute metadata + flags, not the full value
catalog. In that case values is an empty array. If allowCustom is true,
any custom text is accepted; otherwise use client.categories.getAttributeValues(categoryId, attributeId)
to fetch the catalog from the dedicated V2 endpoint.
varianter
Section titled “varianter”varianter:
boolean
Defined in: sdks/trendyol/src/types/category.ts:50
Whether the attribute participates in product variants (e.g. color, size).
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.