TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest req = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest();
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.ExistHouseOrderBuyerInfoDTO obj1 = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.ExistHouseOrderBuyerInfoDTO();
obj1.setExistHouseOrderId(12342L);
obj1.setBrokerId(12515L);
obj1.setRemark("修改购房者信息");
List<TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfo> list3 = new ArrayList<TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfo>();
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfo obj4 = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfo();
list3.add(obj4);
obj4.setId(12415L);
obj4.setType(1L);
obj4.setRealName("李四");
obj4.setCardType(1L);
obj4.setCardNo("3565789256780125");
obj4.setPhone("15678953268");
obj4.setAddress("文三路");
obj4.setIsDelete(0L);
obj1.setBuyerInfos(list3);
req.setExistHouseOrderBuyerInfo(obj1);
TmallAlihouseTradeExisthouseOrderBuyerUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest req = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest();
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.ExistHouseOrderBuyerInfoDTODomain obj1 = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.ExistHouseOrderBuyerInfoDTODomain();
obj1.ExistHouseOrderId = 12342L;
obj1.BrokerId = 12515L;
obj1.Remark = "修改购房者信息";
List<TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfoDomain> list3 = new List<TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfoDomain>();
TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfoDomain obj4 = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest.BuyerInfoDomain();
list3.Add(obj4);
obj4.Id = 12415L;
obj4.Type = 1L;
obj4.RealName = "李四";
obj4.CardType = 1L;
obj4.CardNo = "3565789256780125";
obj4.Phone = "15678953268";
obj4.Address = "文三路";
obj4.IsDelete = 0L;
obj1.BuyerInfos= list3;
req.ExistHouseOrderBuyerInfo_ = obj1;
TmallAlihouseTradeExisthouseOrderBuyerUpdateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest;
$exist_house_order_buyer_info = new ExistHouseOrderBuyerInfoDTO;
$exist_house_order_buyer_info->exist_house_order_id="12342";
$exist_house_order_buyer_info->broker_id="12515";
$exist_house_order_buyer_info->remark="修改购房者信息";
$buyer_infos = new BuyerInfo;
$buyer_infos->id="12415";
$buyer_infos->type="1";
$buyer_infos->real_name="李四";
$buyer_infos->card_type="1";
$buyer_infos->card_no="3565789256780125";
$buyer_infos->phone="15678953268";
$buyer_infos->address="文三路";
$buyer_infos->is_delete="0";
$exist_house_order_buyer_info->buyer_infos = $buyer_infos;
$req->setExistHouseOrderBuyerInfo(json_encode($exist_house_order_buyer_info));
$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=tmall.alihouse.trade.existhouse.order.buyer.update' \
-d 'partner_id=apidoc' \
-d 'session=516aee22-7e85-47d4-855f-18d08da135da' \
-d 'sign=AE7D5687736918C7D0E23AD3E62A95B9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-07+14%3A42%3A11' \
-d 'v=2.0' \
-d 'exist_house_order_buyer_info=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAlihouseTradeExisthouseOrderBuyerUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.exist_house_order_buyer_info=""
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,"tmall.alihouse.trade.existhouse.order.buyer.update");
add_param(pRequest,"exist_house_order_buyer_info","数据结构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('tmall.alihouse.trade.existhouse.order.buyer.update', {
'exist_house_order_buyer_info':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})