TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainInboundPartcallbackRequest req = new AlibabaMtpSupplychainInboundPartcallbackRequest();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequest obj1 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequest();
obj1.setCallerSource("xx");
obj1.setCompanyUuid("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto> list3 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto obj4 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto();
list3.add(obj4);
obj4.setDeliverType(1L);
obj4.setFeature("{}");
obj4.setId(1L);
obj4.setInboundOrderNo("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto> list7 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto obj8 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto();
list7.add(obj8);
obj8.setInventoryType("xx");
obj8.setQuantity("xx");
list5.setInventoryDtos(list7);
obj4.setOutSkuCode("xx");
obj4.setRemark("xx");
obj4.setSkuCode("xx");
obj4.setSpec("xx");
obj4.setSupplierId("xx");
obj4.setUnit("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto> list11 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto obj12 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto();
list11.add(obj12);
obj12.setBatchId("xx");
obj12.setExpireDate("xx");
obj12.setFeature("{}");
obj12.setProductBatch("xx");
obj12.setProductDate("xx");
obj12.setQuantity("xx");
list9.setWorkDtos(list11);
obj1.setDetails(list3);
obj1.setFeature("{}");
obj1.setGmtInbound("xx");
obj1.setInboundOrderNo("xx");
obj1.setInboundOrderType(1L);
obj1.setMerchantCode("xx");
obj1.setOutTraceId("xx");
obj1.setOuterOrderNo("xx");
obj1.setOwnerUserId("xx");
obj1.setRemark("xx");
obj1.setSource("xx");
obj1.setSubOrderList(""",""");
obj1.setSupplierId("xx");
obj1.setWarehouseCode("xx");
req.setParamInboundCallBackWmsRequest(obj1);
AlibabaMtpSupplychainInboundPartcallbackResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMtpSupplychainInboundPartcallbackRequest req = new AlibabaMtpSupplychainInboundPartcallbackRequest();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequestDomain obj1 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequestDomain();
obj1.CallerSource = "xx";
obj1.CompanyUuid = "xx";
List<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDtoDomain> list3 = new List<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDtoDomain>();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDtoDomain obj4 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDtoDomain();
list3.Add(obj4);
obj4.DeliverType = 1L;
obj4.Feature = "{}";
obj4.Id = 1L;
obj4.InboundOrderNo = "xx";
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDtoDomain> list6 = new List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDtoDomain>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDtoDomain obj7 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDtoDomain();
list6.Add(obj7);
obj7.InventoryType = "xx";
obj7.Quantity = "xx";
obj4.InventoryDtos= list6;
obj4.OutSkuCode = "xx";
obj4.Remark = "xx";
obj4.SkuCode = "xx";
obj4.Spec = "xx";
obj4.SupplierId = "xx";
obj4.Unit = "xx";
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDtoDomain> list9 = new List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDtoDomain>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDtoDomain obj10 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDtoDomain();
list9.Add(obj10);
obj10.BatchId = "xx";
obj10.ExpireDate = "xx";
obj10.Feature = "{}";
obj10.ProductBatch = "xx";
obj10.ProductDate = "xx";
obj10.Quantity = "xx";
obj4.WorkDtos= list9;
obj1.Details= list3;
obj1.Feature = "{}";
obj1.GmtInbound = "xx";
obj1.InboundOrderNo = "xx";
obj1.InboundOrderType = 1L;
obj1.MerchantCode = "xx";
obj1.OutTraceId = "xx";
obj1.OuterOrderNo = "xx";
obj1.OwnerUserId = "xx";
obj1.Remark = "xx";
obj1.Source = "xx";
obj1.SubOrderList = """,""";
obj1.SupplierId = "xx";
obj1.WarehouseCode = "xx";
req.ParamInboundCallBackWmsRequest_ = obj1;
AlibabaMtpSupplychainInboundPartcallbackResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMtpSupplychainInboundPartcallbackRequest;
$param_inbound_call_back_wms_request = new InboundCallBackWmsRequest;
$param_inbound_call_back_wms_request->caller_source="xx";
$param_inbound_call_back_wms_request->company_uuid="xx";
$details = new InboundCallBackDetailWmsDto;
$details->deliver_type="1";
$details->feature="{}";
$details->id="1";
$details->inbound_order_no="xx";
$inventory_dtos = new WmsInventoryDto;
$inventory_dtos->inventory_type="xx";
$inventory_dtos->quantity="xx";
$details->inventory_dtos = $inventory_dtos;
$details->out_sku_code="xx";
$details->remark="xx";
$details->sku_code="xx";
$details->spec="xx";
$details->supplier_id="xx";
$details->unit="xx";
$work_dtos = new WmsWorkDto;
$work_dtos->batch_id="xx";
$work_dtos->expire_date="xx";
$work_dtos->feature="{}";
$work_dtos->product_batch="xx";
$work_dtos->product_date="xx";
$work_dtos->quantity="xx";
$details->work_dtos = $work_dtos;
$param_inbound_call_back_wms_request->details = $details;
$param_inbound_call_back_wms_request->feature="{}";
$param_inbound_call_back_wms_request->gmt_inbound="xx";
$param_inbound_call_back_wms_request->inbound_order_no="xx";
$param_inbound_call_back_wms_request->inbound_order_type="1";
$param_inbound_call_back_wms_request->merchant_code="xx";
$param_inbound_call_back_wms_request->out_trace_id="xx";
$param_inbound_call_back_wms_request->outer_order_no="xx";
$param_inbound_call_back_wms_request->owner_user_id="xx";
$param_inbound_call_back_wms_request->remark="xx";
$param_inbound_call_back_wms_request->source="xx";
$param_inbound_call_back_wms_request->sub_order_list="[\"\",\"\"]";
$param_inbound_call_back_wms_request->supplier_id="xx";
$param_inbound_call_back_wms_request->warehouse_code="xx";
$req->setParamInboundCallBackWmsRequest(json_encode($param_inbound_call_back_wms_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=alibaba.mtp.supplychain.inbound.partcallback' \
-d 'partner_id=apidoc' \
-d 'session=338366f4-027e-422f-b4e8-ca06ed5b09b5' \
-d 'sign=2850CF8D35739FF289189FF73931FF0B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+08%3A17%3A10' \
-d 'v=2.0' \
-d 'param_inbound_call_back_wms_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMtpSupplychainInboundPartcallbackRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_inbound_call_back_wms_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,"alibaba.mtp.supplychain.inbound.partcallback");
add_param(pRequest,"param_inbound_call_back_wms_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('alibaba.mtp.supplychain.inbound.partcallback', {
'param_inbound_call_back_wms_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})