TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecSupplierItemRemoveitempriceRequest req = new CainiaoCntecSupplierItemRemoveitempriceRequest();
CainiaoCntecSupplierItemRemoveitempriceRequest.SubItemPriceSyncRemoveDto obj1 = new CainiaoCntecSupplierItemRemoveitempriceRequest.SubItemPriceSyncRemoveDto();
obj1.setSupplierCode("DRF");
obj1.setOutItemId("123123");
obj1.setOutStoreId("23123");
obj1.setSupplierPriceType(0L);
obj1.setPriceIndication("2313123");
obj1.setFeature("{\"product_item\":\"商品名称\",\"product_quantity\":\"商品数量\"}");
req.setSubItemPriceSyncRemove(obj1);
CainiaoCntecSupplierItemRemoveitempriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoCntecSupplierItemRemoveitempriceRequest req = new CainiaoCntecSupplierItemRemoveitempriceRequest();
CainiaoCntecSupplierItemRemoveitempriceRequest.SubItemPriceSyncRemoveDtoDomain obj1 = new CainiaoCntecSupplierItemRemoveitempriceRequest.SubItemPriceSyncRemoveDtoDomain();
obj1.SupplierCode = "DRF";
obj1.OutItemId = "123123";
obj1.OutStoreId = "23123";
obj1.SupplierPriceType = 0L;
obj1.PriceIndication = "2313123";
obj1.Feature = "{\"product_item\":\"商品名称\",\"product_quantity\":\"商品数量\"}";
req.SubItemPriceSyncRemove_ = obj1;
CainiaoCntecSupplierItemRemoveitempriceResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoCntecSupplierItemRemoveitempriceRequest;
$sub_item_price_sync_remove = new SubItemPriceSyncRemoveDto;
$sub_item_price_sync_remove->supplier_code="DRF";
$sub_item_price_sync_remove->out_item_id="123123";
$sub_item_price_sync_remove->out_store_id="23123";
$sub_item_price_sync_remove->supplier_price_type="0";
$sub_item_price_sync_remove->price_indication="2313123";
$sub_item_price_sync_remove->feature="{\"product_item\":\"商品名称\",\"product_quantity\":\"商品数量\"}";
$req->setSubItemPriceSyncRemove(json_encode($sub_item_price_sync_remove));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=cainiao.cntec.supplier.item.removeitemprice' \
-d 'partner_id=apidoc' \
-d 'sign=EB0C2A212F674B14F97CBB9B3FDEB837' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+18%3A01%3A28' \
-d 'v=2.0' \
-d 'sub_item_price_sync_remove=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoCntecSupplierItemRemoveitempriceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sub_item_price_sync_remove=""
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"cainiao.cntec.supplier.item.removeitemprice");
add_param(pRequest,"sub_item_price_sync_remove","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('cainiao.cntec.supplier.item.removeitemprice', {
'sub_item_price_sync_remove':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})