CategoriesResource
Defined in: sdks/hepsiburada/src/resources/categories.ts:25
Hepsiburada Categories (katalog-urun-entegrasyonu — category surface).
Service base URL: mpop[-sit].hepsiburada.com with /product/api/
prefix routed to the catalog category microservice.
Three operations: list categories, list attributes (leaf-only), list attribute values (for enum-style attributes).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CategoriesResource(
transport,limiter?):CategoriesResource
Defined in: sdks/hepsiburada/src/resources/categories.ts:28
Parameters
Section titled “Parameters”transport
Section titled “transport”HepsiburadaTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”CategoriesResource
Methods
Section titled “Methods”getAttributes()
Section titled “getAttributes()”getAttributes(
categoryId,params?):Promise<CategoryAttribute[]>
Defined in: sdks/hepsiburada/src/resources/categories.ts:59
Get attribute definitions for a leaf category.
Parameters
Section titled “Parameters”categoryId
Section titled “categoryId”string | number
params?
Section titled “params?”GetAttributesParams = {}
Returns
Section titled “Returns”Promise<CategoryAttribute[]>
Throws
Section titled “Throws”when categoryId is missing, or when
Hepsiburada returns success: false (e.g. non-leaf category, code 1003).
getAttributeValues()
Section titled “getAttributeValues()”getAttributeValues(
categoryId,attributeId):Promise<CategoryAttributeValue[]>
Defined in: sdks/hepsiburada/src/resources/categories.ts:89
Get the allowed values for an enum-style attribute on a leaf category.
Parameters
Section titled “Parameters”categoryId
Section titled “categoryId”string | number
attributeId
Section titled “attributeId”string | number
Returns
Section titled “Returns”Promise<CategoryAttributeValue[]>
Throws
Section titled “Throws”when either id is missing or when Hepsiburada rejects (success: false).
list()
Section titled “list()”list(
params?):Promise<CatalogPage<Category>>
Defined in: sdks/hepsiburada/src/resources/categories.ts:36
List the category tree. ~27,000 categories total — use leaf: true to filter to listable ones.
Parameters
Section titled “Parameters”params?
Section titled “params?”ListCategoriesParams = {}
Returns
Section titled “Returns”Promise<CatalogPage<Category>>
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.