复制卖家一口价或者拍卖商品,创建一个新的拍卖商品
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param0 | TransformRequest | 必须 | 参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | Number | 573469495201 | 生成的商品ID |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); PaimaiAuctionCloneRequest req = new PaimaiAuctionCloneRequest(); PaimaiAuctionCloneRequest.TransformRequest obj1 = new PaimaiAuctionCloneRequest.TransformRequest(); obj1.setIncrement(1L); obj1.setCeilPrice(20L); obj1.setDelayInMinutes(5L); obj1.setForegift(1L); obj1.setEndTime(StringUtils.parseDateTime( "2018-07-12 20:00:00" )); obj1.setType(1L); obj1.setItemId(2300946290799L); obj1.setStartPrice(10L); obj1.setFloorPrice(5L); obj1.setStartTime(StringUtils.parseDateTime( "2018-07-12 10:00:00" )); obj1.setQuantity(1L); obj1.setRepeatTimes(1L); obj1.setStatus(1L); req.setParam0(obj1); PaimaiAuctionCloneResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < paimai_auction_clone_response > < data >573469495201</ data > </ paimai_auction_clone_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
TEMP_IDLE_NOT_SUPPORT | 暂不支持闲鱼商品 | 暂不支持闲鱼商品 |
INCORRECT_START_TIME | 不合法的开始时间 | 不合法的开始时间强调整开始时间 |
INCORRECT_END_TIME | 不合法的结束时间 | 不合法的结束时间,请调整结束时间 |