TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainInboundorderPrintRequest req = new AlibabaMtpSupplychainInboundorderPrintRequest();
AlibabaMtpSupplychainInboundorderPrintRequest.InboundOrderPrintParam obj1 = new AlibabaMtpSupplychainInboundorderPrintRequest.InboundOrderPrintParam();
obj1.setOutTraceId("xx");
obj1.setMerchantCode("xx");
obj1.setOuterOrderNo("xx");
obj1.setSource("xx");
obj1.setWarehouseCode("xx");
req.setInboundOrderPrintParam(obj1);
AlibabaMtpSupplychainInboundorderPrintResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMtpSupplychainInboundorderPrintRequest req = new AlibabaMtpSupplychainInboundorderPrintRequest();
AlibabaMtpSupplychainInboundorderPrintRequest.InboundOrderPrintParamDomain obj1 = new AlibabaMtpSupplychainInboundorderPrintRequest.InboundOrderPrintParamDomain();
obj1.OutTraceId = "xx";
obj1.MerchantCode = "xx";
obj1.OuterOrderNo = "xx";
obj1.Source = "xx";
obj1.WarehouseCode = "xx";
req.InboundOrderPrintParam_ = obj1;
AlibabaMtpSupplychainInboundorderPrintResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMtpSupplychainInboundorderPrintRequest;
$inbound_order_print_param = new InboundOrderPrintParam;
$inbound_order_print_param->out_trace_id="xx";
$inbound_order_print_param->merchant_code="xx";
$inbound_order_print_param->outer_order_no="xx";
$inbound_order_print_param->source="xx";
$inbound_order_print_param->warehouse_code="xx";
$req->setInboundOrderPrintParam(json_encode($inbound_order_print_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.inboundorder.print' \
-d 'partner_id=apidoc' \
-d 'session=8e4e828b-6a6d-4180-97bb-d8528cbcc36d' \
-d 'sign=4709E1342A94E2A29D07043ACC4A2D5F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-11+12%3A59%3A52' \
-d 'v=2.0' \
-d 'inbound_order_print_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMtpSupplychainInboundorderPrintRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.inbound_order_print_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.inboundorder.print");
add_param(pRequest,"inbound_order_print_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.inboundorder.print', {
'inbound_order_print_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})