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.
Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
ProductAttribute[]
Defined in: sdks/trendyol/src/types/product.ts:31
barcode
Section titled “barcode”barcode:
string
Defined in: sdks/trendyol/src/types/product.ts:29
commission?
Section titled “commission?”
optionalcommission?:number
Defined in: sdks/trendyol/src/types/product.ts:30
onSale?
Section titled “onSale?”
optionalonSale?:boolean
Defined in: sdks/trendyol/src/types/product.ts:33
productUrl?
Section titled “productUrl?”
optionalproductUrl?: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.
stock?
Section titled “stock?”
optionalstock?:number
Defined in: sdks/trendyol/src/types/product.ts:35
Stock quantity (when the response includes stock data).
variantId
Section titled “variantId”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.