商品同步
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ds | Number | 可选 | 20221031 | 日期 | |
item_do | ItemDo | 可选 | 无 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result_code | ResultCode | 结果描述 | |
|
|||
value | Number [] | 成功上传的商品ID列表 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); PaimaiItemCooperationSyncRequest req = new PaimaiItemCooperationSyncRequest(); req.setDs(20221031L); PaimaiItemCooperationSyncRequest.ItemDo obj1 = new PaimaiItemCooperationSyncRequest.ItemDo(); obj1.setRefUnitPrice( "40000.00" ); obj1.setCity( "杭州" ); obj1.setTotalPrice( "4990000.00" ); obj1.setTitle( "房子精装修 带地暖 带花园 采光无遮挡 满五年" ); obj1.setHousePurpose( "普通住宅" ); obj1.setTransOwnership( "商品房住宅" ); obj1.setCommunityScore( "9.00" ); obj1.setBuildingTime(2020L); obj1.setFeature( "近地铁 满五年 VR房源 新上 随时看房" ); obj1.setPropertyManagement( "北京市天宝伟业物业管理有限责任公司" ); obj1.setCommunityAlias( "颐景园 颐景园曲水苑 颐景园留云苑" ); obj1.setBrokerTele( "4008163008" ); obj1.setHouseArea( "122.00" ); obj1.setHouseToward( "南 北" ); obj1.setFloorDesc( "中楼层" ); obj1.setProv( "浙江" ); obj1.setPropertyUnitPrice( "3.00" ); obj1.setLat( "120.21551" ); obj1.setParkingRatio( "2" ); obj1.setUnitPrice( "50000.00" ); obj1.setAddress( "杭州东路50号" ); obj1.setLng( "30.25308" ); obj1.setHouseType( "3室2厅2卫" ); obj1.setHousesForSale(15L); obj1.setCommunity( "颐景园" ); obj1.setVolumeRate( "2.00" ); obj1.setImgUrl( "..." ); obj1.setItemId(100000001L); obj1.setDistrict( "未来科技城" ); obj1.setTotalFloor(12L); obj1.setHousesForRent(100L); obj1.setLocation( "330106" ); obj1.setGreeningRate( "30.00" ); obj1.setBuildingType( "塔楼" ); req.setItemDo(obj1); PaimaiItemCooperationSyncResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < paimai_item_cooperation_sync_response > < result_code > < code >10000</ code > < message >success</ message > </ result_code > </ paimai_item_cooperation_sync_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|