TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunGscFundsFlowNotifyRequest req = new AliyunGscFundsFlowNotifyRequest();
AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequest obj1 = new AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequest();
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list3 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj4 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO();
list3.add(obj4);
obj4.setMainBizOrderId("mainorderid1");
obj4.setCreateDate(StringUtils.parseDateTime("2022-09-23 09:00:00"));
obj4.setBizDate(StringUtils.parseDateTime("2022-09-23 10:00:00"));
obj4.setSellerId("gmall");
obj4.setSaleType("sell/proxy");
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list7 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj8 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO();
list7.add(obj8);
obj8.setSubBizOrderId("子订单号");
obj8.setAuctionId("商品ID");
obj8.setAuctionTitle("商品名称");
obj8.setOutItemId("item id");
obj8.setOutItemName("item名称");
obj8.setOutSkuId("sku id");
obj8.setOutSkuName("sku名称");
obj8.setPrice(50L);
obj8.setFreight(80L);
obj8.setAmount(100L);
obj8.setAmountType("member_point");
obj8.setPayType("weixin");
obj8.setCurrencyType("yuan");
obj8.setQty(10L);
obj8.setPointGrant(11L);
obj8.setReturnAmount(12L);
obj8.setReturnAmountType("currency");
obj8.setReturnCurrencyType("fen");
obj8.setUid("p_mainorderid1");
obj8.setReturnPointGrant(13L);
list5.setSubOrders(list7);
obj1.setPayments(list3);
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list10 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj11 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO();
list10.add(obj11);
obj11.setMainBizOrderId("mainorderid2");
obj11.setCreateDate(StringUtils.parseDateTime("2022-09-23 09:00:00"));
obj11.setBizDate(StringUtils.parseDateTime("2022-09-23 10:00:00"));
obj11.setSellerId("gmall");
obj11.setSaleType("sell/proxy");
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list14 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj15 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO();
list14.add(obj15);
obj15.setSubBizOrderId("子订单号");
obj15.setAuctionId("商品ID");
obj15.setAuctionTitle("商品名称");
obj15.setOutItemId("item id");
obj15.setOutItemName("item名称");
obj15.setOutSkuId("sku id");
obj15.setOutSkuName("sku名称");
obj15.setPrice(100L);
obj15.setFreight(80L);
obj15.setPointGrant(11L);
obj15.setQty(10L);
list12.setSubOrders(list14);
obj1.setConfirms(list10);
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list17 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj18 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO();
list17.add(obj18);
obj18.setMainBizOrderId("mainorderid3");
obj18.setCreateDate(StringUtils.parseDateTime("2022-09-23 09:00:00"));
obj18.setBizDate(StringUtils.parseDateTime("2022-09-23 10:00:00"));
obj18.setSellerId("gmall");
obj18.setSaleType("sell/proxy");
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list21 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj22 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO();
list21.add(obj22);
obj22.setSubBizOrderId("子订单号");
obj22.setAuctionId("前端商品ID");
obj22.setAuctionTitle("前端商品名称");
obj22.setOutItemId("外部item id");
obj22.setOutItemName("外部item名称");
obj22.setOutSkuId("外部sku id");
obj22.setOutSkuName("sku名称");
obj22.setReturnAmount(120L);
obj22.setReturnAmountType("member_point");
obj22.setQty(11L);
obj22.setReturnCurrencyType("fen");
obj22.setUid("p_mainorderid1");
obj22.setReturnPointGrant(13L);
list19.setSubOrders(list21);
obj1.setRefunds(list17);
req.setOfficialFundsRecordRequest(obj1);
AliyunGscFundsFlowNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliyunGscFundsFlowNotifyRequest req = new AliyunGscFundsFlowNotifyRequest();
AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequestDomain obj1 = new AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequestDomain();
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain> list3 = new List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain obj4 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain();
list3.Add(obj4);
obj4.MainBizOrderId = "mainorderid1";
obj4.CreateDate = DateTime.Parse(2022-09-23 09:00:00");
obj4.BizDate = DateTime.Parse(2022-09-23 10:00:00");
obj4.SellerId = "gmall";
obj4.SaleType = "sell/proxy";
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain> list6 = new List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain obj7 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain();
list6.Add(obj7);
obj7.SubBizOrderId = "子订单号";
obj7.AuctionId = "商品ID";
obj7.AuctionTitle = "商品名称";
obj7.OutItemId = "item id";
obj7.OutItemName = "item名称";
obj7.OutSkuId = "sku id";
obj7.OutSkuName = "sku名称";
obj7.Price = 50L;
obj7.Freight = 80L;
obj7.Amount = 100L;
obj7.AmountType = "member_point";
obj7.PayType = "weixin";
obj7.CurrencyType = "yuan";
obj7.Qty = 10L;
obj7.PointGrant = 11L;
obj7.ReturnAmount = 12L;
obj7.ReturnAmountType = "currency";
obj7.ReturnCurrencyType = "fen";
obj7.Uid = "p_mainorderid1";
obj7.ReturnPointGrant = 13L;
obj4.SubOrders= list6;
obj1.Payments= list3;
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain> list9 = new List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain obj10 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain();
list9.Add(obj10);
obj10.MainBizOrderId = "mainorderid2";
obj10.CreateDate = DateTime.Parse(2022-09-23 09:00:00");
obj10.BizDate = DateTime.Parse(2022-09-23 10:00:00");
obj10.SellerId = "gmall";
obj10.SaleType = "sell/proxy";
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain> list12 = new List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain obj13 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain();
list12.Add(obj13);
obj13.SubBizOrderId = "子订单号";
obj13.AuctionId = "商品ID";
obj13.AuctionTitle = "商品名称";
obj13.OutItemId = "item id";
obj13.OutItemName = "item名称";
obj13.OutSkuId = "sku id";
obj13.OutSkuName = "sku名称";
obj13.Price = 100L;
obj13.Freight = 80L;
obj13.PointGrant = 11L;
obj13.Qty = 10L;
obj10.SubOrders= list12;
obj1.Confirms= list9;
List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain> list15 = new List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain obj16 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTODomain();
list15.Add(obj16);
obj16.MainBizOrderId = "mainorderid3";
obj16.CreateDate = DateTime.Parse(2022-09-23 09:00:00");
obj16.BizDate = DateTime.Parse(2022-09-23 10:00:00");
obj16.SellerId = "gmall";
obj16.SaleType = "sell/proxy";
List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain> list18 = new List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain>();
AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain obj19 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTODomain();
list18.Add(obj19);
obj19.SubBizOrderId = "子订单号";
obj19.AuctionId = "前端商品ID";
obj19.AuctionTitle = "前端商品名称";
obj19.OutItemId = "外部item id";
obj19.OutItemName = "外部item名称";
obj19.OutSkuId = "外部sku id";
obj19.OutSkuName = "sku名称";
obj19.ReturnAmount = 120L;
obj19.ReturnAmountType = "member_point";
obj19.Qty = 11L;
obj19.ReturnCurrencyType = "fen";
obj19.Uid = "p_mainorderid1";
obj19.ReturnPointGrant = 13L;
obj16.SubOrders= list18;
obj1.Refunds= list15;
req.OfficialFundsRecordRequest_ = obj1;
AliyunGscFundsFlowNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliyunGscFundsFlowNotifyRequest;
$official_funds_record_request = new OfficialFundsRecordRequest;
$payments = new MainOrderFinanceDTO;
$payments->main_biz_order_id="mainorderid1";
$payments->create_date="2022-09-23 09:00:00";
$payments->biz_date="2022-09-23 10:00:00";
$payments->seller_id="gmall";
$payments->sale_type="sell/proxy";
$sub_orders = new SubOrderFinanceDTO;
$sub_orders->sub_biz_order_id="子订单号";
$sub_orders->auction_id="商品ID";
$sub_orders->auction_title="商品名称";
$sub_orders->out_item_id="item id";
$sub_orders->out_item_name="item名称";
$sub_orders->out_sku_id="sku id";
$sub_orders->out_sku_name="sku名称";
$sub_orders->price="50";
$sub_orders->freight="80";
$sub_orders->amount="100";
$sub_orders->amount_type="member_point";
$sub_orders->pay_type="weixin";
$sub_orders->currency_type="yuan";
$sub_orders->qty="10";
$sub_orders->point_grant="11";
$sub_orders->return_amount="12";
$sub_orders->return_amount_type="currency";
$sub_orders->return_currency_type="fen";
$sub_orders->uid="p_mainorderid1";
$sub_orders->return_point_grant="13";
$payments->sub_orders = $sub_orders;
$official_funds_record_request->payments = $payments;
$confirms = new MainOrderFinanceDTO;
$confirms->main_biz_order_id="mainorderid2";
$confirms->create_date="2022-09-23 09:00:00";
$confirms->biz_date="2022-09-23 10:00:00";
$confirms->seller_id="gmall";
$confirms->sale_type="sell/proxy";
$sub_orders = new SubOrderFinanceDTO;
$sub_orders->sub_biz_order_id="子订单号";
$sub_orders->auction_id="商品ID";
$sub_orders->auction_title="商品名称";
$sub_orders->out_item_id="item id";
$sub_orders->out_item_name="item名称";
$sub_orders->out_sku_id="sku id";
$sub_orders->out_sku_name="sku名称";
$sub_orders->price="100";
$sub_orders->freight="80";
$sub_orders->point_grant="11";
$sub_orders->qty="10";
$confirms->sub_orders = $sub_orders;
$official_funds_record_request->confirms = $confirms;
$refunds = new MainOrderFinanceDTO;
$refunds->main_biz_order_id="mainorderid3";
$refunds->create_date="2022-09-23 09:00:00";
$refunds->biz_date="2022-09-23 10:00:00";
$refunds->seller_id="gmall";
$refunds->sale_type="sell/proxy";
$sub_orders = new SubOrderFinanceDTO;
$sub_orders->sub_biz_order_id="子订单号";
$sub_orders->auction_id="前端商品ID";
$sub_orders->auction_title="前端商品名称";
$sub_orders->out_item_id="外部item id";
$sub_orders->out_item_name="外部item名称";
$sub_orders->out_sku_id="外部sku id";
$sub_orders->out_sku_name="sku名称";
$sub_orders->return_amount="120";
$sub_orders->return_amount_type="member_point";
$sub_orders->qty="11";
$sub_orders->return_currency_type="fen";
$sub_orders->uid="p_mainorderid1";
$sub_orders->return_point_grant="13";
$refunds->sub_orders = $sub_orders;
$official_funds_record_request->refunds = $refunds;
$req->setOfficialFundsRecordRequest(json_encode($official_funds_record_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=aliyun.gsc.funds.flow.notify' \
-d 'partner_id=apidoc' \
-d 'sign=6F303D432E64FDC49D61E63B9CEBBA0D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+23%3A17%3A44' \
-d 'v=2.0' \
-d 'official_funds_record_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliyunGscFundsFlowNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.official_funds_record_request="数据结构示例JSON格式"
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,"aliyun.gsc.funds.flow.notify");
add_param(pRequest,"official_funds_record_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('aliyun.gsc.funds.flow.notify', {
'official_funds_record_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})