TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainAppointmentConfirmRequest req = new AlibabaMtpSupplychainAppointmentConfirmRequest();
AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmParam obj1 = new AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmParam();
obj1.setMerchantCode("xxx");
obj1.setStart("xxx");
obj1.setOuterOrderNo("x");
obj1.setSource("xx");
obj1.setAppointDate("xx");
obj1.setOutboundOrderType("xx");
obj1.setWarehouseCode("xx");
obj1.setGmtOutbound("xx");
obj1.setOutTraceId("xx");
obj1.setCallSource("xxx");
obj1.setFeature("{}");
obj1.setEnd("xx");
List<AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTO> list3 = new ArrayList<AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTO>();
AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTO obj4 = new AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTO();
list3.add(obj4);
obj4.setUnit("xx");
obj4.setFeature("{}");
obj4.setDeliveryType("xx");
List<AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTO> list7 = new ArrayList<AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTO>();
AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTO obj8 = new AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTO();
list7.add(obj8);
obj8.setQuantity("xx");
obj8.setFeature("{}");
obj8.setExpireDate("xx");
obj8.setBatchId("xx");
obj8.setProductBatch("xx");
obj8.setProductDate("xx");
list5.setWorkDTOS(list7);
obj4.setOuterOrderNo("xx");
List<AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTO> list11 = new ArrayList<AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTO>();
AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTO obj12 = new AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTO();
list11.add(obj12);
obj12.setInventoryType(3L);
obj12.setQuantity("xx");
list9.setInventoryDTOS(list11);
obj4.setSkuCode("xx");
obj4.setSpec("xx");
obj1.setDetails(list3);
req.setAppointmentConfirmParam(obj1);
AlibabaMtpSupplychainAppointmentConfirmResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMtpSupplychainAppointmentConfirmRequest req = new AlibabaMtpSupplychainAppointmentConfirmRequest();
AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmParamDomain obj1 = new AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmParamDomain();
obj1.MerchantCode = "xxx";
obj1.Start = "xxx";
obj1.OuterOrderNo = "x";
obj1.Source = "xx";
obj1.AppointDate = "xx";
obj1.OutboundOrderType = "xx";
obj1.WarehouseCode = "xx";
obj1.GmtOutbound = "xx";
obj1.OutTraceId = "xx";
obj1.CallSource = "xxx";
obj1.Feature = "{}";
obj1.End = "xx";
List<AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTODomain> list3 = new List<AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTODomain>();
AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTODomain obj4 = new AlibabaMtpSupplychainAppointmentConfirmRequest.AppointmentConfirmDetailsTopDTODomain();
list3.Add(obj4);
obj4.Unit = "xx";
obj4.Feature = "{}";
obj4.DeliveryType = "xx";
List<AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTODomain> list6 = new List<AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTODomain>();
AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTODomain obj7 = new AlibabaMtpSupplychainAppointmentConfirmRequest.WorkTopDTODomain();
list6.Add(obj7);
obj7.Quantity = "xx";
obj7.Feature = "{}";
obj7.ExpireDate = "xx";
obj7.BatchId = "xx";
obj7.ProductBatch = "xx";
obj7.ProductDate = "xx";
obj4.WorkDTOS= list6;
obj4.OuterOrderNo = "xx";
List<AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTODomain> list9 = new List<AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTODomain>();
AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTODomain obj10 = new AlibabaMtpSupplychainAppointmentConfirmRequest.InventoryTopDTODomain();
list9.Add(obj10);
obj10.InventoryType = 3L;
obj10.Quantity = "xx";
obj4.InventoryDTOS= list9;
obj4.SkuCode = "xx";
obj4.Spec = "xx";
obj1.Details= list3;
req.AppointmentConfirmParam_ = obj1;
AlibabaMtpSupplychainAppointmentConfirmResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMtpSupplychainAppointmentConfirmRequest;
$appointment_confirm_param = new AppointmentConfirmParam;
$appointment_confirm_param->merchant_code="xxx";
$appointment_confirm_param->start="xxx";
$appointment_confirm_param->outer_order_no="x";
$appointment_confirm_param->source="xx";
$appointment_confirm_param->appoint_date="xx";
$appointment_confirm_param->outbound_order_type="xx";
$appointment_confirm_param->warehouse_code="xx";
$appointment_confirm_param->gmt_outbound="xx";
$appointment_confirm_param->out_trace_id="xx";
$appointment_confirm_param->call_source="xxx";
$appointment_confirm_param->feature="{}";
$appointment_confirm_param->end="xx";
$details = new AppointmentConfirmDetailsTopDTO;
$details->unit="xx";
$details->feature="{}";
$details->delivery_type="xx";
$work_d_t_o_s = new WorkTopDTO;
$work_d_t_o_s->quantity="xx";
$work_d_t_o_s->feature="{}";
$work_d_t_o_s->expire_date="xx";
$work_d_t_o_s->batch_id="xx";
$work_d_t_o_s->product_batch="xx";
$work_d_t_o_s->product_date="xx";
$details->work_d_t_o_s = $work_d_t_o_s;
$details->outer_order_no="xx";
$inventory_d_t_o_s = new InventoryTopDTO;
$inventory_d_t_o_s->inventory_type="3";
$inventory_d_t_o_s->quantity="xx";
$details->inventory_d_t_o_s = $inventory_d_t_o_s;
$details->sku_code="xx";
$details->spec="xx";
$appointment_confirm_param->details = $details;
$req->setAppointmentConfirmParam(json_encode($appointment_confirm_param));
$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.mtp.supplychain.appointment.confirm' \
-d 'partner_id=apidoc' \
-d 'session=9febd5de-6614-471a-b681-bb0ae91a17ad' \
-d 'sign=3CBFEDE111915A37D8252C70E107246E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+08%3A44%3A31' \
-d 'v=2.0' \
-d 'appointment_confirm_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMtpSupplychainAppointmentConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.appointment_confirm_param="数据结构示例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,"alibaba.mtp.supplychain.appointment.confirm");
add_param(pRequest,"appointment_confirm_param","数据结构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.mtp.supplychain.appointment.confirm', {
'appointment_confirm_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})