Skip to content

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).

new CategoriesResource(transport, limiter?): CategoriesResource

Defined in: sdks/hepsiburada/src/resources/categories.ts:29

HepsiburadaTransport

TokenBucketRateLimiter

CategoriesResource

getAttributes(categoryId, params?): Promise<CategoryAttribute[]>

Defined in: sdks/hepsiburada/src/resources/categories.ts:73

Get attribute definitions for a leaf category.

string | number

GetAttributesParams = {}

Promise<CategoryAttribute[]>

when categoryId is missing, or when Hepsiburada returns success: false (e.g. non-leaf category, code 1003).


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.

string | number

string | number

Promise<CategoryAttributeValue[]>

when either id is missing or when Hepsiburada rejects (success: false).


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.

ListCategoriesParams = {}

Promise<CatalogPage<Category>>

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.