TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGscDmsAgentPurchaseorderListGetRequest req = new AlibabaGscDmsAgentPurchaseorderListGetRequest();
AlibabaGscDmsAgentPurchaseorderListGetRequest.OmsSaleOrderQueryRequest obj1 = new AlibabaGscDmsAgentPurchaseorderListGetRequest.OmsSaleOrderQueryRequest();
obj1.setCategory("TIANMAOJINGLINGCHENGPIN");
obj1.setCustomerCodeList("");
obj1.setGmtCreateEnd(StringUtils.parseDateTime("2021-04-01 00:00:00"));
obj1.setGmtCreateStart(StringUtils.parseDateTime("2021-01-01 00:00:00"));
obj1.setItemNumberList("");
obj1.setOperator("79456");
obj1.setOrderAmountEnd(100000L);
obj1.setOrderAmountStart(0L);
obj1.setOutCustomerCodeList(""100"");
obj1.setPageNo(1L);
obj1.setPageSize(10L);
obj1.setProductIdList(new Long[] { };
);
obj1.setRequestId("12345612345");
obj1.setShipOrderStatusList("");
obj1.setStatusList("");
obj1.setTenant("ailab");
obj1.setTradeOrderId("SO00000936");
req.setParamOmsSaleOrderQueryRequest(obj1);
AlibabaGscDmsAgentPurchaseorderListGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaGscDmsAgentPurchaseorderListGetRequest req = new AlibabaGscDmsAgentPurchaseorderListGetRequest();
AlibabaGscDmsAgentPurchaseorderListGetRequest.OmsSaleOrderQueryRequestDomain obj1 = new AlibabaGscDmsAgentPurchaseorderListGetRequest.OmsSaleOrderQueryRequestDomain();
obj1.Category = "TIANMAOJINGLINGCHENGPIN";
obj1.CustomerCodeList = "";
obj1.GmtCreateEnd = DateTime.Parse(2021-04-01 00:00:00");
obj1.GmtCreateStart = DateTime.Parse(2021-01-01 00:00:00");
obj1.ItemNumberList = "";
obj1.Operator = "79456";
obj1.OrderAmountEnd = 100000L;
obj1.OrderAmountStart = 0L;
obj1.OutCustomerCodeList = ""100"";
obj1.PageNo = 1L;
obj1.PageSize = 10L;
obj1.ProductIdList = new long[] { };
;
obj1.RequestId = "12345612345";
obj1.ShipOrderStatusList = "";
obj1.StatusList = "";
obj1.Tenant = "ailab";
obj1.TradeOrderId = "SO00000936";
req.ParamOmsSaleOrderQueryRequest_ = obj1;
AlibabaGscDmsAgentPurchaseorderListGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaGscDmsAgentPurchaseorderListGetRequest;
$param_oms_sale_order_query_request = new OmsSaleOrderQueryRequest;
$param_oms_sale_order_query_request->category="TIANMAOJINGLINGCHENGPIN";
$param_oms_sale_order_query_request->customer_code_list="[]";
$param_oms_sale_order_query_request->gmt_create_end="2021-04-01 00:00:00";
$param_oms_sale_order_query_request->gmt_create_start="2021-01-01 00:00:00";
$param_oms_sale_order_query_request->item_number_list="[]";
$param_oms_sale_order_query_request->operator="79456";
$param_oms_sale_order_query_request->order_amount_end="100000";
$param_oms_sale_order_query_request->order_amount_start="0";
$param_oms_sale_order_query_request->out_customer_code_list="[\"100\"]";
$param_oms_sale_order_query_request->page_no="1";
$param_oms_sale_order_query_request->page_size="10";
$param_oms_sale_order_query_request->product_id_list="[]";
$param_oms_sale_order_query_request->request_id="12345612345";
$param_oms_sale_order_query_request->ship_order_status_list="[]";
$param_oms_sale_order_query_request->status_list="[]";
$param_oms_sale_order_query_request->tenant="ailab";
$param_oms_sale_order_query_request->trade_order_id="SO00000936";
$req->setParamOmsSaleOrderQueryRequest(json_encode($param_oms_sale_order_query_request));
$resp = $c->execute($req);
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.gsc.dms.agent.purchaseorder.list.get' \
-d 'partner_id=apidoc' \
-d 'sign=12C3F5312F27FCF9168FAD5997521152' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-21+15%3A12%3A42' \
-d 'v=2.0' \
-d 'param_oms_sale_order_query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaGscDmsAgentPurchaseorderListGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_oms_sale_order_query_request=""
try:
resp= req.getResponse()
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.gsc.dms.agent.purchaseorder.list.get");
add_param(pRequest,"param_oms_sale_order_query_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
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.gsc.dms.agent.purchaseorder.list.get', {
'param_oms_sale_order_query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})