TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleConsignmentiiOrderPerformRequest req = new AlibabaIdleConsignmentiiOrderPerformRequest();
AlibabaIdleConsignmentiiOrderPerformRequest.ConsignmentV2OrderSynDto obj1 = new AlibabaIdleConsignmentiiOrderPerformRequest.ConsignmentV2OrderSynDto();
AlibabaIdleConsignmentiiOrderPerformRequest.Attribute obj2 = new AlibabaIdleConsignmentiiOrderPerformRequest.Attribute();
obj2.setPayOrderId("12345");
obj2.setConfirmFee("218800");
obj2.setSeller2AcMailNo("4315613214");
obj2.setMaxDealAmt("199900;299900");
obj2.setReferenceRecyclePrice("180000");
obj2.setRefundMailNo("4514321");
obj2.setDegree("9");
obj2.setReportUrl("https://taobao.com");
obj2.setSummary("正品,无吊牌,XX处有明显磨损");
obj2.setItemId("3234513");
obj2.setSellerReceiptAddressId("444441231");
obj2.setServiceFee("15000");
obj2.setMailNo("234262");
obj1.setAttribute(obj2);
obj1.setOrderSubStatus("20");
obj1.setOrderStatus("2");
obj1.setBizOrderId("432151");
obj1.setEnv("online");
req.setConsignmentV2OrderSynDto(obj1);
AlibabaIdleConsignmentiiOrderPerformResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleConsignmentiiOrderPerformRequest req = new AlibabaIdleConsignmentiiOrderPerformRequest();
AlibabaIdleConsignmentiiOrderPerformRequest.ConsignmentV2OrderSynDtoDomain obj1 = new AlibabaIdleConsignmentiiOrderPerformRequest.ConsignmentV2OrderSynDtoDomain();
AlibabaIdleConsignmentiiOrderPerformRequest.AttributeDomain obj2 = new AlibabaIdleConsignmentiiOrderPerformRequest.AttributeDomain();
obj2.PayOrderId = "12345";
obj2.ConfirmFee = "218800";
obj2.Seller2AcMailNo = "4315613214";
obj2.MaxDealAmt = "199900;299900";
obj2.ReferenceRecyclePrice = "180000";
obj2.RefundMailNo = "4514321";
obj2.Degree = "9";
obj2.ReportUrl = "https://taobao.com";
obj2.Summary = "正品,无吊牌,XX处有明显磨损";
obj2.ItemId = "3234513";
obj2.SellerReceiptAddressId = "444441231";
obj2.ServiceFee = "15000";
obj2.MailNo = "234262";
obj1.Attribute= obj2;
obj1.OrderSubStatus = "20";
obj1.OrderStatus = "2";
obj1.BizOrderId = "432151";
obj1.Env = "online";
req.ConsignmentV2OrderSynDto_ = obj1;
AlibabaIdleConsignmentiiOrderPerformResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleConsignmentiiOrderPerformRequest;
$consignment_v2_order_syn_dto = new ConsignmentV2OrderSynDto;
$attribute = new Attribute;
$attribute->pay_order_id="12345";
$attribute->confirm_fee="218800";
$attribute->seller_2_ac_mail_no="4315613214";
$attribute->max_deal_amt="199900;299900";
$attribute->reference_recycle_price="180000";
$attribute->refund_mail_no="4514321";
$attribute->degree="9";
$attribute->report_url="https://taobao.com";
$attribute->summary="正品,无吊牌,XX处有明显磨损";
$attribute->item_id="3234513";
$attribute->seller_receipt_address_id="444441231";
$attribute->service_fee="15000";
$attribute->mail_no="234262";
$consignment_v2_order_syn_dto->attribute = $attribute;
$consignment_v2_order_syn_dto->order_sub_status="20";
$consignment_v2_order_syn_dto->order_status="2";
$consignment_v2_order_syn_dto->biz_order_id="432151";
$consignment_v2_order_syn_dto->env="online";
$req->setConsignmentV2OrderSynDto(json_encode($consignment_v2_order_syn_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=alibaba.idle.consignmentii.order.perform' \
-d 'partner_id=apidoc' \
-d 'session=ecc3277f-f944-4e75-b6be-de7b050c7308' \
-d 'sign=AA22EC619015AAC6002A8D522B7C5973' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+15%3A14%3A19' \
-d 'v=2.0' \
-d 'consignment_v2_order_syn_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleConsignmentiiOrderPerformRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.consignment_v2_order_syn_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,"alibaba.idle.consignmentii.order.perform");
add_param(pRequest,"consignment_v2_order_syn_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('alibaba.idle.consignmentii.order.perform', {
'consignment_v2_order_syn_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})