ürün Kaydetme (Save Product)
Yeni ürün oluşturmak veya mevcut ürünü güncellemek için kullanılır. ürün kodu “productSellerCode” adıyla veirlen data bu mağaza için bir kayıtlı bir ürünü gösteriyorsa bu ürün güncellenir, aksi halde yeni bir ürün oluşturulur.
Öncelikle ürüne varyant eklemek için GetCategoryAttributes ve GetCategoryAttributesId servislerinin category.attributeList.attribute.variant değeri “true” olan kategori özelliklerine varyant iletebilirsiniz.
Product.Attribute.Attribute.Value alanında GetCategoryAttributeValue metodu ile gelen değerler dışında da değer girebilirsiniz. GetCategoryAttributeValue metoduyla gelmeyen bir değer girdiğiniz durumda ürün katalogda onay sürecine girecektir.
SaveProduct ile oluşturduğunuz ürünler aşağıdaki kontrol süreçlerinden geçerek n11 katalogu ile doğrudan eşleşerek satışa açılmaktadır. ürün n11 katalogu ile eşleşmiyor ise response başarılı sonuç verecektir. Katalog onay sürecinde sonra satışa açılacaktır.
1. Kontrol product.stockItems.stockItem.n11CatalogId değeri dolu ise n11 katalogundan doğrudan satışa açılır.
2.Kontrol Catalog ID boş ise GTIN(Barkod) product.stockItems.stockItem.gtin alanı değer girilmelidir. product.stockItems.stockItem.gtin değeri n11 katalogu ile eşleşme aranır.
3. Kontrolde GTIN ve Katalog ID değerlerinden sonuç bulunamaz ise product.title n11 katalogu ile %99 eşleştirme ile doğrudan satışa açılmaktadır
Eğer product.title ile n11 katalogundan bulunmuyor ise ürün katalog ekibinin onayına gönderilecektir. Katalog ekibi tarafından onaylanan ürün herhangi bir işlem yapılmadan direkt satışa açılacaktır.
category.attributeList.attribute.variant değeri “true” olan ürünlere stockItems bilgilerine stok girişi yaparak görsel eklemeniz gerekmektedir.
product.stockItems.stockItem.images.image.url; ürün görsellerine ait URL adresi listesidir. Görsel url adresleri SSL sertifikalı "https" formatında adresler olmalıdır. Bir stokItem için maksimum 5 adet görsel eklenebilir.Yüklenen fotoğrafın bir kenarının maksimum 5000 pixel olması gerekmektedir.
Varyantlı/ varyantsız ürün gönderimlerimde optionprice değerinin dolu iletilmesi gerekmektedir.
“category.id” içinde ürünün dahil olacağı kategori N11 ID bilgisi yer almalıdır, kategori listesi CategoryService GetParentCategory ile başlayıp GetSubCategories metodları ile alınabilir, ürün dahil olacağı kategori en alt seviyede olmalıdır.
"templateName" içinde sistemde bu mağaza için tanımlı olan bir teslimat şablonu kullanılmalıdır. Teslimat şablonları tanımlamak için Satış Ofisi ekranlarından Hesabım > Teslimat Bilgileri menü adımları takip edilerek manuel olarak oluşturulabilir veya ShipmentService içinden createOrUpdateShipmentTemplate metodu kullanılabilir.
SaveProductRequest
Auth | Bkz: Yetkilendirme | |
product.productSellerCode | ürün Mağaza Kodu | |
product.title | Bkz: title | |
product.subtitle | Bkz: subtitle | |
product.description | ürün açıklama bilgileri (HTML olabilir) | |
product.attributes.attribute | ürün özelliklerinin adı ve değeri girilen alan | |
product.category.id | ürün kategori numarası | |
product.price | ürün baz fiyatı | |
product.currencyType | ürün liste fiyatı para birimi | |
product.images.image.url | ürün resmi URL adresi | |
product.images.image.order | ürün resmi gösterilme sırası | |
product.productionDate | ürün üretim tarihi (dd/MM/yyyy) | |
product.expirationDate | ürün son kullanma tarihi (dd/MM/yyyy) | |
product.productCondition | Bkz: ürün Durumu | |
product.preparingDay | ürün kargoya verilme süresi (gün olarak) | |
product. domestic | ürünün yerli üretim olup olmadığını belirtir.Boolean olarak true/false değeri alır. | |
product.discount | Bkz: ürün İndirim Bilgisi | |
product.shipmentTemplate | Teslimat Şablon Adı | |
product.stockItems.stockItem.quantity | Stok miktarı | |
product.stockItems.stockItem.sellerStockCode | Mağaza ürün stok kodu | |
product.stockItems.stockItem.attributes.attribute.name | Eğer ürünün seçenekleri varsa bu bilgiler girilir, isim olarak kendi belirlediğiniz bir değerleri kullanabilirsiniz. | |
product.stockItems.stockItem.attributes.attribute.value | Eğer ürünün seçenekleri varsa bu bilgiler girilir, değer olarak kendi belirlediğiniz bir değerleri kullanabilirsiniz. | |
product.stockItems.stockItem.optionPrice | ürün stok biriminin liste fiyatı | |
product.stockItems.stockItem.bundle | Birlikte satış yapılan ürünler | |
product.stockItems.stockItem.mpn | ürünün üretici parça numarası | |
product.stockItems.stockItem.gtin | ürünün global ticari öğe numarası | |
product.stockItems.stockItem.oem | Parça/ürün bağlantı numarası | |
product.stockItems.stockItem.n11CatalogId | ürünün N11 katalog numarası | |
specialProductInfoList.specialProductInf.key | Seyahat kategori ürün açıklama bilgilerinin girildiği alan. Bu Alana; TurProgrami, IptalIadeKosullari,EkHizmetler bilgileri girilerek açıklama oluşturulur | |
specialProductInfoList.specialProductInf.value | Key’e karşılık gelen html verisi | |
product.groupAttribute | ürünün gruplandığı özellik adı | |
product.groupItemCode | ürünün gruplandığı özellik grubunun adı (satıcı verir) | |
product.itemName | ürünün gruplandığı özellik değeri |
*Bold alanlar zorunlu alanlardır.
SaveProductResponse
result | Bkz: Result |
product | Bkz: ürün Özet Bilgisi |
SaveProduct Varyantlı Ürün Örnek Çağrı
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.n11.com/ws/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch:SaveProductRequest>
<auth>
<appKey>***</appKey>
<appSecret>***</appSecret>
</auth>
<product>
<productSellerCode>Deneme11</productSellerCode>
<title>Varyantlı Deneme Ürün n11</title>
<description>Hello World!</description>
<domestic></domestic>
<category>
<id>1001899</id>
</category>
<specialProductInfoList>
<!--1 or more repetitions:-->
<specialProductInfo>
<key>1</key>
<value>1</value>
</specialProductInfo>
</specialProductInfoList>
<price>15000</price>
<currencyType>1</currencyType>
<approvalStatus>1</approvalStatus>
<groupAttribute></groupAttribute>
<groupItemCode></groupItemCode>
<itemName></itemName>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Marka</name>
<value>Puma</value>
</attribute>
</attributes>
<saleStartDate></saleStartDate>
<saleEndDate></saleEndDate>
<productionDate></productionDate>
<expirationDate></expirationDate>
<productCondition>1</productCondition>
<preparingDay>3</preparingDay>
<discount>
<type></type>
<value></value>
</discount>
<shipmentTemplate>1</shipmentTemplate>
<stockItems>
<!--1 or more repetitions:-->
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>2023-0</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Beden</name>
<value>XS</value>
</attribute>
</attributes>
<optionPrice>15000</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>2023-1</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Beden</name>
<value>S</value>
</attribute>
</attributes>
<optionPrice>15000</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>2023-2</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Beden</name>
<value>M</value>
</attribute>
</attributes>
<optionPrice>15000</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>2023-3</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Beden</name>
<value>L</value>
</attribute>
</attributes>
<optionPrice>15000</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>2023-4</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Beden</name>
<value>XL</value>
</attribute>
</attributes>
<optionPrice>15000</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
</stockItems>
<unitInfo>
<unitType></unitType>
<unitWeight></unitWeight>
</unitInfo>
<maxPurchaseQuantity></maxPurchaseQuantity>
<sellerNote></sellerNote>
</product>
</sch:SaveProductRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:SaveProductResponse xmlns:ns3="http://www.n11.com/ws/schemas">
<result>
<status>success</status>
</result>
<product>
<currencyAmount>15000.00</currencyAmount>
<currencyType>1</currencyType>
<displayPrice>15000.00</displayPrice>
<isDomestic>false</isDomestic>
<id>576875242</id>
<price>15000.00</price>
<productSellerCode>Deneme11</productSellerCode>
<approvalStatus>1</approvalStatus>
<saleStatus>2</saleStatus>
<stockItems>
<stockItem>
<bundle>false</bundle>
<currencyAmount>15000.00</currencyAmount>
<displayPrice>15000.00</displayPrice>
<mpn/>
<oem/>
<optionPrice>15000.00</optionPrice>
<n11CatalogId>91092203</n11CatalogId>
<sellerStockCode>2023-4</sellerStockCode>
<attributes>
<attribute>
<id>354078910</id>
<name>Beden</name>
<value>XL</value>
</attribute>
</attributes>
<id>127202560981</id>
<images/>
<quantity>1</quantity>
<version>17</version>
</stockItem>
<stockItem>
<bundle>false</bundle>
<currencyAmount>15000.00</currencyAmount>
<displayPrice>15000.00</displayPrice>
<mpn/>
<oem/>
<optionPrice>15000.00</optionPrice>
<n11CatalogId>91092192</n11CatalogId>
<sellerStockCode>2023-2</sellerStockCode>
<attributes>
<attribute>
<id>354078910</id>
<name>Beden</name>
<value>M</value>
</attribute>
</attributes>
<id>127202560982</id>
<images/>
<quantity>1</quantity>
<version>17</version>
</stockItem>
<stockItem>
<bundle>false</bundle>
<currencyAmount>15000.00</currencyAmount>
<displayPrice>15000.00</displayPrice>
<mpn/>
<oem/>
<optionPrice>15000.00</optionPrice>
<n11CatalogId>91092202</n11CatalogId>
<sellerStockCode>2023-3</sellerStockCode>
<attributes>
<attribute>
<id>354078910</id>
<name>Beden</name>
<value>L</value>
</attribute>
</attributes>
<id>127202560983</id>
<images/>
<quantity>1</quantity>
<version>17</version>
</stockItem>
<stockItem>
<bundle>false</bundle>
<currencyAmount>15000.00</currencyAmount>
<displayPrice>15000.00</displayPrice>
<mpn/>
<oem/>
<optionPrice>15000.00</optionPrice>
<n11CatalogId>91092201</n11CatalogId>
<sellerStockCode>2023-1</sellerStockCode>
<attributes>
<attribute>
<id>354078910</id>
<name>Beden</name>
<value>S</value>
</attribute>
</attributes>
<id>127202560984</id>
<images/>
<quantity>1</quantity>
<version>17</version>
</stockItem>
<stockItem>
<bundle>false</bundle>
<currencyAmount>15000.00</currencyAmount>
<displayPrice>15000.00</displayPrice>
<mpn/>
<oem/>
<optionPrice>15000.00</optionPrice>
<n11CatalogId>91093210</n11CatalogId>
<sellerStockCode>2023-0</sellerStockCode>
<attributes>
<attribute>
<id>354078910</id>
<name>Beden</name>
<value>XS</value>
</attribute>
</attributes>
<id>127202563221</id>
<images/>
<quantity>1</quantity>
<version>7</version>
</stockItem>
</stockItems>
<title>Varyantlı Deneme Ürün N11</title>
<unitInfo/>
</product>
</ns3:SaveProductResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
SaveProduct Varyantsız Ürün Örnek Çağrı
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.n11.com/ws/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch:SaveProductRequest>
<auth>
<appKey>***</appKey>
<appSecret>***</appSecret>
</auth>
<product>
<productSellerCode>Deneme12</productSellerCode>
<title>Varyantsız Bisküvi Deneme Ürünü n11</title>
<description>Hello World!</description>
<domestic></domestic>
<category>
<id>1001426</id>
</category>
<specialProductInfoList>
<!--1 or more repetitions:-->
<specialProductInfo>
<key>1</key>
<value>1</value>
</specialProductInfo>
</specialProductInfoList>
<price>15000</price>
<currencyType>1</currencyType>
<approvalStatus>1</approvalStatus>
<groupAttribute></groupAttribute>
<groupItemCode></groupItemCode>
<itemName></itemName>
<attributes>
<!--1 or more repetitions:-->
<attribute>
<name>Marka</name>
<value>Oreo</value>
</attribute>
<attribute>
<name>Ürün Miktarı</name>
<value>330 G</value>
</attribute>
</attributes>
<saleStartDate></saleStartDate>
<saleEndDate></saleEndDate>
<productionDate></productionDate>
<expirationDate></expirationDate>
<productCondition>1</productCondition>
<preparingDay>3</preparingDay>
<discount>
<type></type>
<value></value>
</discount>
<shipmentTemplate>1</shipmentTemplate>
<stockItems>
<!--1 or more repetitions:-->
<stockItem>
<bundle></bundle>
<mpn></mpn>
<gtin></gtin>
<n11CatalogId></n11CatalogId>
<oem></oem>
<quantity>1</quantity>
<sellerStockCode>20233</sellerStockCode>
<attributes>
<!--1 or more repetitions:-->
</attributes>
<optionPrice>1500</optionPrice>
<images>
<!--1 or more repetitions:-->
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>1</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>2</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>3</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>4</order>
</image>
<image>
<url>https://www.google.com/logos/doodles/2023/labour-day-2023-6753651837109865-2x.png</url>
<order>5</order>
</image>
</images>
</stockItem>
</stockItems>
<unitInfo>
<unitType></unitType>
<unitWeight></unitWeight>
</unitInfo>
<maxPurchaseQuantity></maxPurchaseQuantity>
<sellerNote></sellerNote>
</product>
</sch:SaveProductRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:SaveProductResponse xmlns:ns3="http://www.n11.com/ws/schemas">
<result>
<status>success</status>
</result>
<product>
<currencyAmount>1500.00</currencyAmount>
<currencyType>1</currencyType>
<displayPrice>1500.00</displayPrice>
<isDomestic>false</isDomestic>
<id>576880883</id>
<price>1500.00</price>
<productSellerCode>Deneme12</productSellerCode>
<approvalStatus>6</approvalStatus>
<saleStatus>3</saleStatus>
<stockItems>
<stockItem>
<bundle>false</bundle>
<currencyAmount>1500.00</currencyAmount>
<displayPrice>1500.00</displayPrice>
<gtin/>
<mpn/>
<oem/>
<optionPrice>1500.00</optionPrice>
<n11CatalogId>91101474</n11CatalogId>
<sellerStockCode>20233</sellerStockCode>
<attributes/>
<id>127202568006</id>
<images/>
<quantity>1</quantity>
<version>1</version>
</stockItem>
</stockItems>
<title>Varyantsız Bisküvi Deneme Ürünü N11</title>
<unitInfo/>
</product>
</ns3:SaveProductResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
SaveProduct Örnek Çağrı (JAVA)
public static void main (String []args) {
String strAppKey = "64155786-da91-4204-8735-443d17acf808";
String strAppSecret = "***";
String strUrl = "https://www.google.com/logos/doodles/2016/bahrain-national-day-2016-6221988579246080-hp2x.jpg";
String strSellerStockCode = "MaviKod-APIDeneme432100000000";
String strSellerStockCode1 = "KırmızıKod-APIDeneme4321000000000";
String strAttributeName = "Marka";
String strAttributeValue = "Apple";
String strSkuAttributeKey = "Renk";
String strSkuAttributeValue = "Mavi";
String strSkuAttributeValue1 = "Kırmızı";
String strProductTitle = "Lorem ipsum";
String strProductSubtitle = "Lorem ipsum dolor sit amet";
String strProductSellerCode = "APIDeneme432101000000000";
String strProductCondition = "1";
String strShipmentTemplate = "AGT";
String strProductDescription = "Hello World!";
String strGtin = "0190198066473";
String strGtin1 = "0190198066474";
Long n11CatalogId = null;
Long n11CatalogId1 = null;
int setOrderValue = 1;
int quantityValue = 10;
int quantityValue1 = 20;
int categoryIdValue = 592;
int priceValue = 50;
int currencyTypeValue = 1;
int approvalStatusValue = 1;
int preparingDayValue = 3;
Authentication authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);
ProductImage productImage = new ProductImage();
ProductImageList productImageList = new ProductImageList();
productImage.setUrl(strUrl);
productImage.setOrder(BigInteger.valueOf(setOrderValue));
productImageList.getImage().add(productImage);
ProductAttributeRequestList skuAttributeRequestList = new ProductAttributeRequestList();
ProductAttributeRequest skuAttributeRequest = new ProductAttributeRequest();
skuAttributeRequest.setName(strSkuAttributeKey);
skuAttributeRequest.setValue(strSkuAttributeValue);
skuAttributeRequestList.getAttribute().add(skuAttributeRequest);
ProductAttributeRequestList skuAttributeRequestList1 = new ProductAttributeRequestList();
ProductAttributeRequest skuAttributeRequest1 = new ProductAttributeRequest();
skuAttributeRequest1.setName(strSkuAttributeKey);
skuAttributeRequest1.setValue(strSkuAttributeValue1);
skuAttributeRequestList1.getAttribute().add(skuAttributeRequest1);
ProductSkuRequestList stockItems = new ProductSkuRequestList();
ProductSkuRequest sku = new ProductSkuRequest();
sku.setSellerStockCode(strSellerStockCode);
sku.setAttributes(skuAttributeRequestList);
sku.setQuantity(BigInteger.valueOf(quantityValue));
sku.setGtin(strGtin);
sku.setPimsId(n11CatalogId);
ProductSkuRequest sku1 = new ProductSkuRequest();
sku1.setSellerStockCode(strSellerStockCode1);
sku1.setAttributes(skuAttributeRequestList1);
sku1.setQuantity(BigInteger.valueOf(quantityValue1));
sku1.setGtin(strGtin1);
sku1.setPimsId(n11CatalogId);
stockItems.getStockItem().add(sku);
stockItems.getStockItem().add(sku1);
CategoryRequest categoryRequest = new CategoryRequest();
categoryRequest.setId(categoryIdValue);
ProductAttributeRequest productAttribute = new ProductAttributeRequest();
productAttribute.setName(strAttributeName);
productAttribute.setValue(strAttributeValue);
ProductAttributeRequestList productAttributeRequestList = new ProductAttributeRequestList();
productAttributeRequestList.getAttribute().add(productAttribute);
ProductRequest productRequest = new ProductRequest();
productRequest.setTitle(strProductTitle);
productRequest.setSubtitle(strProductSubtitle);
productRequest.setDescription(strProductDescription);
productRequest.setCategory(categoryRequest);
productRequest.setProductSellerCode(strProductSellerCode);
productRequest.setPrice(BigDecimal.valueOf(priceValue));
productRequest.setCurrencyType(BigInteger.valueOf(currencyTypeValue));
productRequest.setImages(productImageList);
productRequest.setApprovalStatus(BigInteger.valueOf(approvalStatusValue));
productRequest.setPreparingDay(BigInteger.valueOf(preparingDayValue));
productRequest.setStockItems(stockItems);
productRequest.setProductCondition(strProductCondition);
productRequest.setShipmentTemplate(strShipmentTemplate);
productRequest.setAttributes(productAttributeRequestList);
SaveProductRequest saveProductRequest = new SaveProductRequest();
saveProductRequest.setAuth(authentication);
saveProductRequest.setProduct(productRequest);
ProductServicePort port = new ProductServicePortService().getProductServicePortSoap11();
SaveProductResponse response = port.saveProduct(saveProductRequest);
System.out.println("Saving product " + response.getProduct().getId() + " is " + response.getResult().getStatus().getValue());
Yetkilendirme (Authentication)
auth.appKey | Servislere erişim için kullanılacak uygulama anahtarı |
auth.appSecret | Servislere erişim için kullanılacak uygulama şifresi |
Sonuç Durum Bilgisi (Result)
result.status | İşlem sonucu durum bilgisini gösterir. “success” ve “failure” durum bilgilerini döner. |
Sayfalandırma (Pagination)
pagingData.currentPage | Gösterilen sayfa numarası (currentpage 0 ile başlar) |
pagingData.pageSize | Sayfadaki madde sayısı |
pagingData.totalCount* | Toplam madde sayısı |
pagingData.pageCount* | Toplam sayfa sayısı |
*Request yaparken kullanılmaz, çağrı yapan tarafa response içinde döner.
ürün Özet Bilgisi (Product Summary Data)
product.currencyAmount | Görüntülenen ürün fiyatının para birimi tutarı |
product.currencyType | Görüntülenen ürün fiyatının para birimi cinsi 1: TL 2: USD 3: EUR |
product.displayPrice | Görüntülenen ürün fiyatı (ürünün indirimler sonucu tanımlanan son fiyat hali) |
product.id | ürünün N11 ID si |
product.productSellerCode | Mağaza ürün kodu |
product.title | ürün başlığı |
product.subtitle | ürün alt başlığı |
product.oldPrice | ürüne ait eski baz fiyatı (Güncelleme yapan metodlar sonrasında döner) |
product.price | ürünün baz fiyatı |
product.displayPrice | Görüntülenen ürün fiyatı (ürünün indirimler sonucu tanımlanan son fiyat hali) |
product.saleStatus | 1: Satış Öncesi(Before_Sale) 2: Satışta(On_Sale) 3: Stok yok (Out of_Stock) 4: Satışa kapalı (Sale_Closed) |
product.approvalStatus | ürün onay durumu: 1: Aktif (Satışta) 2: Beklemede 3: Yasaklı |
product.stockItems.stockItem.id | ürün stok N11 ID si |
product.stockItems.stockItem.quantity | ürün stok miktarı |
product.stockItems.stockItem.version | ürün stok versiyon numarası |
product.stockItems.stockItem.currencyAmount | ürün stok biriminin para birimi cinsinden tutarı |
product.stockItems.stockItem.displayPrice | ürün stok biriminin görüntülenen ürün fiyatı (ürünün satıcı indirimi sonucu tanımlanan son fiyat hali) |
product.stockItems.stockItem.bundle | Birlikte satış yapılan ürünler |
product.stockItems.stockItem.mpn | ürünün üretici parça numarası |
product.stockItems.stockItem.gtin | ürünün global ticari öğe numarası |
product.stockItems.stockItem.oem | Parça/ürün bağlantı numarası |
product.stockItems.stockItem.n11CatalogId | ürünün N11 katalog numarası |
product.stockItems.stockItem.sellerStockCode | ürün stok mağaza kodu |
product.stockItems.stockItem.oldOptionPrice | ürün stok biriminin önceki liste fiyatı (Güncelleme yapan metodlar sonrasında döner) |
product.stockItems.stockItem.optionPrice | ürün stok biriminin liste fiyatı |
product.stockItems.stockItem.attributes.attribute.name | Stok tanımının olduğu seçenek adı |
product.stockItems.stockItem.attributes.attribute.value | Stok tanımının olduğu seçenek değeri |
ürün Başlığı (Title)
product.title | ürün sayfasında görünecek başlık, en fazla 150 karakter olmalıdır. |
Onay Durumu (Approval Status)
productSearch.approvalStatus | ürünün onay durumu “Active”: Satışta olan ürünler “Suspended”: Beklemede olan ürünler “Prohibited”: Yasaklı olan ürünler “Unlisted”: Liste dışı ürünler “WaitingForApproval”: Onay bekleyen ürünler “Rejected”: Reddedilen ürünler “UnapprovedUpdate”: Güncelleme onayı bekleyen ürünler |
ürün İndirim Bilgisi (Product Discount Data)
discount.discountType | Mağaza İndirim Tipi: 1: İndirim Tutarı Cinsinden 2: İndirim Oranı Cinsinden 3: İndirimli Fiyat Cinsinden |
discount.discountValue | İndirim Miktarı (indirim tipinde verilen parametreye göre) |
discount.discountStartDate | Mağaza indirimi başlama tarihi |
discount.discountEndDate | Mağaza indirimi bitiş tarihi |