Skip to content

ProductVariant

Defined in: sdks/trendyol/src/types/product.ts:27

A variant of a Trendyol product — the actual purchasable SKU.

Trendyol scopes barcode + stock + commission to the variant level even for products that only have a single variant. To read a product’s barcode use product.variants[0].barcode.

attributes: ProductAttribute[]

Defined in: sdks/trendyol/src/types/product.ts:31


barcode: string

Defined in: sdks/trendyol/src/types/product.ts:29


optional commission?: number

Defined in: sdks/trendyol/src/types/product.ts:30


optional onSale?: boolean

Defined in: sdks/trendyol/src/types/product.ts:33


optional productUrl?: string

Defined in: sdks/trendyol/src/types/product.ts:32


raw: Record<string, unknown>

Defined in: sdks/trendyol/src/types/product.ts:37

Untouched raw response for fields not modeled yet.


optional stock?: number

Defined in: sdks/trendyol/src/types/product.ts:35

Stock quantity (when the response includes stock data).


variantId: string

Defined in: sdks/trendyol/src/types/product.ts:28

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.