Ürün Oluşturma
/sellers/{sellerId}/productsTek istekte en fazla 1000 kalem gönderilebilir. Oluşturulan ürünler onay bekliyor durumunda başlar.
İstek gövdesi (items[] içindeki her kalem)
| Alan | Tip | Zorunlu | Açıklama |
|---|---|---|---|
| barcode | string | Evet | Varyanta ait benzersiz barkod (en fazla 40 karakter). |
| title | string | Evet | Ürün adı (3-200 karakter). |
| productMainId | string | Evet | Ana ürün/model kodu; varyantları gruplar. |
| brandId | uuid | Hayır | Marka listesinden alınan ID. |
| categoryId | uuid | Evet | Kategori ağacından alt (leaf) kategori ID. |
| quantity | int | Evet | Stok adedi. |
| stockCode | string | Evet | Satıcı stok kodu (SKU). |
| listPrice | number | Evet | Liste (üstü çizili) fiyat, TL. |
| salePrice | number | Evet | Satış fiyatı, TL. |
| vatRate | number | Hayır | KDV oranı (0, 1, 10, 20). Varsayılan 10. |
| description | string | Hayır | Ürün açıklaması (HTML desteklenir). |
| dimensionalWeight | number | Hayır | Desi. |
| images | array | Hayır | [{ url }] en fazla 8 görsel; ilk görsel kapak olur. |
| attributes | array | Hayır | [{ attributeId, attributeValueId | customAttributeValue }] |
curl -X POST "https://takimelbise.com/api/public/integration/sellers/100001/products" \
-H "Authorization: Basic $(echo -n 'API_KEY:API_SECRET' | base64)" \
-H "User-Agent: 100001 - SelfIntegration" \
-H "Content-Type: application/json" \
-d '{"items":[{"barcode":"TE-LAC-48","title":"Slim Fit Lacivert Takım Elbise","productMainId":"TE-LAC","brandId":"b1c2…","categoryId":"c3d4…","quantity":25,"stockCode":"TE-LAC-48","listPrice":4999.9,"salePrice":3499.9,"vatRate":10,"description":"<p>%100 yün kumaş</p>","images":[{"url":"https://cdn.ornek.com/te-lac-1.jpg"}],"attributes":[{"attributeId":"a1…","attributeValueId":"v48…"}]}]}'{
"batchRequestId": "7f0d6a1e-…"
}