TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
GongxiaoSalesGetRequest req = new GongxiaoSalesGetRequest();
req.setSubBizOrderId(88888888L);
req.setSalesOrderId(88888888L);
req.setSettlementNo("88888888");
req.setCreatedBegin(StringUtils.parseDateTime("2025-01-01 00:00:00"));
req.setCreatedEnd(StringUtils.parseDateTime("2025-01-01 00:00:00"));
GongxiaoSalesGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
GongxiaoSalesGetRequest req = new GongxiaoSalesGetRequest();
req.SubBizOrderId = 88888888L;
req.SalesOrderId = 88888888L;
req.SettlementNo = "88888888";
req.CreatedBegin = DateTime.Parse("2025-01-01 00:00:00");
req.CreatedEnd = DateTime.Parse("2025-01-01 00:00:00");
GongxiaoSalesGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new GongxiaoSalesGetRequest;
$req->setSubBizOrderId("88888888");
$req->setSalesOrderId("88888888");
$req->setSettlementNo("88888888");
$req->setCreatedBegin("2025-01-01 00:00:00");
$req->setCreatedEnd("2025-01-01 00:00:00");
$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=taobao.gongxiao.sales.get' \
-d 'partner_id=apidoc' \
-d 'session=142e38fb-b7ed-4ec7-a259-3699d9255a77' \
-d 'sign=6882C927C203C1AA31489C4A4187F002' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+03%3A44%3A53' \
-d 'v=2.0' \
-d 'created_begin=2025-01-01+00%3A00%3A00' \
-d 'created_end=2025-01-01+00%3A00%3A00' \
-d 'sales_order_id=88888888' \
-d 'settlement_no=88888888' \
-d 'sub_biz_order_id=88888888'
# -*- coding: utf-8 -*-
import top.api
req=top.api.GongxiaoSalesGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sub_biz_order_id=88888888
req.sales_order_id=88888888
req.settlement_no="88888888"
req.created_begin="2025-01-01 00:00:00"
req.created_end="2025-01-01 00:00:00"
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,"taobao.gongxiao.sales.get");
add_param(pRequest,"sub_biz_order_id","88888888");
add_param(pRequest,"sales_order_id","88888888");
add_param(pRequest,"settlement_no","88888888");
add_param(pRequest,"created_begin","2025-01-01 00:00:00");
add_param(pRequest,"created_end","2025-01-01 00:00:00");
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('taobao.gongxiao.sales.get', {
'sub_biz_order_id':'88888888',
'sales_order_id':'88888888',
'settlement_no':'88888888',
'created_begin':'2025-01-01 00:00:00',
'created_end':'2025-01-01 00:00:00'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})