TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainQuerycheckAppointmentRequest req = new AlibabaMtpSupplychainQuerycheckAppointmentRequest();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParam obj1 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParam();
obj1.setOutTraceId("xxx");
obj1.setMerchantCode("xx");
obj1.setOuterOrderNo("xx");
List<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO> list3 = new ArrayList<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO>();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO obj4 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO();
list3.add(obj4);
obj4.setTransferOrderNo("xx");
obj4.setUnit("xx");
obj4.setOutboundQuantity("xx");
obj4.setSkuCode("xx");
obj1.setDetails(list3);
obj1.setSource("xx");
obj1.setWarehouseCode("xx");
req.setAppointmentQueryCheckParam(obj1);
AlibabaMtpSupplychainQuerycheckAppointmentResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMtpSupplychainQuerycheckAppointmentRequest req = new AlibabaMtpSupplychainQuerycheckAppointmentRequest();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParamDomain obj1 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParamDomain();
obj1.OutTraceId = "xxx";
obj1.MerchantCode = "xx";
obj1.OuterOrderNo = "xx";
List<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTODomain> list3 = new List<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTODomain>();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTODomain obj4 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTODomain();
list3.Add(obj4);
obj4.TransferOrderNo = "xx";
obj4.Unit = "xx";
obj4.OutboundQuantity = "xx";
obj4.SkuCode = "xx";
obj1.Details= list3;
obj1.Source = "xx";
obj1.WarehouseCode = "xx";
req.AppointmentQueryCheckParam_ = obj1;
AlibabaMtpSupplychainQuerycheckAppointmentResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMtpSupplychainQuerycheckAppointmentRequest;
$appointment_query_check_param = new AppointmentQueryCheckParam;
$appointment_query_check_param->out_trace_id="xxx";
$appointment_query_check_param->merchant_code="xx";
$appointment_query_check_param->outer_order_no="xx";
$details = new AppointmentDetailTopDTO;
$details->transfer_order_no="xx";
$details->unit="xx";
$details->outbound_quantity="xx";
$details->sku_code="xx";
$appointment_query_check_param->details = $details;
$appointment_query_check_param->source="xx";
$appointment_query_check_param->warehouse_code="xx";
$req->setAppointmentQueryCheckParam(json_encode($appointment_query_check_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.querycheck.appointment' \
-d 'partner_id=apidoc' \
-d 'session=2f51eed7-4bc8-4788-b298-829fa14c6f95' \
-d 'sign=B9A30EFCC530CF73B418F2E22261D954' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+08%3A14%3A46' \
-d 'v=2.0' \
-d 'appointment_query_check_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMtpSupplychainQuerycheckAppointmentRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.appointment_query_check_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.querycheck.appointment");
add_param(pRequest,"appointment_query_check_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.querycheck.appointment', {
'appointment_query_check_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})