TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallNrItemScitemUpdateRequest req = new TmallNrItemScitemUpdateRequest();
TmallNrItemScitemUpdateRequest.ScItemUpdateDto obj1 = new TmallNrItemScitemUpdateRequest.ScItemUpdateDto();
obj1.setUpdateCategory(true);
obj1.setSupplierName("txp");
obj1.setEffectiveDays(100L);
obj1.setStopProduction("txp");
obj1.setBizCode("txp");
obj1.setBrandName("txp");
obj1.setBrandId(100L);
obj1.setMediaUrls(""t","t"");
obj1.setDeliveryUnit("txp");
obj1.setFactoryScItemId("txp");
obj1.setCategoryName("txp");
obj1.setHeight(100L);
obj1.setStatusOpen(100L);
obj1.setPcs("txp");
obj1.setSelfBrandName("txp");
obj1.setCanSalesReturn(100L);
obj1.setUserId(100L);
obj1.setSalesNum2("txp");
obj1.setScOuterBrandName("txp");
obj1.setSalesNum1("txp");
obj1.setSelfCategoryId(100L);
obj1.setNetContent("txp");
obj1.setScItemPrice(100L);
obj1.setPurchaseAgent("txp");
obj1.setScOuterMainCategoryCode("txp");
obj1.setSalesNum30("txp");
obj1.setPurchaseChannel("{}");
obj1.setSupplierId(100L);
obj1.setTaxRate("txp");
obj1.setStatus(100L);
obj1.setStoreCondition("txp");
obj1.setPurchaseChannelId("txp");
obj1.setCategoryId(100L);
obj1.setWidth(100L);
obj1.setScItemType(100L);
obj1.setSelfBrandId(100L);
obj1.setStoreCode("txp");
obj1.setScItemId(100L);
obj1.setGmtModified("txp");
obj1.setWeight(100L);
obj1.setProducingArea("txp");
obj1.setLocationId(100L);
obj1.setPurchaseUnitRate(100L);
TmallNrItemScitemUpdateRequest.RtscItemSaveOption obj2 = new TmallNrItemScitemUpdateRequest.RtscItemSaveOption();
obj2.setIsEnableOIcInventorySynTag(true);
obj2.setIsEnableScmInventorySynTag(true);
obj2.setSyncToInventory(true);
obj2.setSyncToItemCenter(true);
obj1.setScItemSaveOption(obj2);
obj1.setScOuterMainCategoryName("txp");
obj1.setDeliveryUnitRate(100L);
obj1.setCreator(100L);
obj1.setTaxIncomeRate("txp");
obj1.setScOuterAllCategoryName("txp");
obj1.setGmtCreated("txp");
obj1.setTaxRateType("txp");
obj1.setArea("txp");
obj1.setBizCodes(""2","1"");
obj1.setScOuterAllCategoryCode("txp");
obj1.setLength(100L);
obj1.setScOuterBrandId("txp");
obj1.setAuditReason("txp");
obj1.setOptions(100L);
obj1.setTags(new Long[] { 1,2 };
);
obj1.setSalesNum3("txp");
obj1.setSalesNum15("txp");
obj1.setSalesNum7("txp");
obj1.setPurchaseUnit("txp");
obj1.setStopProductionTime("txp");
obj1.setScOuterChildCategoryName("txp");
obj1.setTaxCode("txp");
obj1.setScItemTitle("txp");
obj1.setScOuterChildCategoryCode("txp");
obj1.setUnit("txp");
obj1.setUniqueScItemCodes(""r","r"");
obj1.setUniqueScItemCodesReal(true);
obj1.setCreatorName("txp");
obj1.setAppendAttributes(true);
obj1.setSelfCategoryName("txp");
obj1.setVolume(100L);
obj1.setInventoryId(100L);
obj1.setAttributes("{}");
obj1.setRowStatus(100L);
obj1.setScOuterId("txp");
req.setScItemUpdateDto(obj1);
TmallNrItemScitemUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallNrItemScitemUpdateRequest req = new TmallNrItemScitemUpdateRequest();
TmallNrItemScitemUpdateRequest.ScItemUpdateDtoDomain obj1 = new TmallNrItemScitemUpdateRequest.ScItemUpdateDtoDomain();
obj1.UpdateCategory = true;
obj1.SupplierName = "txp";
obj1.EffectiveDays = 100L;
obj1.StopProduction = "txp";
obj1.BizCode = "txp";
obj1.BrandName = "txp";
obj1.BrandId = 100L;
obj1.MediaUrls = ""t","t"";
obj1.DeliveryUnit = "txp";
obj1.FactoryScItemId = "txp";
obj1.CategoryName = "txp";
obj1.Height = 100L;
obj1.StatusOpen = 100L;
obj1.Pcs = "txp";
obj1.SelfBrandName = "txp";
obj1.CanSalesReturn = 100L;
obj1.UserId = 100L;
obj1.SalesNum2 = "txp";
obj1.ScOuterBrandName = "txp";
obj1.SalesNum1 = "txp";
obj1.SelfCategoryId = 100L;
obj1.NetContent = "txp";
obj1.ScItemPrice = 100L;
obj1.PurchaseAgent = "txp";
obj1.ScOuterMainCategoryCode = "txp";
obj1.SalesNum30 = "txp";
obj1.PurchaseChannel = "{}";
obj1.SupplierId = 100L;
obj1.TaxRate = "txp";
obj1.Status = 100L;
obj1.StoreCondition = "txp";
obj1.PurchaseChannelId = "txp";
obj1.CategoryId = 100L;
obj1.Width = 100L;
obj1.ScItemType = 100L;
obj1.SelfBrandId = 100L;
obj1.StoreCode = "txp";
obj1.ScItemId = 100L;
obj1.GmtModified = "txp";
obj1.Weight = 100L;
obj1.ProducingArea = "txp";
obj1.LocationId = 100L;
obj1.PurchaseUnitRate = 100L;
TmallNrItemScitemUpdateRequest.RtscItemSaveOptionDomain obj2 = new TmallNrItemScitemUpdateRequest.RtscItemSaveOptionDomain();
obj2.IsEnableOIcInventorySynTag = true;
obj2.IsEnableScmInventorySynTag = true;
obj2.SyncToInventory = true;
obj2.SyncToItemCenter = true;
obj1.ScItemSaveOption= obj2;
obj1.ScOuterMainCategoryName = "txp";
obj1.DeliveryUnitRate = 100L;
obj1.Creator = 100L;
obj1.TaxIncomeRate = "txp";
obj1.ScOuterAllCategoryName = "txp";
obj1.GmtCreated = "txp";
obj1.TaxRateType = "txp";
obj1.Area = "txp";
obj1.BizCodes = ""2","1"";
obj1.ScOuterAllCategoryCode = "txp";
obj1.Length = 100L;
obj1.ScOuterBrandId = "txp";
obj1.AuditReason = "txp";
obj1.Options = 100L;
obj1.Tags = new long[] { 1,2 };
;
obj1.SalesNum3 = "txp";
obj1.SalesNum15 = "txp";
obj1.SalesNum7 = "txp";
obj1.PurchaseUnit = "txp";
obj1.StopProductionTime = "txp";
obj1.ScOuterChildCategoryName = "txp";
obj1.TaxCode = "txp";
obj1.ScItemTitle = "txp";
obj1.ScOuterChildCategoryCode = "txp";
obj1.Unit = "txp";
obj1.UniqueScItemCodes = ""r","r"";
obj1.UniqueScItemCodesReal = true;
obj1.CreatorName = "txp";
obj1.AppendAttributes = true;
obj1.SelfCategoryName = "txp";
obj1.Volume = 100L;
obj1.InventoryId = 100L;
obj1.Attributes = "{}";
obj1.RowStatus = 100L;
obj1.ScOuterId = "txp";
req.ScItemUpdateDto_ = obj1;
TmallNrItemScitemUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallNrItemScitemUpdateRequest;
$sc_item_update_dto = new ScItemUpdateDto;
$sc_item_update_dto->update_category="true";
$sc_item_update_dto->supplier_name="txp";
$sc_item_update_dto->effective_days="100";
$sc_item_update_dto->stop_production="txp";
$sc_item_update_dto->biz_code="txp";
$sc_item_update_dto->brand_name="txp";
$sc_item_update_dto->brand_id="100";
$sc_item_update_dto->media_urls="[\"t\",\"t\"]";
$sc_item_update_dto->delivery_unit="txp";
$sc_item_update_dto->factory_sc_item_id="txp";
$sc_item_update_dto->category_name="txp";
$sc_item_update_dto->height="100";
$sc_item_update_dto->status_open="100";
$sc_item_update_dto->pcs="txp";
$sc_item_update_dto->self_brand_name="txp";
$sc_item_update_dto->can_sales_return="100";
$sc_item_update_dto->user_id="100";
$sc_item_update_dto->sales_num2="txp";
$sc_item_update_dto->sc_outer_brand_name="txp";
$sc_item_update_dto->sales_num1="txp";
$sc_item_update_dto->self_category_id="100";
$sc_item_update_dto->net_content="txp";
$sc_item_update_dto->sc_item_price="100";
$sc_item_update_dto->purchase_agent="txp";
$sc_item_update_dto->sc_outer_main_category_code="txp";
$sc_item_update_dto->sales_num30="txp";
$sc_item_update_dto->purchase_channel="{}";
$sc_item_update_dto->supplier_id="100";
$sc_item_update_dto->tax_rate="txp";
$sc_item_update_dto->status="100";
$sc_item_update_dto->store_condition="txp";
$sc_item_update_dto->purchase_channel_id="txp";
$sc_item_update_dto->category_id="100";
$sc_item_update_dto->width="100";
$sc_item_update_dto->sc_item_type="100";
$sc_item_update_dto->self_brand_id="100";
$sc_item_update_dto->store_code="txp";
$sc_item_update_dto->sc_item_id="100";
$sc_item_update_dto->gmt_modified="txp";
$sc_item_update_dto->weight="100";
$sc_item_update_dto->producing_area="txp";
$sc_item_update_dto->location_id="100";
$sc_item_update_dto->purchase_unit_rate="100";
$sc_item_save_option = new RtscItemSaveOption;
$sc_item_save_option->is_enable_o_ic_inventory_syn_tag="true";
$sc_item_save_option->is_enable_scm_inventory_syn_tag="true";
$sc_item_save_option->sync_to_inventory="true";
$sc_item_save_option->sync_to_item_center="true";
$sc_item_update_dto->sc_item_save_option = $sc_item_save_option;
$sc_item_update_dto->sc_outer_main_category_name="txp";
$sc_item_update_dto->delivery_unit_rate="100";
$sc_item_update_dto->creator="100";
$sc_item_update_dto->tax_income_rate="txp";
$sc_item_update_dto->sc_outer_all_category_name="txp";
$sc_item_update_dto->gmt_created="txp";
$sc_item_update_dto->tax_rate_type="txp";
$sc_item_update_dto->area="txp";
$sc_item_update_dto->biz_codes="[\"2\",\"1\"]";
$sc_item_update_dto->sc_outer_all_category_code="txp";
$sc_item_update_dto->length="100";
$sc_item_update_dto->sc_outer_brand_id="txp";
$sc_item_update_dto->audit_reason="txp";
$sc_item_update_dto->options="100";
$sc_item_update_dto->tags="[1,2]";
$sc_item_update_dto->sales_num3="txp";
$sc_item_update_dto->sales_num15="txp";
$sc_item_update_dto->sales_num7="txp";
$sc_item_update_dto->purchase_unit="txp";
$sc_item_update_dto->stop_production_time="txp";
$sc_item_update_dto->sc_outer_child_category_name="txp";
$sc_item_update_dto->tax_code="txp";
$sc_item_update_dto->sc_item_title="txp";
$sc_item_update_dto->sc_outer_child_category_code="txp";
$sc_item_update_dto->unit="txp";
$sc_item_update_dto->unique_sc_item_codes="[\"r\",\"r\"]";
$sc_item_update_dto->unique_sc_item_codes_real="true";
$sc_item_update_dto->creator_name="txp";
$sc_item_update_dto->append_attributes="true";
$sc_item_update_dto->self_category_name="txp";
$sc_item_update_dto->volume="100";
$sc_item_update_dto->inventory_id="100";
$sc_item_update_dto->attributes="{}";
$sc_item_update_dto->row_status="100";
$sc_item_update_dto->sc_outer_id="txp";
$req->setScItemUpdateDto(json_encode($sc_item_update_dto));
$resp = $c->execute($req, $sessionKey);
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=tmall.nr.item.scitem.update' \
-d 'partner_id=apidoc' \
-d 'session=bcb50720-3c7c-415d-a4de-a709e0ec727f' \
-d 'sign=85E7B189CFF61C807E208F2439E96B11' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-22+16%3A11%3A53' \
-d 'v=2.0' \
-d 'sc_item_update_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallNrItemScitemUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sc_item_update_dto=""
try:
resp= req.getResponse(sessionkey)
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,"tmall.nr.item.scitem.update");
add_param(pRequest,"sc_item_update_dto","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('tmall.nr.item.scitem.update', {
'sc_item_update_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})