taobao.fenxiao.product.download (产品下载)

下载供应商的产品到分销商店铺内

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
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

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<fenxiao_product_download_response>
    <item_id>10000</item_id>
</fenxiao_product_download_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

返回
顶部