TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianQwyfxEquityLockRequest req = new AlipayBaoxianQwyfxEquityLockRequest();
AlipayBaoxianQwyfxEquityLockRequest.InsLockUserQwyfxEquityRequest obj1 = new AlipayBaoxianQwyfxEquityLockRequest.InsLockUserQwyfxEquityRequest();
obj1.setCompanyCode("CAINIAO");
obj1.setBizType("YFX_WYG_DISCOUNT");
obj1.setOutLogisticsNo("23433443");
obj1.setOutBizNo("2022092106230710386966_1663728676891");
obj1.setUserId("2233443");
obj1.setImageUrl("/ds/sfd");
AlipayBaoxianQwyfxEquityLockRequest.LogisticsReserveTime obj2 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsReserveTime();
obj2.setStartTime(StringUtils.parseDateTime("2022-01-01 00:00:00"));
obj2.setEndTime(StringUtils.parseDateTime("2023-01-01 00:00:00"));
obj1.setReserveTime(obj2);
obj1.setLogisticsMailNo("23433443");
obj1.setBizData("{\"goodsKinds\":\"衣帽鞋服\"}");
obj1.setEquityId("2343343");
obj1.setPostType("HOME_DELIVERY");
obj1.setPayStatus("0");
obj1.setOriginFee(1800L);
obj1.setAlipayUserId("2088");
obj1.setEntrance("CAINIAO");
AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddress obj3 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddress();
obj3.setAreaCode("330481");
obj3.setAddress("浙江省金华市东阳市吴宁街道吴宁镇竹园路");
obj3.setName("张三");
obj3.setPhone("1234567855");
obj3.setProvince("浙江省");
obj3.setCity("金华市");
obj3.setArea("东阳市");
obj1.setSender(obj3);
AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddress obj4 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddress();
obj4.setAreaCode("330481");
obj4.setAddress("浙江省金华市东阳市吴宁街道吴宁镇竹园路");
obj4.setName("李四");
obj4.setPhone("1234567856");
obj4.setProvince("浙江省");
obj4.setArea("东阳市");
obj4.setCity("金华市");
obj1.setReceiver(obj4);
obj1.setAgreementFee(1200L);
obj1.setGoodsKinds("衣服");
obj1.setUserType("TAOBAO");
obj1.setDisputeId(1232343L);
obj1.setBizOrderId(12343443L);
obj1.setAuthType("NUMBER");
obj1.setAuthCode("873745");
req.setInsLockUserQwyfxEquityRequest(obj1);
AlipayBaoxianQwyfxEquityLockResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlipayBaoxianQwyfxEquityLockRequest req = new AlipayBaoxianQwyfxEquityLockRequest();
AlipayBaoxianQwyfxEquityLockRequest.InsLockUserQwyfxEquityRequestDomain obj1 = new AlipayBaoxianQwyfxEquityLockRequest.InsLockUserQwyfxEquityRequestDomain();
obj1.CompanyCode = "CAINIAO";
obj1.BizType = "YFX_WYG_DISCOUNT";
obj1.OutLogisticsNo = "23433443";
obj1.OutBizNo = "2022092106230710386966_1663728676891";
obj1.UserId = "2233443";
obj1.ImageUrl = "/ds/sfd";
AlipayBaoxianQwyfxEquityLockRequest.LogisticsReserveTimeDomain obj2 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsReserveTimeDomain();
obj2.StartTime = DateTime.Parse(2022-01-01 00:00:00");
obj2.EndTime = DateTime.Parse(2023-01-01 00:00:00");
obj1.ReserveTime= obj2;
obj1.LogisticsMailNo = "23433443";
obj1.BizData = "{\"goodsKinds\":\"衣帽鞋服\"}";
obj1.EquityId = "2343343";
obj1.PostType = "HOME_DELIVERY";
obj1.PayStatus = "0";
obj1.OriginFee = 1800L;
obj1.AlipayUserId = "2088";
obj1.Entrance = "CAINIAO";
AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddressDomain obj3 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddressDomain();
obj3.AreaCode = "330481";
obj3.Address = "浙江省金华市东阳市吴宁街道吴宁镇竹园路";
obj3.Name = "张三";
obj3.Phone = "1234567855";
obj3.Province = "浙江省";
obj3.City = "金华市";
obj3.Area = "东阳市";
obj1.Sender= obj3;
AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddressDomain obj4 = new AlipayBaoxianQwyfxEquityLockRequest.LogisticsAddressDomain();
obj4.AreaCode = "330481";
obj4.Address = "浙江省金华市东阳市吴宁街道吴宁镇竹园路";
obj4.Name = "李四";
obj4.Phone = "1234567856";
obj4.Province = "浙江省";
obj4.Area = "东阳市";
obj4.City = "金华市";
obj1.Receiver= obj4;
obj1.AgreementFee = 1200L;
obj1.GoodsKinds = "衣服";
obj1.UserType = "TAOBAO";
obj1.DisputeId = 1232343L;
obj1.BizOrderId = 12343443L;
obj1.AuthType = "NUMBER";
obj1.AuthCode = "873745";
req.InsLockUserQwyfxEquityRequest_ = obj1;
AlipayBaoxianQwyfxEquityLockResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlipayBaoxianQwyfxEquityLockRequest;
$ins_lock_user_qwyfx_equity_request = new InsLockUserQwyfxEquityRequest;
$ins_lock_user_qwyfx_equity_request->company_code="CAINIAO";
$ins_lock_user_qwyfx_equity_request->biz_type="YFX_WYG_DISCOUNT";
$ins_lock_user_qwyfx_equity_request->out_logistics_no="23433443";
$ins_lock_user_qwyfx_equity_request->out_biz_no="2022092106230710386966_1663728676891";
$ins_lock_user_qwyfx_equity_request->user_id="2233443";
$ins_lock_user_qwyfx_equity_request->image_url="/ds/sfd";
$reserve_time = new LogisticsReserveTime;
$reserve_time->start_time="2022-01-01 00:00:00";
$reserve_time->end_time="2023-01-01 00:00:00";
$ins_lock_user_qwyfx_equity_request->reserve_time = $reserve_time;
$ins_lock_user_qwyfx_equity_request->logistics_mail_no="23433443";
$ins_lock_user_qwyfx_equity_request->biz_data="{\"goodsKinds\":\"衣帽鞋服\"}";
$ins_lock_user_qwyfx_equity_request->equity_id="2343343";
$ins_lock_user_qwyfx_equity_request->post_type="HOME_DELIVERY";
$ins_lock_user_qwyfx_equity_request->pay_status="0";
$ins_lock_user_qwyfx_equity_request->origin_fee="1800";
$ins_lock_user_qwyfx_equity_request->alipay_user_id="2088";
$ins_lock_user_qwyfx_equity_request->entrance="CAINIAO";
$sender = new LogisticsAddress;
$sender->area_code="330481";
$sender->address="浙江省金华市东阳市吴宁街道吴宁镇竹园路";
$sender->name="张三";
$sender->phone="1234567855";
$sender->province="浙江省";
$sender->city="金华市";
$sender->area="东阳市";
$ins_lock_user_qwyfx_equity_request->sender = $sender;
$receiver = new LogisticsAddress;
$receiver->area_code="330481";
$receiver->address="浙江省金华市东阳市吴宁街道吴宁镇竹园路";
$receiver->name="李四";
$receiver->phone="1234567856";
$receiver->province="浙江省";
$receiver->area="东阳市";
$receiver->city="金华市";
$ins_lock_user_qwyfx_equity_request->receiver = $receiver;
$ins_lock_user_qwyfx_equity_request->agreement_fee="1200";
$ins_lock_user_qwyfx_equity_request->goods_kinds="衣服";
$ins_lock_user_qwyfx_equity_request->user_type="TAOBAO";
$ins_lock_user_qwyfx_equity_request->dispute_id="1232343";
$ins_lock_user_qwyfx_equity_request->biz_order_id="12343443";
$ins_lock_user_qwyfx_equity_request->auth_type="NUMBER";
$ins_lock_user_qwyfx_equity_request->auth_code="873745";
$req->setInsLockUserQwyfxEquityRequest(json_encode($ins_lock_user_qwyfx_equity_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=alipay.baoxian.qwyfx.equity.lock' \
-d 'partner_id=apidoc' \
-d 'sign=DB46DA2FECA4FBD9A5743FDB38B7CCB9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-08+02%3A39%3A14' \
-d 'v=2.0' \
-d 'ins_lock_user_qwyfx_equity_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlipayBaoxianQwyfxEquityLockRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ins_lock_user_qwyfx_equity_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,"alipay.baoxian.qwyfx.equity.lock");
add_param(pRequest,"ins_lock_user_qwyfx_equity_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('alipay.baoxian.qwyfx.equity.lock', {
'ins_lock_user_qwyfx_equity_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})