下载供应商的产品到分销商店铺内
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
product_id | Number | 必须 | 1001 | 要下载的产品id | |
trade_type | String | 必须 | agent | 分销类型 agent:代销 dealer:经销 | |
retail_price | String | 可选 | 123.45 | 商品的一口价 | |
sku_ids | String | 可选 | 1001,1002,1003 | 产品的sku的id列表,用逗号分割 | |
sku_retail_prices | String | 可选 | 10.50,11.00,20.50 | 下载后商品对应的sku的零售价,用逗号分割,要与sku_ids对应 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
item_id | Number | 10000 | 下载成功后生成的商品的id |
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); FenxiaoProductDownloadRequest req = new FenxiaoProductDownloadRequest(); req.setProductId(1001L); req.setTradeType( "agent" ); req.setRetailPrice( "123.45" ); req.setSkuIds( "1001,1002,1003" ); req.setSkuRetailPrices( "10.50,11.00,20.50" ); FenxiaoProductDownloadResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < fenxiao_product_download_response > < item_id >10000</ item_id > </ fenxiao_product_download_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 > |
错误码 | 错误描述 | 解决方案 |
---|