SoapAPI Satıcı Ürünü Silme ( DeleteProductById )
Satıcı Ürün Silme Servisi
Ürün servisi için WSDL adresi: https://api.n11.com/ws/ProductService.wsdl
Servis içerisindeki DeleteProductById methodu ile n11 ürün kodu bazlı satıcı ürün silme işlemi yapabilirsiniz.
Dikkat Edilmesi Gerekenler;
- RestAPI GetProductQuery servisinden dönen n11ProductId parametre değerini bu serviste kullanarak satıcı ürün silme işlemini gerçekleştirebilirsiniz.
| Parametre | Parametre Değer | Açıklama |
| Auth.appKey | API Key | |
| Auth.appSecret | API Secret | |
| productId | Integer | n11 Ürün Kodu |
| Parametre (Cevap) | Açıklama |
| result.status | İşlem sonucu durum bilgisini gösterir. “success” ya da “failure” durum bilgilerini döner. |
| product.currencyAmount | Görüntülenen ürün fiyatının para birimi tutarı |
| product.currencyAmount | 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.isDomestic | Yerli mi? |
| product.id | n11 Ürün Kodu |
| product.n11CatalogGroupId | Ürün n11 katalog grup id bilgisi |
| prouct.oldPrice | Ürüne ait eski baz fiyatı (Güncelleme yapan metodlar sonrasında döner) |
| prouct.price | Ürünün baz fiyatı |
| prouct.productSellerCode | Mağaza ürün kodu |
| prouct.approvalStatus | Ürün onay durumu: 1: Aktif (Satışta) 2: Beklemede 3: Yasaklı |
| prouct.saleStatus | 2: Satışta(On_Sale) 3: Stok yok (Out of_Stock) |
| prouct.title | Ürün başlığı |
| prouct.unitInfo | Ürün birimi |
| prouct.stockItems.stockItem.bundle | Birlikte satış yapılan ürünler |
| prouct.stockItems.stockItem.currencyAmount | Ürün stok biriminin para birimi cinsinden tutarı |
| prouct.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) |
| prouct.stockItems.stockItem.optionPrice | Ürün stok biriminin liste fiyatı |
| prouct.stockItems.stockItem.sellerStockCode | Satıcı stok kodu |
| prouct.stockItems.stockItem.attributes | Ürün seçenekleri |
| prouct.stockItems.stockItem.id | Ürün stok N11 ID si |
| prouct.stockItems.stockItem.images | Ürün görselleri |
| prouct.stockItems.stockItem.quantity | Ürün miktarı |
Örnek Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.n11.com/ws/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch:DeleteProductByIdRequest>
<auth>
<appKey>***********</appKey>
<appSecret>****</appSecret>
</auth>
<productId>688290996</productId>
</sch:DeleteProductByIdRequest>
</soapenv:Body>
</soapenv:Envelope>
Örnek Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:DeleteProductByIdResponse xmlns:ns3="http://www.n11.com/ws/schemas">
<result>
<status>success</status>
</result>
<product>
<currencyAmount>100000.00</currencyAmount>
<currencyType>1</currencyType>
<displayPrice>100000.00</displayPrice>
<isDomestic>false</isDomestic>
<id>688290996</id>
<n11CatalogGroupId>91003744</n11CatalogGroupId>
<oldPrice>100000</oldPrice>
<price>100000.00</price>
<productSellerCode>567876921</productSellerCode>
<approvalStatus>8</approvalStatus>
<saleStatus>3</saleStatus>
<stockItems>
<stockItem>
<bundle>false</bundle>
<currencyAmount>100000.00</currencyAmount>
<displayPrice>100000.00</displayPrice>
<optionPrice>100000.00</optionPrice>
<sellerStockCode>567876921</sellerStockCode>
<attributes/>
<id>127315802116</id>
<images/>
<quantity>0</quantity>
<version>1</version>
</stockItem>
</stockItems>
<title>Telefon İçin Etiketler Estetik Deniz</title>
<unitInfo/>
</product>
</ns3:DeleteProductByIdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>