TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoFulfillmentDeliveryUserConfirmRequest req = new TmallAliautoFulfillmentDeliveryUserConfirmRequest();
TmallAliautoFulfillmentDeliveryUserConfirmRequest.UserDeliveryInfoReq obj1 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.UserDeliveryInfoReq();
obj1.setOrderId("1700001");
obj1.setDeliveryUserStatus("UNFIXED_CONFIRMED_USER_INFO");
obj1.setOuterOrderId("1700001");
obj1.setCollectionMode("上门取车");
obj1.setDeliveryMode("送车上门");
obj1.setCurrentPrice(100L);
obj1.setCollectionFee(100L);
obj1.setLogisticsFee(100L);
obj1.setHomeDeliveryFee(100L);
obj1.setDeliveryCarCount(1L);
List<TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTO> list3 = new ArrayList<TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTO>();
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTO obj4 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTO();
list3.add(obj4);
obj4.setBrandName("品牌");
obj4.setSeriesName("车系");
obj4.setModelName("车型");
obj4.setCarVin("3100111");
obj4.setPredictConsignmentTime("2019年2月21日");
obj1.setDeliveryCarList(list3);
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTO obj5 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTO();
obj5.setProvinceCode("311000");
obj5.setProvinceName("北京");
obj5.setCityCode("311000");
obj5.setCityName("北京市");
obj5.setDistrictCode("311000");
obj5.setDistrictName("东城区");
obj5.setLocationDetail("北京北京市东城区小葫芦小区");
obj1.setOriginAddress(obj5);
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTO obj6 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTO();
obj6.setProvinceCode("311000");
obj6.setProvinceName("北京");
obj6.setCityCode("311000");
obj6.setCityName("北京市");
obj6.setDistrictCode("311000");
obj6.setDistrictName("东城区");
obj6.setLocationDetail("北京北京市东城区小葫芦小区");
obj1.setArrivalAddress(obj6);
obj1.setOriginUserName("小明");
obj1.setOriginUserPhone("17800000000");
obj1.setArrivalUserName("小红");
obj1.setArrivalUserPhone("17850000000");
req.setUserDeliveryInfoReq(obj1);
TmallAliautoFulfillmentDeliveryUserConfirmResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoFulfillmentDeliveryUserConfirmRequest req = new TmallAliautoFulfillmentDeliveryUserConfirmRequest();
TmallAliautoFulfillmentDeliveryUserConfirmRequest.UserDeliveryInfoReqDomain obj1 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.UserDeliveryInfoReqDomain();
obj1.OrderId = "1700001";
obj1.DeliveryUserStatus = "UNFIXED_CONFIRMED_USER_INFO";
obj1.OuterOrderId = "1700001";
obj1.CollectionMode = "上门取车";
obj1.DeliveryMode = "送车上门";
obj1.CurrentPrice = 100L;
obj1.CollectionFee = 100L;
obj1.LogisticsFee = 100L;
obj1.HomeDeliveryFee = 100L;
obj1.DeliveryCarCount = 1L;
List<TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTODomain> list3 = new List<TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTODomain>();
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTODomain obj4 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryCarInfoDTODomain();
list3.Add(obj4);
obj4.BrandName = "品牌";
obj4.SeriesName = "车系";
obj4.ModelName = "车型";
obj4.CarVin = "3100111";
obj4.PredictConsignmentTime = "2019年2月21日";
obj1.DeliveryCarList= list3;
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTODomain obj5 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTODomain();
obj5.ProvinceCode = "311000";
obj5.ProvinceName = "北京";
obj5.CityCode = "311000";
obj5.CityName = "北京市";
obj5.DistrictCode = "311000";
obj5.DistrictName = "东城区";
obj5.LocationDetail = "北京北京市东城区小葫芦小区";
obj1.OriginAddress= obj5;
TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTODomain obj6 = new TmallAliautoFulfillmentDeliveryUserConfirmRequest.DeliveryAddressDTODomain();
obj6.ProvinceCode = "311000";
obj6.ProvinceName = "北京";
obj6.CityCode = "311000";
obj6.CityName = "北京市";
obj6.DistrictCode = "311000";
obj6.DistrictName = "东城区";
obj6.LocationDetail = "北京北京市东城区小葫芦小区";
obj1.ArrivalAddress= obj6;
obj1.OriginUserName = "小明";
obj1.OriginUserPhone = "17800000000";
obj1.ArrivalUserName = "小红";
obj1.ArrivalUserPhone = "17850000000";
req.UserDeliveryInfoReq_ = obj1;
TmallAliautoFulfillmentDeliveryUserConfirmResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoFulfillmentDeliveryUserConfirmRequest;
$user_delivery_info_req = new UserDeliveryInfoReq;
$user_delivery_info_req->order_id="1700001";
$user_delivery_info_req->delivery_user_status="UNFIXED_CONFIRMED_USER_INFO";
$user_delivery_info_req->outer_order_id="1700001";
$user_delivery_info_req->collection_mode="上门取车";
$user_delivery_info_req->delivery_mode="送车上门";
$user_delivery_info_req->current_price="100";
$user_delivery_info_req->collection_fee="100";
$user_delivery_info_req->logistics_fee="100";
$user_delivery_info_req->home_delivery_fee="100";
$user_delivery_info_req->delivery_car_count="1";
$delivery_car_list = new DeliveryCarInfoDTO;
$delivery_car_list->brand_name="品牌";
$delivery_car_list->series_name="车系";
$delivery_car_list->model_name="车型";
$delivery_car_list->car_vin="3100111";
$delivery_car_list->predict_consignment_time="2019年2月21日";
$user_delivery_info_req->delivery_car_list = $delivery_car_list;
$origin_address = new DeliveryAddressDTO;
$origin_address->province_code="311000";
$origin_address->province_name="北京";
$origin_address->city_code="311000";
$origin_address->city_name="北京市";
$origin_address->district_code="311000";
$origin_address->district_name="东城区";
$origin_address->location_detail="北京北京市东城区小葫芦小区";
$user_delivery_info_req->origin_address = $origin_address;
$arrival_address = new DeliveryAddressDTO;
$arrival_address->province_code="311000";
$arrival_address->province_name="北京";
$arrival_address->city_code="311000";
$arrival_address->city_name="北京市";
$arrival_address->district_code="311000";
$arrival_address->district_name="东城区";
$arrival_address->location_detail="北京北京市东城区小葫芦小区";
$user_delivery_info_req->arrival_address = $arrival_address;
$user_delivery_info_req->origin_user_name="小明";
$user_delivery_info_req->origin_user_phone="17800000000";
$user_delivery_info_req->arrival_user_name="小红";
$user_delivery_info_req->arrival_user_phone="17850000000";
$req->setUserDeliveryInfoReq(json_encode($user_delivery_info_req));
$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.aliauto.fulfillment.delivery.user.confirm' \
-d 'partner_id=apidoc' \
-d 'session=64186812-ad2b-4f9a-a980-279b285db31f' \
-d 'sign=52B5BE235DF6145D43388F305CA06D1A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A44%3A36' \
-d 'v=2.0' \
-d 'user_delivery_info_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoFulfillmentDeliveryUserConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.user_delivery_info_req="数据结构示例JSON格式"
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.aliauto.fulfillment.delivery.user.confirm");
add_param(pRequest,"user_delivery_info_req","数据结构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('tmall.aliauto.fulfillment.delivery.user.confirm', {
'user_delivery_info_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})