TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoWaybillIiConfirmRequest req = new CainiaoWaybillIiConfirmRequest();
CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmRequest obj1 = new CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmRequest();
obj1.setCallDoorPickUp(false);
obj1.setCpCode("SF");
obj1.setDoorPickUpEndTime("2021-08-07 12:34:30");
obj1.setDoorPickUpTime("2021-08-07 12:34:30");
obj1.setExtraInfo("{\"specialDeliveryTypeCode\": \"ascsdf\"}");
obj1.setLogisticsServices("{\"COD\": {\"value\": \"1234\"}}");
obj1.setProductCode("T1");
obj1.setTotalHeight(40L);
obj1.setTotalLength(40L);
obj1.setTotalWidth(30L);
List<CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfo> list3 = new ArrayList<CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfo>();
CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfo obj4 = new CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfo();
list3.add(obj4);
obj4.setHeight(10L);
obj4.setLength(40L);
obj4.setVolume(400L);
obj4.setWaybillCode("AS123456");
obj4.setWeight(4000L);
obj4.setWidth(40L);
obj1.setWaybillInfo(list3);
obj1.setTotalVolume(80L);
obj1.setTotalWeight(4000L);
req.setParamWaybillOrderConfirmRequest(obj1);
CainiaoWaybillIiConfirmResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoWaybillIiConfirmRequest req = new CainiaoWaybillIiConfirmRequest();
CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmRequestDomain obj1 = new CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmRequestDomain();
obj1.CallDoorPickUp = false;
obj1.CpCode = "SF";
obj1.DoorPickUpEndTime = "2021-08-07 12:34:30";
obj1.DoorPickUpTime = "2021-08-07 12:34:30";
obj1.ExtraInfo = "{\"specialDeliveryTypeCode\": \"ascsdf\"}";
obj1.LogisticsServices = "{\"COD\": {\"value\": \"1234\"}}";
obj1.ProductCode = "T1";
obj1.TotalHeight = 40L;
obj1.TotalLength = 40L;
obj1.TotalWidth = 30L;
List<CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfoDomain> list3 = new List<CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfoDomain>();
CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfoDomain obj4 = new CainiaoWaybillIiConfirmRequest.WaybillOrderConfirmWaybillInfoDomain();
list3.Add(obj4);
obj4.Height = 10L;
obj4.Length = 40L;
obj4.Volume = 400L;
obj4.WaybillCode = "AS123456";
obj4.Weight = 4000L;
obj4.Width = 40L;
obj1.WaybillInfo= list3;
obj1.TotalVolume = 80L;
obj1.TotalWeight = 4000L;
req.ParamWaybillOrderConfirmRequest_ = obj1;
CainiaoWaybillIiConfirmResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoWaybillIiConfirmRequest;
$param_waybill_order_confirm_request = new WaybillOrderConfirmRequest;
$param_waybill_order_confirm_request->call_door_pick_up="false";
$param_waybill_order_confirm_request->cp_code="SF";
$param_waybill_order_confirm_request->door_pick_up_end_time="2021-08-07 12:34:30";
$param_waybill_order_confirm_request->door_pick_up_time="2021-08-07 12:34:30";
$param_waybill_order_confirm_request->extra_info="{\"specialDeliveryTypeCode\": \"ascsdf\"}";
$param_waybill_order_confirm_request->logistics_services="{\"COD\": {\"value\": \"1234\"}}";
$param_waybill_order_confirm_request->product_code="T1";
$param_waybill_order_confirm_request->total_height="40";
$param_waybill_order_confirm_request->total_length="40";
$param_waybill_order_confirm_request->total_width="30";
$waybill_info = new WaybillOrderConfirmWaybillInfo;
$waybill_info->height="10";
$waybill_info->length="40";
$waybill_info->volume="400";
$waybill_info->waybill_code="AS123456";
$waybill_info->weight="4000";
$waybill_info->width="40";
$param_waybill_order_confirm_request->waybill_info = $waybill_info;
$param_waybill_order_confirm_request->total_volume="80";
$param_waybill_order_confirm_request->total_weight="4000";
$req->setParamWaybillOrderConfirmRequest(json_encode($param_waybill_order_confirm_request));
$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=cainiao.waybill.ii.confirm' \
-d 'partner_id=apidoc' \
-d 'session=77aa409c-4f96-4f7c-b9d3-cca68d8ecbd5' \
-d 'sign=54F59E5A65876E9A838196A79FB721D9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-15+14%3A22%3A52' \
-d 'v=2.0' \
-d 'param_waybill_order_confirm_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoWaybillIiConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_waybill_order_confirm_request=""
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,"cainiao.waybill.ii.confirm");
add_param(pRequest,"param_waybill_order_confirm_request","数据结构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('cainiao.waybill.ii.confirm', {
'param_waybill_order_confirm_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})