TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressMiniappOrderPriceAdjustRequest req = new AliexpressMiniappOrderPriceAdjustRequest();
AliexpressMiniappOrderPriceAdjustRequest.MoneyDto obj1 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDto();
obj1.setAmount("20");
obj1.setCurrency("EUR");
req.setNewPrice(obj1);
AliexpressMiniappOrderPriceAdjustRequest.MoneyDto obj2 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDto();
obj2.setAmount("21.2");
obj2.setCurrency("EUR");
req.setOldPrice(obj2);
AliexpressMiniappOrderPriceAdjustRequest.MoneyDto obj3 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDto();
obj3.setAmount("1.2");
obj3.setCurrency("EUR");
req.setReduction(obj3);
req.setTradeOrderId(3012683100071199L);
AliexpressMiniappOrderPriceAdjustResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressMiniappOrderPriceAdjustRequest req = new AliexpressMiniappOrderPriceAdjustRequest();
AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain obj1 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain();
obj1.Amount = "20";
obj1.Currency = "EUR";
req.NewPrice_ = obj1;
AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain obj2 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain();
obj2.Amount = "21.2";
obj2.Currency = "EUR";
req.OldPrice_ = obj2;
AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain obj3 = new AliexpressMiniappOrderPriceAdjustRequest.MoneyDtoDomain();
obj3.Amount = "1.2";
obj3.Currency = "EUR";
req.Reduction_ = obj3;
req.TradeOrderId = 3012683100071199L;
AliexpressMiniappOrderPriceAdjustResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressMiniappOrderPriceAdjustRequest;
$new_price = new MoneyDto;
$new_price->amount="20";
$new_price->currency="EUR";
$req->setNewPrice(json_encode($new_price));
$old_price = new MoneyDto;
$old_price->amount="21.2";
$old_price->currency="EUR";
$req->setOldPrice(json_encode($old_price));
$reduction = new MoneyDto;
$reduction->amount="1.2";
$reduction->currency="EUR";
$req->setReduction(json_encode($reduction));
$req->setTradeOrderId("3012683100071199");
$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=aliexpress.miniapp.order.price.adjust' \
-d 'partner_id=apidoc' \
-d 'session=df6866de-9ef1-4668-8661-a660084e5779' \
-d 'sign=344850513DC78C1E8A5A8FDFF7EB3DE2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+19%3A51%3A01' \
-d 'v=2.0' \
-d 'new_price=null' \
-d 'old_price=null' \
-d 'reduction=null' \
-d 'trade_order_id=3012683100071199'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressMiniappOrderPriceAdjustRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.new_price=""
req.old_price=""
req.reduction=""
req.trade_order_id=3012683100071199
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,"aliexpress.miniapp.order.price.adjust");
add_param(pRequest,"new_price","数据结构JSON示例");
add_param(pRequest,"old_price","数据结构JSON示例");
add_param(pRequest,"reduction","数据结构JSON示例");
add_param(pRequest,"trade_order_id","3012683100071199");
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('aliexpress.miniapp.order.price.adjust', {
'new_price':'数据结构JSON示例',
'old_price':'数据结构JSON示例',
'reduction':'数据结构JSON示例',
'trade_order_id':'3012683100071199'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})