文档中心 > API类目 > 闲鱼租房

alibaba.idle.house.item.central.layout.add (闲鱼租房集中式房型添加)

使用相同照片展示销售的集中式房源,归为一类房型。需先添加房型后,才可依据房型添加集中式房源。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
lender_nick String 可选 房东主淘宝会员名称 房东主淘宝会员名称
rent_central_layout_req RentCentralLayoutReq 可选 集中式房型入参
  • └ around_config
  • String []
  • 可选
  • 1
  • 周边配套: 1-餐饮方便 2-公交 3-学校 4-公园广场 5-超市 6-健身会馆 7-地铁房 8-菜场 9-医院 10-便利店 11-电梯房
  • └ decorate_level
  • Number
  • 必须
  • 1
  • 装修程度:1-豪华装 2-精装 3-简装 4-毛坯
  • └ bath_room_cnt
  • Number
  • 必须
  • 1
  • 房屋户型-卫
  • └ living_room_cnt
  • Number
  • 必须
  • 1
  • 房屋户型-厅
  • └ room_config
  • String []
  • 可选
  • 2
  • 房屋配套:1-空调 2-冰箱 3-洗衣机 4-燃气灶 5-热水器 6-WIFI 7-电视机 8-电磁炉 9-暖气 10-独立卫生间(合租参数) 11-大阳台
  • └ bed_room_cnt
  • Number
  • 必须
  • 2
  • 房屋户型-室
  • └ layout_name
  • String
  • 必须
  • 阳光朝北型
  • 房型名称 1- 60字符
  • └ rent_mode
  • Number
  • 必须
  • 1
  • 租赁模式:1-整租 2-合租
  • └ min_rent
  • Number
  • 必须
  • 200000
  • 房型最低租金价格,单位分
  • └ community_id
  • Number
  • 必须
  • 123
  • 小区id【2018/5月后入驻的机构必须输入】
  • └ image_ids
  • Number []
  • 必须
  • 123
  • 房屋图片ID
  • └ saas_landlord_house
  • Boolean
  • 可选
  • false
  • 是否为saas二房东房源
manager_nick String 可选 管家淘宝会员名称 管家淘宝会员名称

响应参数

名称 类型 示例值 描述
result ItemDataResult result result
  • └ err_msg
  • String
  • 错误描述
  • 错误描述
  • └ data
  • Number
  • 11111
  • 房型ID
  • └ success
  • Boolean
  • false
  • success
  • └ err_code
  • String
  • 错误码
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleHouseItemCentralLayoutAddRequest req = new AlibabaIdleHouseItemCentralLayoutAddRequest();
req.setLenderNick("房东主淘宝会员名称");
AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReq obj1 = new AlibabaIdleHouseItemCentralLayoutAddRequest.RentCentralLayoutReq();
obj1.setAroundConfig("1");
obj1.setDecorateLevel(1L);
obj1.setBathRoomCnt(1L);
obj1.setLivingRoomCnt(1L);
obj1.setRoomConfig("2");
obj1.setBedRoomCnt(2L);
obj1.setLayoutName("阳光朝北型");
obj1.setRentMode(1L);
obj1.setMinRent(200000L);
obj1.setCommunityId(123L);
obj1.setImageIds(new Long[] { 123 };
);
obj1.setSaasLandlordHouse(false);
req.setRentCentralLayoutReq(obj1);
req.setManagerNick("管家淘宝会员名称");
AlibabaIdleHouseItemCentralLayoutAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_house_item_central_layout_add_response>
    <result>
        <err_msg>错误描述</err_msg>
        <data>11111</data>
        <success>false</success>
        <err_code>错误码</err_code>
    </result>
</alibaba_idle_house_item_central_layout_add_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部