CategoriesResource
Defined in: sdks/hepsiburada/src/resources/categories.ts:26
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:29
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:73
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:123
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:49
List the category tree. ~27,000 categories total — use leaf: true to
filter to listable ones.
Returns a CatalogPage — the shared OffsetPage shape (items,
totalCount, pageCount, …) mapped from Hepsiburada’s Spring envelope,
so it plugs into paginateOffset (pass limit; offset must be a
multiple of it because the API pages by number). The legacy Spring fields
(data, totalElements, …) are still present but deprecated.
Parameters
Section titled “Parameters”params?
Section titled “params?”ListCategoriesParams = {}
Returns
Section titled “Returns”Promise<CatalogPage<Category>>
Throws
Section titled “Throws”when both page/size and offset/limit are
given, or offset is not a multiple of limit.
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.