Skip to content

CreateProductV2Input

Defined in: sdks/trendyol/src/types/product-write.ts:47

Payload for one item in createProducts (V2).

Trendyol requires all 14 fields listed in the spec — the type makes them non-optional so missing required fields fail at compile time, not at runtime after a failed batch.

attributes: ProductAttributeV2Input[]

Defined in: sdks/trendyol/src/types/product-write.ts:75

Required attributes for the category — fetch via categories.getAttributes.


barcode: string

Defined in: sdks/trendyol/src/types/product-write.ts:49

Barcode (≤40 chars, allows ., -, _).


brandId: number

Defined in: sdks/trendyol/src/types/product-write.ts:55

Trendyol numeric brand ID (from brands.list).


categoryId: number

Defined in: sdks/trendyol/src/types/product-write.ts:57

Trendyol numeric category ID (from categories.list).


optional deliveryOption?: DeliveryOptionInput

Defined in: sdks/trendyol/src/types/product-write.ts:77

Delivery duration / fast-delivery type.


description: string

Defined in: sdks/trendyol/src/types/product-write.ts:65

HTML-friendly product description (≤30 000 chars).


dimensionalWeight: number

Defined in: sdks/trendyol/src/types/product-write.ts:63

Desi value used for shipping cost calculation.


images: ProductImageInput[]

Defined in: sdks/trendyol/src/types/product-write.ts:71

1–8 image URLs.


listPrice: number

Defined in: sdks/trendyol/src/types/product-write.ts:67

List price (PSF). Must be ≥ salePrice.


optional lotNumber?: string | null

Defined in: sdks/trendyol/src/types/product-write.ts:79

Lot/SKT info (≤100 chars).


productMainId: string

Defined in: sdks/trendyol/src/types/product-write.ts:53

Parent product ID for variant grouping (≤40 chars).


quantity: number

Defined in: sdks/trendyol/src/types/product-write.ts:59

Initial stock quantity.


optional returningAddressId?: number

Defined in: sdks/trendyol/src/types/product-write.ts:83

Returning warehouse ID.


salePrice: number

Defined in: sdks/trendyol/src/types/product-write.ts:69

Sale price (TSF).


optional shipmentAddressId?: number

Defined in: sdks/trendyol/src/types/product-write.ts:81

Shipment warehouse ID (from suppliers.getAddresses).


stockCode: string

Defined in: sdks/trendyol/src/types/product-write.ts:61

Seller-side stock code (≤100 chars).


title: string

Defined in: sdks/trendyol/src/types/product-write.ts:51

Title (≤100 chars).


vatRate: number

Defined in: sdks/trendyol/src/types/product-write.ts:73

VAT rate as integer percent (0, 1, 10, 20).

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.