TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallSupplychainChannelProductPriceUpdateRequest req = new TmallSupplychainChannelProductPriceUpdateRequest();
req.setCurrencyType("USD");
req.setProductId(1234567L);
req.setPriceType(1L);
req.setSkuPrice("1.99");
req.setProductPrice("1.99");
req.setSkuId(1234567L);
req.setChannelCode(111002L);
TmallSupplychainChannelProductPriceUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallSupplychainChannelProductPriceUpdateRequest req = new TmallSupplychainChannelProductPriceUpdateRequest();
req.CurrencyType = "USD";
req.ProductId = 1234567L;
req.PriceType = 1L;
req.SkuPrice = "1.99";
req.ProductPrice = "1.99";
req.SkuId = 1234567L;
req.ChannelCode = 111002L;
TmallSupplychainChannelProductPriceUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallSupplychainChannelProductPriceUpdateRequest;
$req->setCurrencyType("USD");
$req->setProductId("1234567");
$req->setPriceType("1");
$req->setSkuPrice("1.99");
$req->setProductPrice("1.99");
$req->setSkuId("1234567");
$req->setChannelCode("111002");
$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.supplychain.channel.product.price.update' \
-d 'partner_id=apidoc' \
-d 'session=b3bdc6a4-e656-472b-becb-352aa93546a2' \
-d 'sign=BD848803A4D72A4F3E8DECF874B650A3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+18%3A06%3A23' \
-d 'v=2.0' \
-d 'channel_code=111002' \
-d 'currency_type=USD' \
-d 'price_type=1' \
-d 'product_id=1234567' \
-d 'product_price=1.99' \
-d 'sku_id=1234567' \
-d 'sku_price=1.99'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallSupplychainChannelProductPriceUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.currency_type="USD"
req.product_id=1234567
req.price_type=1
req.sku_price="1.99"
req.product_price="1.99"
req.sku_id=1234567
req.channel_code=111002
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.supplychain.channel.product.price.update");
add_param(pRequest,"currency_type","USD");
add_param(pRequest,"product_id","1234567");
add_param(pRequest,"price_type","1");
add_param(pRequest,"sku_price","1.99");
add_param(pRequest,"product_price","1.99");
add_param(pRequest,"sku_id","1234567");
add_param(pRequest,"channel_code","111002");
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.supplychain.channel.product.price.update', {
'currency_type':'USD',
'product_id':'1234567',
'price_type':'1',
'sku_price':'1.99',
'product_price':'1.99',
'sku_id':'1234567',
'channel_code':'111002'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})