TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaOmniStagingPriceUpdateRequest req = new AlibabaOmniStagingPriceUpdateRequest();
req.setBizOrderId(109978732854L);
req.setSubPayOrderId(56547567L);
req.setPrice(10000L);
req.setOperatorId("38578435");
req.setReason("服务项目增加");
AlibabaOmniStagingPriceUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaOmniStagingPriceUpdateRequest req = new AlibabaOmniStagingPriceUpdateRequest();
req.BizOrderId = 109978732854L;
req.SubPayOrderId = 56547567L;
req.Price = 10000L;
req.OperatorId = "38578435";
req.Reason = "服务项目增加";
AlibabaOmniStagingPriceUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaOmniStagingPriceUpdateRequest;
$req->setBizOrderId("109978732854");
$req->setSubPayOrderId("56547567");
$req->setPrice("10000");
$req->setOperatorId("38578435");
$req->setReason("服务项目增加");
$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=alibaba.omni.staging.price.update' \
-d 'partner_id=apidoc' \
-d 'session=b52ffea7-fcbb-4e36-a189-d7285ba23258' \
-d 'sign=6B4D88F5EA78C97C574BFF2146772E1B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-03-05+10%3A27%3A17' \
-d 'v=2.0' \
-d 'biz_order_id=109978732854' \
-d 'operator_id=38578435' \
-d 'price=10000' \
-d 'reason=%E6%9C%8D%E5%8A%A1%E9%A1%B9%E7%9B%AE%E5%A2%9E%E5%8A%A0' \
-d 'sub_pay_order_id=56547567'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaOmniStagingPriceUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_order_id=109978732854
req.sub_pay_order_id=56547567
req.price=10000
req.operator_id="38578435"
req.reason="服务项目增加"
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,"alibaba.omni.staging.price.update");
add_param(pRequest,"biz_order_id","109978732854");
add_param(pRequest,"sub_pay_order_id","56547567");
add_param(pRequest,"price","10000");
add_param(pRequest,"operator_id","38578435");
add_param(pRequest,"reason","服务项目增加");
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('alibaba.omni.staging.price.update', {
'biz_order_id':'109978732854',
'sub_pay_order_id':'56547567',
'price':'10000',
'operator_id':'38578435',
'reason':'服务项目增加'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})